No Duplicates
시간 제한: 2000ms메모리 제한: 512MB출처: ICPC Mid-Central Regional 2017BOJ 15098
문제
There is a game in which you try not to repeat a word while your opponent tries to see if you have repeated one.
"THE RAIN IN SPAIN" has no repeats.
"IN THE RAIN AND THE SNOW" repeats THE.
"THE RAIN IN SPAIN IN THE PLAIN" repeats THE and IN.
Write a program to test a phrase.
입력
Input is a line containing words separated by single spaces, where a word consists of one or more uppercase letters. A line contains no more than 80 characters.
출력
The output is "yes" if no word is repeated, and "no" if one or more words repeat.
예제
예제 1
입력
THE RAIN IN SPAIN
출력
yes
예제 2
입력
IN THE RAIN AND THE SNOW
출력
no
예제 3
입력
THE RAIN IN SPAIN IN THE PLAIN
출력
no
코드를 제출하려면 로그인하세요.