結果
| 問題 |
No.1047 Zero (Novice)
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-02-08 18:47:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 133 bytes |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 82,100 KB |
| 実行使用メモリ | 53,260 KB |
| 最終ジャッジ日時 | 2025-02-08 18:47:37 |
| 合計ジャッジ時間 | 1,801 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
A,B = map(int,input().split())
N = 0
for i in range(10):
N = A * N + B
if N == 0:
print(i+1)
exit()
print(-1)
ntuda