結果

問題 No.889 素数!
ユーザー popketle
提出日時 2019-09-22 06:57:04
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 303 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-19 03:23:15
合計ジャッジ時間 3,619 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 16 WA * 45
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())

for i in range(1,n+1):
    if n%i==0:
        pass
    else:
        print('Sosu!')
        exit()
root=[4,6,9,16,25]
cubi=[8,27]
perf=[5,28]
if n in root:
    print('Heihosu!')
    exit()
elif n in cubi:
    print('Ripposu!')
    exit()
elif n in perf:
    print('Kanzensu!')
    exit()
0