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

30552번 - Attendance 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB37724922868.468%

문제

Taking attendance in your class is a tedious task. You call out the names of students one at a time in alphabetical order. If the student is present, they respond by saying "Present!" before you call the next name.

This is such a boring task that you sometimes zone out and don't keep a proper record of attendance. Write a program to help you summarize the absences!

입력

The first line of input contains a single integer $N$ $(1 \leq N \leq 200)$ indicating the number of "callouts". Then $N$ lines follow indicating the callouts that were made in the order they were made. A single line consists of either a student's name or of the response Present!. A student's name will consist of between 2ドル$ and 10ドル$ characters, the first always being an uppercase letter ('A'-'Z') and the remaining characters always being lowercase letters ('a'-'z').

The student names will appear in alphabetical order in this input and a line with the response Present! will only appear if the previous line was the name of a student. In particular, the response Present! will never appear as the first callout.

출력

Output the names of all students that are absent in the order they were called, each on a separate line. If no students were absent, simply output the message No Absences

제한

예제 입력 1

6
Buckley
Burnadette
Present!
Chad
Present!
Erin

예제 출력 1

Buckley
Erin

예제 입력 2

3
Alice
Bob
Charlie

예제 출력 2

Alice
Bob
Charlie

예제 입력 3

8
Gregory
Present!
Maureen
Present!
Milton
Present!
Xavier
Present!

예제 출력 3

No Absences

예제 입력 4

5
Gift
Present!
Present
Treat
Present!

예제 출력 4

Present

힌트

출처

ICPC > Regionals > North America > Rocky Mountain Regional > 2023 Rocky Mountain Regional Contest A번

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

출처

대학교 대회

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

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