65 人解决,77 人已尝试。
92 份提交通过,共有 356 份提交。
3.7 EMB 奖励。
单点时限: 4.0 sec
内存限制: 256 MB
Professor Shekhu has another problem for Akki today. He has given him three positive integers
The first line of the input gives the number of test cases,
For each test case, output one line containing Case #x: y
, where
2 2 1 2 3 3 2
Case #1: 0 Case #2: 1
In Sample Case #1, the answer is the remainder when
In Sample Case #2, the answer is the remainder when
65 人解决,77 人已尝试。
92 份提交通过,共有 356 份提交。
3.7 EMB 奖励。