C. 练68.3  车牌问题

    Type: Default 1000ms 64MiB

练68.3  车牌问题

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

The Beijing Vehicle Management Office issues a license plate for each registered car. The license plate number consists of six characters, such as A99452A99452 or B88888B88888. The first character from the left is an uppercase English letter (like AA, BB, CC, etc.), indicating whether the car belongs to the urban area or suburban area of Beijing. The remaining five characters are digits. It is assumed that plates starting with letters AA, BB, CC, DD, EE, FF, GG, RR, SS, TT represent urban area cars, while plates starting with other letters represent suburban area cars.
Please help the Vehicle Management Office determine how many of the given license plates belong to suburban cars in Beijing.

Input Format

Line 1 contains a positive integer NN (1N1051 \leq N \leq 10^5), indicating the number of license plates.
The next NN lines each contain a license plate number. It is guaranteed that all given license plates are unique.

Output Format

The number of suburban license plates.

Sample

3
G54672
Q87680
P77771
2

20251206 B班作业(9 & 10)

Not Claimed
Status
Done
Problem
7
Open Since
2025-12-7 0:00
Deadline
2025-12-14 23:59
Extension
24 hour(s)