結果
| 問題 | No.2194 兄弟の掛け引き |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2023-01-20 21:30:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 204 bytes |
| 記録 | |
| コンパイル時間 | 275 ms |
| コンパイル使用メモリ | 95,852 KB |
| 実行使用メモリ | 83,200 KB |
| 最終ジャッジ日時 | 2026-07-27 18:57:16 |
| 合計ジャッジ時間 | 3,000 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 1 |
ソースコード
A,B,C = map(int, input().split())
ANS = []
for i in range(1,10**5+1):
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)
H20