結果

問題 No.889 素数!
ユーザー deepjugglingdeepjuggling
提出日時 2023-03-11 13:28:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 507 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 81,812 KB
実行使用メモリ 53,596 KB
最終ジャッジ日時 2023-10-18 09:50:56
合計ジャッジ時間 5,697 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
53,488 KB
testcase_01 AC 42 ms
53,488 KB
testcase_02 AC 43 ms
53,488 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 41 ms
53,488 KB
testcase_06 AC 42 ms
53,488 KB
testcase_07 AC 41 ms
53,488 KB
testcase_08 AC 42 ms
53,488 KB
testcase_09 WA -
testcase_10 AC 42 ms
53,488 KB
testcase_11 AC 42 ms
53,488 KB
testcase_12 AC 43 ms
53,488 KB
testcase_13 AC 41 ms
53,488 KB
testcase_14 AC 41 ms
53,488 KB
testcase_15 WA -
testcase_16 AC 42 ms
53,488 KB
testcase_17 AC 41 ms
53,488 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 41 ms
53,488 KB
testcase_21 WA -
testcase_22 AC 41 ms
53,488 KB
testcase_23 AC 42 ms
53,488 KB
testcase_24 AC 42 ms
53,488 KB
testcase_25 WA -
testcase_26 AC 44 ms
53,488 KB
testcase_27 AC 41 ms
53,488 KB
testcase_28 AC 41 ms
53,488 KB
testcase_29 WA -
testcase_30 AC 42 ms
53,488 KB
testcase_31 AC 42 ms
53,488 KB
testcase_32 AC 42 ms
53,488 KB
testcase_33 AC 42 ms
53,488 KB
testcase_34 AC 42 ms
53,488 KB
testcase_35 AC 41 ms
53,488 KB
testcase_36 AC 41 ms
53,488 KB
testcase_37 AC 41 ms
53,488 KB
testcase_38 AC 41 ms
53,488 KB
testcase_39 AC 42 ms
53,488 KB
testcase_40 WA -
testcase_41 AC 41 ms
53,488 KB
testcase_42 AC 41 ms
53,488 KB
testcase_43 AC 41 ms
53,488 KB
testcase_44 WA -
testcase_45 WA -
testcase_46 AC 41 ms
53,488 KB
testcase_47 AC 42 ms
53,488 KB
testcase_48 AC 42 ms
53,488 KB
testcase_49 AC 41 ms
53,488 KB
testcase_50 WA -
testcase_51 AC 41 ms
53,488 KB
testcase_52 WA -
testcase_53 AC 41 ms
53,488 KB
testcase_54 WA -
testcase_55 AC 41 ms
53,488 KB
testcase_56 WA -
testcase_57 AC 41 ms
53,488 KB
testcase_58 AC 41 ms
53,488 KB
testcase_59 AC 40 ms
53,488 KB
testcase_60 WA -
testcase_61 AC 41 ms
53,488 KB
testcase_62 AC 42 ms
53,488 KB
testcase_63 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
nn = int(input())
n = nn
if n < 2:
    print(n)
yakusu = []
for i in range(2,nn):
    while n % i == 0:
        yakusu.append(i)
        n //= i
yakusu.append(n)
yaku = Counter(yakusu)
ma = 0
for i in yaku:
    ma = max(ma,yaku[i])
if n == nn:
    print("Sosu!")
else:
    if ma == 3:
        print("Ripposu!")
    elif ma == 2:
        print("Heihosu!")
    else:
        if n == 6 or n == 28:
            print("Kanzensu!")
        else:
            print(nn)
#print(yaku)
0