結果
問題 |
No.889 素数!
|
ユーザー |
![]() |
提出日時 | 2019-09-20 21:35:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 399 bytes |
コンパイル時間 | 271 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-14 16:45:16 |
合計ジャッジ時間 | 3,964 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 59 WA * 2 |
ソースコード
N = int(input()) for x in range(2, N): if N % x == 0: break else: print("Sosu!") exit(0) for x in range(2, N): if x*x == N: print("Heihosu!") exit(0) for x in range(2, N): if x**3 == N: print("Ripposu!") exit(0) c = 0 for i in range(1, N): if N % i == 0: c += i if N > 0 and c == N: print("Kanzensu!") exit(0) print(N)