結果
| 問題 | No.2194 兄弟の掛け引き |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-14 14:59:13 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 1,000 ms |
| コード長 | 239 bytes |
| 記録 | |
| コンパイル時間 | 571 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,484 KB |
| 最終ジャッジ日時 | 2026-04-26 09:17:22 |
| 合計ジャッジ時間 | 3,907 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
A,B,C = map(int, input().split())
result = []
if (B+C)%A == 0:
result.append((B+C)//A)
if B >= C and C%A == 0:
result.append(C//A)
if len(result) > 0:
outPut = sorted(result)
print(*outPut, sep="\n")
else:
print(-1)