結果

問題 No.889 素数!
コンテスト
ユーザー cologne
提出日時 2025-12-02 13:33:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 437 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 322 ms
コンパイル使用メモリ 82,220 KB
実行使用メモリ 54,124 KB
最終ジャッジ日時 2025-12-02 13:33:44
合計ジャッジ時間 5,297 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 61
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys


def input(): return sys.stdin.readline().rstrip('\n')


def main():
    n = int(input())
    if n in [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61]:
        print('Sosu!')
    elif n in [4, 9, 16, 25, 36, 49]:
        print('Heihosu!')
    elif n in [8, 27]:
        print('Ripposu!')
    elif n in [6, 28]:
        print('Kanzensu!')
    else:
        print(n)


if __name__ == '__main__':
    main()
0