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

PROGRAMMING:Alien Attack

Luz5年前 (2021-05-10)题库543
Now there is a city wall with numbers. Foreigners outside the city want to capture the wall to rob the gold, silver, treasure and beauties inside. Foreigners have a special kind of magic, they will read a series of numbers, if the number of the wall is exactly the same as the spell, then the corresponding position of the wall will disappear. The sacrificial rites of foreign people get a series of figures by calculation. Can they break the wall to get treasure and beauty.
###Input format:
The test data does not exceed 1000 groups, each line contains the number of the city wall and the number of the mantra, and the length does not exceed 500.
###Output format:
If the alien can't make any part of the wall disappear, output No. If you can make at least one wall disappear, output yes.
###Input example:
Here is a set of inputs. For example:
```in
123456 7
1111233 2
```
###Output example:
The corresponding output is given here. For example:
```out
NO
YES
```







answer:If there is no answer, please comment