結果

問題 No.889 素数!
ユーザー gorugo30
提出日時 2021-02-24 22:29:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 295 bytes
コンパイル時間 1,997 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 53,828 KB
最終ジャッジ日時 2024-09-24 23:25:16
合計ジャッジ時間 4,997 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 61
権限があれば一括ダウンロードができます

ソースコード

diff #

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