結果
問題 | No.889 素数! |
ユーザー |
![]() |
提出日時 | 2019-09-20 21:45:09 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 356 ms |
コンパイル使用メモリ | 81,832 KB |
実行使用メモリ | 53,452 KB |
最終ジャッジ日時 | 2024-09-14 17:06:58 |
合計ジャッジ時間 | 4,323 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 61 |
ソースコード
N = int(input()) A = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61] B = [4, 9, 16, 25, 36, 49, 64] C = [8, 27, 64] D = [6, 28] if N in A: print("Sosu!") elif N in B: print("Heihosu!") elif N in C: print("Ripposu!") elif N in D: print("Kanzensu!") else: print(N)