結果
| 問題 | No.2194 兄弟の掛け引き |
| コンテスト | |
| ユーザー |
n_na
|
| 提出日時 | 2023-01-21 03:19:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 1,000 ms |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 85,600 KB |
| 実行使用メモリ | 53,700 KB |
| 最終ジャッジ日時 | 2026-03-08 10:30:36 |
| 合計ジャッジ時間 | 1,132 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
A,B,C = map(int,input().split())
res = []
if (B+C)%A == 0 and (B+C)//A > B/A:
res.append((B+C)//A)
if C%A == 0 and C//A <= B/A:
res.append(C//A)
res.sort()
if not res: print(-1)
else:
for r in res:
print(r)
n_na