結果

問題 No.889 素数!
ユーザー jj1gujjj1guj
提出日時 2019-11-23 12:09:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-11 06:52:09
合計ジャッジ時間 3,489 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 61
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N=int(input())
N_sqrt=int(math.sqrt(N))
T=[8,27]
P=[6,28]
prime=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61]

if N_sqrt**2==N and N!=0 and N!=1:
    print("Heihosu!")
elif N in T:
    print("Ripposu!")
elif N in P:
    print("Kanzensu!")
elif N in prime:
    print("Sosu!")
else:
    print(N)
0