Logo
(追記) (追記ここまで)

12596번 - Odd Man Out (Large) 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
5 초 512 MB35630327384.520%

문제

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:

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

출력

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

제한

예제 입력 1

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

예제 출력 1

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

힌트

출처

Contest > Google > Google's Coding Competitions > Google Code Jam Africa 2010 > Online Competition A2번

채점 및 기타 정보

  • 예제는 채점하지 않는다.
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /