[BOJ 12595] Odd Man Out (Small)

View as PDF

Submit solution

Points: 1
Time limit: 5.0s
Memory limit: 512M

Problem types
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

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:</p>

  • One line containing the value G the number of guests.
  • One line containing a space-separated list of G integers. Each integer C indicates the invitation code of a guest.

Limits

  • 1 ≤ N ≤ 50
  • 0 < C ≤ 2147483647
  • 3 ≤ G < 100
## 출력 형식

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

Comments

There are no comments at the moment.