結果

問題 No.1312 Snake Eyes
ユーザー Kiri8128Kiri8128
提出日時 2020-12-09 00:03:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 81,808 KB
実行使用メモリ 75,184 KB
最終ジャッジ日時 2023-10-19 01:53:50
合計ジャッジ時間 8,870 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,448 KB
testcase_01 AC 41 ms
53,448 KB
testcase_02 AC 39 ms
53,448 KB
testcase_03 AC 39 ms
53,448 KB
testcase_04 AC 38 ms
53,448 KB
testcase_05 AC 39 ms
53,448 KB
testcase_06 AC 38 ms
53,448 KB
testcase_07 AC 38 ms
53,448 KB
testcase_08 AC 39 ms
53,448 KB
testcase_09 AC 39 ms
53,448 KB
testcase_10 AC 39 ms
53,448 KB
testcase_11 AC 39 ms
53,448 KB
testcase_12 AC 40 ms
53,448 KB
testcase_13 AC 39 ms
53,448 KB
testcase_14 AC 39 ms
53,448 KB
testcase_15 AC 38 ms
53,448 KB
testcase_16 AC 39 ms
53,448 KB
testcase_17 AC 38 ms
53,448 KB
testcase_18 AC 39 ms
53,448 KB
testcase_19 AC 39 ms
53,448 KB
testcase_20 AC 40 ms
53,448 KB
testcase_21 AC 40 ms
53,448 KB
testcase_22 AC 44 ms
59,644 KB
testcase_23 AC 48 ms
59,648 KB
testcase_24 AC 47 ms
59,648 KB
testcase_25 AC 45 ms
59,648 KB
testcase_26 AC 43 ms
59,644 KB
testcase_27 AC 59 ms
59,648 KB
testcase_28 AC 39 ms
53,472 KB
testcase_29 AC 46 ms
59,648 KB
testcase_30 AC 44 ms
59,660 KB
testcase_31 AC 44 ms
59,648 KB
testcase_32 AC 43 ms
59,648 KB
testcase_33 AC 50 ms
59,648 KB
testcase_34 AC 44 ms
59,648 KB
testcase_35 AC 52 ms
59,648 KB
testcase_36 AC 44 ms
59,648 KB
testcase_37 AC 46 ms
59,660 KB
testcase_38 AC 45 ms
59,648 KB
testcase_39 WA -
testcase_40 AC 57 ms
59,648 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 59 ms
59,648 KB
testcase_46 WA -
testcase_47 AC 112 ms
59,660 KB
testcase_48 AC 150 ms
75,012 KB
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 AC 117 ms
75,128 KB
testcase_57 WA -
testcase_58 WA -
testcase_59 AC 87 ms
75,008 KB
testcase_60 WA -
testcase_61 WA -
testcase_62 AC 96 ms
75,012 KB
testcase_63 AC 43 ms
59,652 KB
testcase_64 AC 39 ms
53,472 KB
testcase_65 AC 39 ms
53,472 KB
testcase_66 AC 43 ms
59,648 KB
testcase_67 AC 38 ms
53,472 KB
testcase_68 AC 39 ms
53,472 KB
testcase_69 AC 39 ms
53,472 KB
testcase_70 AC 39 ms
53,472 KB
testcase_71 AC 38 ms
53,472 KB
testcase_72 AC 38 ms
53,472 KB
testcase_73 AC 39 ms
53,472 KB
testcase_74 AC 39 ms
53,472 KB
testcase_75 AC 39 ms
53,472 KB
testcase_76 AC 158 ms
75,116 KB
testcase_77 AC 156 ms
75,012 KB
testcase_78 AC 157 ms
75,012 KB
testcase_79 AC 39 ms
53,472 KB
testcase_80 AC 159 ms
75,008 KB
testcase_81 AC 131 ms
75,012 KB
testcase_82 AC 48 ms
61,724 KB
testcase_83 WA -
testcase_84 AC 158 ms
75,012 KB
testcase_85 AC 39 ms
53,472 KB
testcase_86 AC 39 ms
53,472 KB
testcase_87 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
for p in range(2, 10 ** 6 + 10):
    s = 0
    a = 1
    f = 0
    while s < N:
        s += a
        a *= p
        if N % s == 0 and N // s < p:
            f = 1
            break
    if f:
        print(p)
        break
else:
    print(N - 1)
0