22116_Who'sWinner_

2022-5-16 18:21| 发布者: Hocassian| 查看: 22| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-5-89506122054300-Problem List-采集的数据-后羿采集器.html

Pro.ID

22116

Title

Who's Winner?

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=22116

AC

0

Submit

0

Ratio

-

时间&空间限制

  • Time Limit: 3000/1000 MS (Java/Others)     Memory Limit: 131072/65536 K (Java/Others)
  • 描述

    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.

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部