#P15518. [CCC 2016 J1] Tournament Selection
[CCC 2016 J1] Tournament Selection
Description
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:
-
if a player wins or games, they are placed in Group ;
-
if a player wins or games, they are placed in Group ;
-
if a player wins or games, they are placed in Group ;
-
if a player does not win any games, they are eliminated from the tournament.
Write a program to determine which group a player is placed in.
Input Format
The input consists of six lines, each with one of two possible letters: W (to indicate a win) or L (to indicate a loss).
Output Format
The output will be either (to indicate which Group the player should be placed in) or (to indicate the player has been eliminated).
W
L
W
W
L
W
2
L
L
L
L
L
L
-1
京公网安备 11011102002149号