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

33643번 - Keys, Phone, Wallet 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB15311810580.153%

문제

Oh no, you slept in and have to rush to get to work on time! It is also very cold outside!

In your rush to put on Winter gear and leave home quickly, you wonder if you forgot your keys, phone, or wallet. You had better check.

입력

The first line of input contains a single integer $N$ (1ドル≤N≤20$) indicating the number of items you grabbed before heading out the door.

The next $N$ lines each contain a single nonempty string of lowercase letters with length at most 10ドル$ indicating an item you grabbed before heading out the door. No two strings will be the same.

출력

Output each of keys, phone, and wallet that does not appear in the input, one per line and in alphabetic order. If you did not forget any of these items, simply print a single line with the text ready.

제한

예제 입력 1

4
jacket
gloves
wallet
keys

예제 출력 1

phone

예제 입력 2

4
phone
toque
wallet
keys

예제 출력 2

ready

예제 입력 3

5
scarf
jacket
gloves
snowpants
shades

예제 출력 3

keys
phone
wallet

힌트

출처

University > University of Alberta Programming Contest > UAPC 2024 > Division 2 A번

  • 문제를 만든 사람: Zachary Friggstad
(追記) (追記ここまで)

출처

대학교 대회

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

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