結果
問題 |
No.2194 兄弟の掛け引き
|
ユーザー |
|
提出日時 | 2023-01-22 00:07:15 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 260 bytes |
コンパイル時間 | 509 ms |
コンパイル使用メモリ | 82,408 KB |
実行使用メモリ | 53,168 KB |
最終ジャッジ日時 | 2024-06-24 05:52:06 |
合計ジャッジ時間 | 1,592 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 4 |
ソースコード
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)