結果
| 問題 |
No.889 素数!
|
| コンテスト | |
| ユーザー |
tjake
|
| 提出日時 | 2019-09-20 21:39:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 437 bytes |
| コンパイル時間 | 123 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-14 16:53:46 |
| 合計ジャッジ時間 | 3,548 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 61 |
ソースコード
N = int(input())
if N > 1:
for x in range(2, N):
if N % x == 0:
break
else:
print("Sosu!")
exit(0)
for x in range(2, N+1):
if x*x == N:
print("Heihosu!")
exit(0)
for x in range(2, N+1):
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)
tjake