結果
問題 | No.1047 Zero (Novice) |
ユーザー |
![]() |
提出日時 | 2024-08-13 11:12:58 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 145 bytes |
コンパイル時間 | 592 ms |
コンパイル使用メモリ | 82,536 KB |
実行使用メモリ | 266,980 KB |
最終ジャッジ日時 | 2024-08-13 11:13:04 |
合計ジャッジ時間 | 5,750 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 16 |
ソースコード
A, B = map(int, input().split())n = 0for i in range(100000):n = A * n + Bif n == 0:print(i + 1)exit()print(-1)