시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
2 초 | 512 MB | 3055 | 2002 | 1873 | 66.607% |
Each player in a tournament plays six games. There are no ties. The tournament director places the players in groups based on the results of games as follows:
Write a program to determine which group a player is placed in
The input consists of six lines, each with one of two possible letters: W (to indicate a win) or L (to indicate a loss).
The output will be either 1, 2, 3 (to indicate which Group the player should be placed in) or -1 (to indicate the player has been eliminated).
W L W W L W
2
L L L L L L
-1