結果

問題 No.1047 Zero (Novice)
ユーザー syosinnsya8
提出日時 2020-05-08 22:07:08
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 143 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 18,380 KB
最終ジャッジ日時 2024-07-04 00:45:30
合計ジャッジ時間 3,553 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other TLE * 1 -- * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
n=0
for i in range(1,max(a,b)+1):
        n=a*n+b
        if n==0:
                print(i)
                exit()
0