結果
| 問題 | No.2194 兄弟の掛け引き |
| コンテスト | |
| ユーザー |
n_na
|
| 提出日時 | 2023-01-21 02:56:23 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 269 bytes |
| 記録 | |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 83,328 KB |
| 最終ジャッジ日時 | 2026-07-27 22:56:01 |
| 合計ジャッジ時間 | 2,845 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 5 |
ソースコード
A,B,C = map(int,input().split())
res = []
k = (B+A-1)//A
for n in range(k,pow(10,5)+1):
if n*A-B > 0 and C == n*A-B: res.append(n)
if n*A-B <= 0 and C == n*A: res.append(n)
res.sort()
if not res:
print(-1)
else:
for r in res:
print(r)
n_na