Description: acm1181 Question: In addition to written questions, zqs also like toast. Both sides need each toast grilled once, while each oven can bake a bread side, grilled side need three minutes, and now he wants to bake bread N, there are M oven, finished all the bread baked ask how long it takes Input plurality of sets of input data, the behavior of a first digital case, the number of the representative set of input data (case < = 20) the following data in each row have two integers n, m, n representative of a need to bake bread oven with m (0 < = N < = 1000,1 < = M < = 1000) Output total case lines of a pair of integers set of data should copy the time required to complete all the bread Sample Input2 2 1 3 3 Sample Output12 6
To Search:
File list (Check if you may need any files):
1181.cpp