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

13064번 - Cameras 다국어

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

문제

In a crowded city, a network of traffic cameras are installed on all crosses and capture the image of the cars that pass the red lights. The law enforcement department requires a software system to process all the captured numbers, and issue a ticket for all the cars that violate the law. An image processing module has already preprocessed the video recordings and generated a file containing the recorded car numbers. You are requested to write the ticketing module. The problem is that the image processing module is not perfect, and some car numbers are wrong.

A true car number should meet all of the following requirements:

  • It is 8 characters long.
  • The two leftmost characters are identical digits between 1 to 9, which indicate in which city the car number is issued.
  • The following two characters are two digits between 1 to 9.
  • The following character is a capital English letter.
  • The three rightmost characters are also digits between 1 to 9.

입력

The first line of input contains the number of captured car numbers (n) that are reported by the image processing module. In each of the next n lines, there are exactly 8 numerical or English alphabetical characters, showing one inferred car number. You can assume 1 ≤ n ≤ 1000.

출력

You should report the car numbers that have violated the law, one in each line, in the same order that they appear in the input. If the same car number has violated the law multiple times, all of the violation cases should be reported. The wrong car numbers, which do not meet one or more of the above requirements, should not be listed in the output.

제한

예제 입력 1

5
8835R551
4352S132
2241X223
55123456
9914t521

예제 출력 1

8835R551
2241X223

힌트

출처

ICPC > Regionals > Asia West Continent > Iran > Tehran Site 2015 B번

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

출처

대학교 대회

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

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