Pro.ID22116 TitleWho's Winner? Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22116 AC0 Submit0 Ratio- 时间&空间限制描述Nic and Susan play the game of multiplication by multiplying an integer p by one of the numbers 2 to 9. Nic always starts with p = 1, does his multiplication. Then Susan multiplies the number, then Nic and so on. Before a game starts, they draw an integer 1 <= n <= 4,294,967,295 and the winner is who first reaches p >= n. 输入Each line of input contains one integer number n. 输出Description Nic and Susan play the game of multiplication by multiplying an integer p by one of the numbers 2 to 9. Nic always starts with p = 1, does his multiplication. Then Susan multiplies the number, then Nic and so on. Before a game starts, they draw an integer 1 <= n <= 4,294,967,295 and the winner is who first reaches p >= n. Input Each line of input contains one integer number n. Output For each line of input output one line either Nic wins. or Susan wins. Assume that both of them play perfectly. Sample Input 162
17
34012226 Sample Output Nic wins.
Susan wins.
Nic wins. Source 样例输入162
17
34012226 样例输出Nic wins.
Susan wins.
Nic wins. 作者 |