시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
5 초 | 512 MB | 223 | 194 | 177 | 86.341% |
You are hosting a party with G
guests and notice that there is an odd number of guests! When planning the party you deliberately invited only couples and gave each couple a unique number C
on their invitation. You would like to single out whoever came alone by asking all of the guests for their invitation numbers.
The first line of input gives the number of cases, N.
N test cases follow. For each test case there will be:
Limits
For each test case, output one line containing "Case #x: " followed by the number C
of the guest who is alone.
3 3 1 2147483647 2147483647 5 3 4 7 4 3 5 2 10 2 10 5
Case #1: 1 Case #2: 7 Case #3: 5
Contest > Google > Google's Coding Competitions > Google Code Jam Africa 2010 > Online Competition A2번