結果

問題 No.1047 Zero (Novice)
ユーザー 👑 H20H20
提出日時 2021-04-22 14:42:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 758 ms / 2,000 ms
コード長 129 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 84,712 KB
最終ジャッジ日時 2023-09-17 10:01:22
合計ジャッジ時間 8,818 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,444 KB
testcase_01 AC 155 ms
76,172 KB
testcase_02 AC 69 ms
71,196 KB
testcase_03 AC 684 ms
84,636 KB
testcase_04 AC 696 ms
84,712 KB
testcase_05 AC 659 ms
84,520 KB
testcase_06 AC 70 ms
71,120 KB
testcase_07 AC 72 ms
75,528 KB
testcase_08 AC 70 ms
71,268 KB
testcase_09 AC 69 ms
71,420 KB
testcase_10 AC 73 ms
75,512 KB
testcase_11 AC 72 ms
75,524 KB
testcase_12 AC 72 ms
75,644 KB
testcase_13 AC 683 ms
84,324 KB
testcase_14 AC 544 ms
81,172 KB
testcase_15 AC 686 ms
83,736 KB
testcase_16 AC 758 ms
84,688 KB
testcase_17 AC 698 ms
83,716 KB
testcase_18 AC 70 ms
71,520 KB
testcase_19 AC 699 ms
83,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B=map(int,input().split())
N = 0
for i in range(1,24000):
    N = N*A+B
    if N==0:
        print(i)
        exit()
print(-1)
0