結果
| 問題 |
No.2194 兄弟の掛け引き
|
| コンテスト | |
| ユーザー |
n_na
|
| 提出日時 | 2023-01-21 03:19:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 1,000 ms |
| コード長 | 232 bytes |
| コンパイル時間 | 478 ms |
| コンパイル使用メモリ | 81,988 KB |
| 実行使用メモリ | 53,764 KB |
| 最終ジャッジ日時 | 2024-06-23 14:39:48 |
| 合計ジャッジ時間 | 1,514 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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