結果
問題 | No.2194 兄弟の掛け引き |
ユーザー |
|
提出日時 | 2023-01-22 00:07:58 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 1,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 338 ms |
コンパイル使用メモリ | 81,984 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-06-24 05:52:43 |
合計ジャッジ時間 | 1,675 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
a,b,c = map(int, input().split())ans = []if (b + c) % a == 0:ans.append((b + c) // a)if c % a == 0 and c <= b:ans.append(c // a)ans = [i for i in ans if i > 0]if len(ans) > 0:ans.sort()print("\n".join([str(i) for i in ans]))else:print(-1)