結果
問題 | No.2194 兄弟の掛け引き |
ユーザー | H20 |
提出日時 | 2023-01-20 21:31:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 46 ms / 1,000 ms |
コード長 | 200 bytes |
コンパイル時間 | 324 ms |
コンパイル使用メモリ | 82,324 KB |
実行使用メモリ | 57,984 KB |
最終ジャッジ日時 | 2024-06-23 09:24:34 |
合計ジャッジ時間 | 1,620 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
A,B,C = map(int, input().split()) ANS = [] for i in range(10**6): if i*A-B==C or (i*A<=B and i*A==C): ANS.append(i) if len(ANS): for ans in ANS: print(ans) else: print(-1)