시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 41 | 21 | 20 | 62.500% |
A certain ICPC regional contest has specific requirements for the names of the competing teams. One of the reasons this is done is so spectators can determine which school each team is from. The requirements for a team name are specified on the website for the region as shown here:
Write a program that determines if a supplied string is a valid team name for this region.
The input consists of a single line containing a string of characters at least one character long and no more than 80 characters long. The input string will not have any leading or trailing spaces. The INSTITUTION may not contain hyphens (obviously). The TEAMNAME, however, may contain hyphens.
The single output line consists of the word YES if the string represents a valid team name for the region or NO if the string does not represent a valid team name for the region.
Stevens-1
YES
INSTITUTION-TEAMNAME
NO
Dragons
NO
VIRGTECH - Eagles
NO