結果
問題 | No.2194 兄弟の掛け引き |
ユーザー |
|
提出日時 | 2023-01-20 21:53:27 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 50 ms / 1,000 ms |
コード長 | 433 bytes |
コンパイル時間 | 166 ms |
コンパイル使用メモリ | 81,968 KB |
実行使用メモリ | 59,776 KB |
最終ジャッジ日時 | 2024-06-23 09:51:47 |
合計ジャッジ時間 | 1,672 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
import sysfrom collections import deque, Counterinput = lambda: sys.stdin.readline().rstrip()ii = lambda: int(input())mi = lambda: map(int, input().split())li = lambda: list(mi())inf = 2 ** 63 - 1mod = 998244353a, b, c = mi()f = Falsefor i in range(1, 10 ** 6):now = inow *= aif now - b > 0:now -= belse:passif now == c:f = Trueprint(i)if not f:print(-1)