39 人解决,47 人已尝试。
57 份提交通过,共有 162 份提交。
4.0 EMB 奖励。
单点时限: 1.0 sec
内存限制: 256 MB
In a strange shop there are
Input starts with an integer
Each case starts with a line containing two integers
For each case, print the case number and the result.
2 3 10 1 2 4 2 1 1 2 5 1 4 2 1
Case 1: 8 Case 2: 4