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

20376번 - Counting Monuments 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB20312110266.667%

문제

Alice loves visiting Paris. Every time she is in the city, she tries to see as many monuments as she can, and every day of her visit she notes down in her travel notebook which monument she saw that day. After many years and many trips to Paris, Alice is wondering how many different monuments she saw in her combined visits. She shows you her travel notebook, and asks for your help in computing this number.

입력

The input consists of n lines, all of which contain, first, a date (in the format YYYY-MM-DD), then a space, then the name of a monument. Names of monuments are character strings of arbitrary length and containing arbitrary printable characters except for the newline character.

출력

The output should consist of a single line, whose content is an integer, the number m of distinct monuments in the input.

제한

  • 1 ≤ n ≤ 1 000 000

예제 입력 1

2016年12月30日 Tour Eiffel
2016年12月31日 Tour Saint-Jacques
2016年12月31日 Centre Georges Pompidou
2018年01月15日 Tour Eiffel
2018年01月15日 Invalides
2018年01月15日 Arc de Triomphe
2018年01月16日 Tour Saint-Jacques
2018年01月16日 Panthéon
2018年01月17日 Sacré Cœur

예제 출력 1

7

힌트

출처

ICPC > Regionals > Europe > Southwestern European Regional Contest > SWERC 2018 연습 세션 PE번

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

출처

대학교 대회

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

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