結果
| 問題 |
No.889 素数!
|
| コンテスト | |
| ユーザー |
imoken
|
| 提出日時 | 2021-03-16 10:27:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 476 bytes |
| コンパイル時間 | 304 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-07 21:03:14 |
| 合計ジャッジ時間 | 4,094 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 58 WA * 3 |
ソースコード
N=int(input())
A=[int(i) for i in range(2,N)]
B=[1,N]
cnt=0
for j in range(N-2):
if (A[j]**2)==N:
print("Heihosu!")
break
if (A[j]**3)==N:
print("Ripposu!")
break
if N%A[j]!=0:
cnt=cnt+1
if (N-2)==cnt:
print("Sosu!")
break
if N%A[j]==0:
B.append(A[j])
if j==(N-3):
if (N*2)==(sum(B)):
print("Kanzensu!")
break
else:
print(N)
imoken