-->
当前位置:首页 > 题库

PROGRAMMING:Wynn

Luz5年前 (2021-05-10)题库453
Everyone should be able to play the game of "hammer, scissors and cloth": two people give gestures at the same time. The winning and losing rules are as shown in the figure:
![](~/ 367)
Now you are required to write a winning procedure, according to the opponent's move, give the corresponding win move. But! In order not to lose too badly, you need to draw every $$k $$.
###Input format:
Enter the positive integer $$k $$($$Le 10 $$) in the first line, that is, the number of draw intervals. Then each line gives the other's move: "chuizi" stands for "hammer", "Jiandao" stands for "scissors" and "bu" stands for "cloth"` End 'stands for the end of input. This line should not be treated as a trick.
###Output format:
For each input move, according to the requirements of the output win or draw moves. One line for each move.
###Input example:
```in
two
ChuiZi
JianDao
Bu
JianDao
Bu
ChuiZi
ChuiZi
End
```
###Output example:
```out
Bu
ChuiZi
Bu
ChuiZi
JianDao
ChuiZi
Bu
```






answer:If there is no answer, please comment