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

PROGRAMMING:Taking stones (2)

Luz5年前 (2021-05-10)题库365
Tom and Mary play the game of taking stones: $$n $$stones are piled in a pile. Starting from Tom, they take turns to take stones, at least one and at most two. Whoever gets the last stone will fail. Both men are very clever and will not miss any chance to win. Please write the program with the same cleverness, input the number of stones and output the name of the winner.
####Input format
>The number of stones
####Output format
>The winner's name
####Input sample 1
```in
one
```
####Output sample 1
```out
Mary
```
####Input sample 2
```in
two
```
####Output sample 2
```out
Tom
```







answer:If there is no answer, please comment