#P911. Cupcake Party
Cupcake Party
題目描述
A regular box of cupcakes holds 8 cupcakes, while a small box holds 3 cupcakes. There are 28 students in a class and a total of at least 28 cupcakes. Your job is to determine how many cupcakes will be left over if each student gets one cupcake.
輸入格式
The input consists of two lines.
- The first line contains an integer R ≥ 0, representing the number of regular boxes.
- The second line contains an integer S ≥ 0, representing the number of small boxes.
輸出格式
Output the number of cupcakes that are left over.
Samples
["2\r\n5","2\r\n4"]
["3","0"]
原始資料
- Zero1 題號:
a911 - Hydro 題號:
Z0911 - Locale:
zh_TW - Display:
open