-->
当前位置:首页 > 题库

PROGRAMMING:Henan's anti epidemic Heroes

Luz5年前 (2021-05-10)题库440
Give the names of a series of anti epidemic heroes and the provinces they came from. Now please help to count the number of anti epidemic heroes from Henan.
Note: it is recommended to use functions for modular programming, such as:
```
Bool judge (char name, char province) / / judge whether a person is from Henan Province
{
}
int main()
{
}
```
###Input format:
The first line is an integer n (1 < = n < = 100000), which indicates how many people there are in the list.
In the following N lines, two strings in each line are separated by spaces. Name province (* * name and province do not contain spaces, and the length of each string is no more than 20 * *), respectively indicating the English abbreviation of name and province (here we make it clear that the code of Henan Province is fixed as "ha", and we do not require the code of other provinces, as long as it is not "ha", We think it's other provinces;
###Output format:
A number, that is, how many people are from Henan Province.
###Input example:
Here is a set of inputs. For example:
```in
three
aaa HA
bbb HK
qwe TW
```
###Output example:
The corresponding output is given here. For example:
```out
one
```







answer:If there is no answer, please comment