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

PROGRAMMING:Xinsi snake boy

Luz5年前 (2021-05-10)题库461
###Task description
January 24, 2001 is the Spring Festival of the year of the snake (the first day of the Lunar New Year), and February 11, 2002 is the new year's eve of the year of the snake. Zhao Zhongrui's birthday is January 7, 2002, so we call him "Xinsi snake boy". Zhao Zhongrui wants to know who else is "Xinsi snake boy" like him. You can help him find out( If and switch statements are not allowed)
###Input format:
In the first line, a People's Republic of China two generation ID number and name is given, and there is no space in the middle. Note: if the ID number is second, if it is odd, it will be a boy. If it is an even number, then you will know it.
###Output format:
If it is "Xinsi snake male", it will output: Yes, otherwise it will output: No.
###Input sample 1:
For the sake of confidentiality, the identity of the first 6 in the sample is set to 239999.
```in
2399920000 3132617 Yu Long
```
###Output sample 1:
```out
NO
```
###Input sample 2:
```in
2399920000 2210832 Yang Bing
```
###Output sample 2:
```out
NO
```
###Input sample 3:
```in
23999202011429 Zhang Weina
```
###Output sample 3:
```out
NO
```
###Input sample 3:
```in
23999202021210017 Liu Zhe
```
###Output sample 3:
```out
YES
```







answer:If there is no answer, please comment