結果

問題 No.889 素数!
ユーザー dangodango
提出日時 2023-06-11 14:50:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 530 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 87,296 KB
実行使用メモリ 76,276 KB
最終ジャッジ日時 2023-08-31 01:56:36
合計ジャッジ時間 8,589 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
75,932 KB
testcase_01 AC 71 ms
76,004 KB
testcase_02 AC 73 ms
75,924 KB
testcase_03 AC 74 ms
75,984 KB
testcase_04 AC 71 ms
76,016 KB
testcase_05 AC 73 ms
75,992 KB
testcase_06 AC 73 ms
75,972 KB
testcase_07 AC 74 ms
75,992 KB
testcase_08 AC 74 ms
76,056 KB
testcase_09 AC 73 ms
76,060 KB
testcase_10 AC 71 ms
75,996 KB
testcase_11 AC 73 ms
76,104 KB
testcase_12 AC 71 ms
75,976 KB
testcase_13 AC 75 ms
75,932 KB
testcase_14 AC 74 ms
76,064 KB
testcase_15 AC 74 ms
75,928 KB
testcase_16 AC 73 ms
75,784 KB
testcase_17 AC 74 ms
76,052 KB
testcase_18 AC 74 ms
76,052 KB
testcase_19 AC 74 ms
75,936 KB
testcase_20 AC 72 ms
75,924 KB
testcase_21 AC 74 ms
75,968 KB
testcase_22 AC 73 ms
76,060 KB
testcase_23 AC 74 ms
75,936 KB
testcase_24 AC 75 ms
75,984 KB
testcase_25 AC 73 ms
76,104 KB
testcase_26 AC 74 ms
76,028 KB
testcase_27 AC 74 ms
75,932 KB
testcase_28 AC 72 ms
75,804 KB
testcase_29 AC 73 ms
75,940 KB
testcase_30 AC 73 ms
76,068 KB
testcase_31 AC 72 ms
76,028 KB
testcase_32 AC 73 ms
75,948 KB
testcase_33 AC 76 ms
75,988 KB
testcase_34 AC 74 ms
76,008 KB
testcase_35 AC 71 ms
75,896 KB
testcase_36 AC 73 ms
75,916 KB
testcase_37 AC 74 ms
75,932 KB
testcase_38 AC 74 ms
75,992 KB
testcase_39 AC 74 ms
76,052 KB
testcase_40 AC 74 ms
75,904 KB
testcase_41 AC 73 ms
76,032 KB
testcase_42 AC 73 ms
76,132 KB
testcase_43 AC 75 ms
75,980 KB
testcase_44 AC 73 ms
75,916 KB
testcase_45 AC 73 ms
75,988 KB
testcase_46 AC 72 ms
75,900 KB
testcase_47 AC 76 ms
75,916 KB
testcase_48 AC 74 ms
75,924 KB
testcase_49 AC 75 ms
75,920 KB
testcase_50 AC 73 ms
75,796 KB
testcase_51 AC 74 ms
75,992 KB
testcase_52 AC 83 ms
75,992 KB
testcase_53 AC 74 ms
75,804 KB
testcase_54 AC 72 ms
76,028 KB
testcase_55 AC 71 ms
76,276 KB
testcase_56 AC 72 ms
76,008 KB
testcase_57 AC 75 ms
75,928 KB
testcase_58 AC 74 ms
75,992 KB
testcase_59 AC 72 ms
75,992 KB
testcase_60 AC 74 ms
76,044 KB
testcase_61 AC 72 ms
75,896 KB
testcase_62 AC 73 ms
76,028 KB
testcase_63 AC 75 ms
75,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S, H, R, K = set(), set(), set(), set()
for I in range(2, 64):
    H.add(I ** 2)
    R.add(I ** 3)
    F = 0
    T = [1]
    for J in range(2, 64):
        if I <= J:
            break
        if I == J:
            continue
        if I % J == 0:
            F = 1
            T.append(J)
    if F == 0:
        S.add(I)
    if sum(T) == I:
        K.add(I)
if N in S:
    print('Sosu!')
elif N in H:
    print('Heihosu!')
elif N in R:
    print('Ripposu!')
elif N in K:
    print('Kanzensu!')
else:
    print(N)
0