2033 Meme Vote
Time limit1sMemory limit1024 MB
Given N lines, print Yes if any line is not one of Rick Astley's seven original promises (case-sensitive), otherwise print No.
- Level
Easy1 of 10
- Topics
- String, Implementation
- Solved
- No attempts yet
Problem
In 2033, a vote will decide the number one meme in Harunara. The candidates competing for first place each present unique campaign promises. A poll shows that 'Rick Astley' leads with the following promises.
Never gonna give you upNever gonna let you downNever gonna run around and desert youNever gonna make you cryNever gonna say goodbyeNever gonna tell a lie and hurt youNever gonna stop
However, hacking has advanced so far that a hacker who dislikes Rick Astley's promises is secretly changing them. haru_101 wants to know whether the hacker has changed Rick Astley's promises. If even one of the given sentences does not belong to the original promises, the promises are considered changed. Case matters. Help haru_101.
Input
The first line contains an integer .
From the second line through line , each line contains a promise made of English letters (upper and lower case) and spaces. does not start or end with a space.
Output
If every sentence belongs to the promises made by Rick Astley, print No. If even one does not, print Yes.