QOJ.ac

QOJ

Time Limit: 1 s Memory Limit: 1024 MB Total points: 14

#14004. Odd Man Out

الإحصائيات

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.

Input

The first line of input gives the number of cases, N.

N test cases follow. For each test case there will be:

  • 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.

Output

For each test case, output one line containing "Case #x: " followed by the number C of the guest who is alone.

Limits

Small Dataset (7 points)

  • 1 ≤ N ≤ 50
  • 0 < C ≤ 2147483647
  • 3 ≤ G < 100

Large Dataset (7 points)

  • 1 ≤ N ≤ 50
  • 0 < C ≤ 2147483647
  • 3 ≤ G < 1000

Example

Input

3
3
1 2147483647 2147483647
5
3 4 7 4 3
5
2 10 2 10 5

Output

Case #1: 1
Case #2: 7
Case #3: 5

Discussions

About Discussions

The discussion section is only for posting: Editorials, General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues. Submitting multiple issues may cause your account to be banned.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.