結果
| 問題 |
No.2194 兄弟の掛け引き
|
| コンテスト | |
| ユーザー |
n_na
|
| 提出日時 | 2023-01-21 03:06:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 323 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 82,844 KB |
| 実行使用メモリ | 59,276 KB |
| 最終ジャッジ日時 | 2024-06-23 14:28:36 |
| 合計ジャッジ時間 | 1,516 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 1 |
ソースコード
A,B,C = map(int,input().split())
res = []
k = B//A
for n in range(1,k+1):
if n*A-B <= 0 and C == n*A:
res.append(n)
break
for n in range(k+1,pow(10,5)+1):
if n*A-B > 0 and C == n*A-B:
res.append(n)
break
res.sort()
if not res: print(-1)
else:
for r in res:
print(r)
n_na