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

21890번 - File names 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB1491019168.421%

문제

Petya and Vasya love to develop their own operating systems, so Petya uses PetOS operating system on his computer, and Vasya uses VasOS on his computer.

One day Petya wanted to send Vasya some files from his computer, but it turned out that it was not so easy to do. The problem is that in PetOS the name of file can be any string consisting of Latin letters and dots, with length in range from 1 to 20, and VasOS only supports the names of the form <filename>.<extension>, where <filename> and <extension> are non-empty strings of Latin letters, with the length of <filename> not greater than 8, and the length of <extension> not greater than 3.

Help Petya to calculate how many files from his list can be transferred to Vasya without changing their name.

입력

The first line contains the number $n,ドル the number of files Petya wants to transfer (1ドル \le n \le 100$). The following $n$ lines contain file names. All names have a length of 1 to 20 characters and contain only lowercase Latin letters and dots.

출력

Output the number of files that Petya can transfer to Vasya without renaming.

제한

예제 입력 1

8
.exe
script
a.in.txt
a.t
con.exe
solution.cpp
b.java
verylongname.txt

예제 출력 1

3

힌트

In the given example Petya can transfer the following files: a.t, con.exe, solution.cpp.

출처

Contest > Innopolis Open in Informatics > Innopolis Open, Elimination round 2, 2017-2018 A번

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

출처

대학교 대회

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

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