結果

問題 No.1312 Snake Eyes
ユーザー titiatitia
提出日時 2020-12-15 07:05:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 245 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 81,648 KB
実行使用メモリ 75,068 KB
最終ジャッジ日時 2023-10-20 05:45:54
合計ジャッジ時間 24,730 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,388 KB
testcase_01 AC 40 ms
53,388 KB
testcase_02 AC 38 ms
53,388 KB
testcase_03 AC 39 ms
53,388 KB
testcase_04 AC 40 ms
53,388 KB
testcase_05 AC 39 ms
53,388 KB
testcase_06 AC 38 ms
53,388 KB
testcase_07 AC 39 ms
53,388 KB
testcase_08 AC 40 ms
53,388 KB
testcase_09 AC 40 ms
53,388 KB
testcase_10 AC 39 ms
53,388 KB
testcase_11 AC 39 ms
53,388 KB
testcase_12 AC 40 ms
53,388 KB
testcase_13 AC 37 ms
53,388 KB
testcase_14 AC 41 ms
53,388 KB
testcase_15 AC 39 ms
53,388 KB
testcase_16 AC 39 ms
53,388 KB
testcase_17 AC 39 ms
53,388 KB
testcase_18 AC 39 ms
53,388 KB
testcase_19 AC 39 ms
53,388 KB
testcase_20 AC 39 ms
53,388 KB
testcase_21 AC 39 ms
53,388 KB
testcase_22 AC 39 ms
53,388 KB
testcase_23 AC 40 ms
53,388 KB
testcase_24 AC 54 ms
74,912 KB
testcase_25 AC 46 ms
63,740 KB
testcase_26 AC 39 ms
53,388 KB
testcase_27 AC 76 ms
74,912 KB
testcase_28 AC 39 ms
53,388 KB
testcase_29 AC 44 ms
59,644 KB
testcase_30 AC 44 ms
59,644 KB
testcase_31 AC 47 ms
61,692 KB
testcase_32 AC 42 ms
53,388 KB
testcase_33 AC 61 ms
74,912 KB
testcase_34 AC 44 ms
59,644 KB
testcase_35 AC 63 ms
74,912 KB
testcase_36 AC 43 ms
57,012 KB
testcase_37 AC 48 ms
69,884 KB
testcase_38 AC 47 ms
65,788 KB
testcase_39 WA -
testcase_40 AC 74 ms
74,916 KB
testcase_41 AC 229 ms
74,924 KB
testcase_42 WA -
testcase_43 AC 573 ms
74,920 KB
testcase_44 AC 247 ms
74,920 KB
testcase_45 AC 75 ms
74,916 KB
testcase_46 WA -
testcase_47 AC 1,142 ms
74,920 KB
testcase_48 AC 159 ms
74,924 KB
testcase_49 AC 226 ms
74,916 KB
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 AC 610 ms
74,944 KB
testcase_55 WA -
testcase_56 AC 124 ms
74,916 KB
testcase_57 WA -
testcase_58 AC 331 ms
74,932 KB
testcase_59 AC 90 ms
74,912 KB
testcase_60 WA -
testcase_61 AC 225 ms
74,928 KB
testcase_62 AC 97 ms
74,916 KB
testcase_63 AC 40 ms
53,388 KB
testcase_64 AC 39 ms
53,388 KB
testcase_65 AC 39 ms
53,388 KB
testcase_66 AC 39 ms
53,388 KB
testcase_67 AC 40 ms
53,388 KB
testcase_68 AC 39 ms
53,388 KB
testcase_69 AC 38 ms
53,388 KB
testcase_70 AC 38 ms
53,388 KB
testcase_71 AC 38 ms
53,388 KB
testcase_72 AC 39 ms
53,388 KB
testcase_73 AC 38 ms
53,388 KB
testcase_74 AC 38 ms
53,388 KB
testcase_75 AC 40 ms
53,388 KB
testcase_76 AC 161 ms
74,916 KB
testcase_77 AC 1,146 ms
75,028 KB
testcase_78 AC 163 ms
74,920 KB
testcase_79 AC 39 ms
53,388 KB
testcase_80 AC 166 ms
74,928 KB
testcase_81 AC 129 ms
74,916 KB
testcase_82 AC 46 ms
63,740 KB
testcase_83 AC 190 ms
74,924 KB
testcase_84 AC 1,148 ms
75,032 KB
testcase_85 AC 39 ms
53,388 KB
testcase_86 AC 39 ms
53,388 KB
testcase_87 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def calc(N,x):
    A=N%x
    i=1
    while N:
        r=N%x
        if r!=A:
            return 0
        N//=x
    return 1
    

N=int(input())

for x in range(2,10**7):
    if calc(N,x)==1:
        print(x)
        break
else:
    print(N-1)
0