Challenge 1 - Rock, Paper, Scissors
Rock, paper, scissors is an extremely fun game played all around the world. Tuenti employees even play it with their children after work. Have you ever played? Let's play now!
The first line will contain an integer N, which is the number of cases for the problem. Each case is a game between two people. It’s represented by two letters separated by a space. Each letter is the chosen shape by each player. The possible values are: R for rock, P for paper and S for scissors
For each case, there should be a line starting with "Case #x: " followed by the winning shape, or '-' when the result is a draw.
8 R S R P P P S P R R P R P P S R
Case #1: R Case #2: P Case #3: - Case #4: S Case #5: - Case #6: P Case #7: - Case #8: R
Test your code
You can test your program against both the input provided in the test phase and the input provided in the submit phase. A nice output will tell you if your program got the right solution or not. You can try as many times as you want. Be careful with extra whitespace. The output should be exactly as described.
Test your program against the input provided in the test phase
Test your program against the input provided in the submit phase
During the submit phase, in some problems, we might give your program harder inputs. As with the test token, a nice output will tell you if your program got the right solution or not. You can try as many times as you need.
In the actual contest you have to solve the test phase before you can submit your code. You must provide the source code used to solve the challenge and you can only make one submission. After your solution is submitted, you won't be able to modify it to fix issues or make it faster.
If you have any doubts, please see the info section.
min: 0:02:07 h
10th percentile: 0:12:45 h
90th percentile: 8:25:06 h
max: 121:26:18 h
|Test phase time:||
10th percentile: 0:11:07 h
90th percentile: 7:24:20 h
|Submit phase time:||
10th percentile: 0:00:49 h
90th percentile: 0:17:25 h
|# of completions:||669|