結果

問題 No.2194 兄弟の掛け引き
ユーザー 👑 yumechiyumechi
提出日時 2023-01-22 00:07:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 260 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 86,624 KB
実行使用メモリ 71,496 KB
最終ジャッジ日時 2023-09-06 11:14:40
合計ジャッジ時間 2,813 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,376 KB
testcase_01 AC 72 ms
71,476 KB
testcase_02 AC 71 ms
71,492 KB
testcase_03 AC 75 ms
70,964 KB
testcase_04 WA -
testcase_05 AC 75 ms
71,480 KB
testcase_06 AC 73 ms
71,392 KB
testcase_07 WA -
testcase_08 AC 73 ms
71,316 KB
testcase_09 AC 71 ms
71,176 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 72 ms
71,412 KB
testcase_13 AC 70 ms
71,496 KB
testcase_14 AC 73 ms
71,380 KB
testcase_15 AC 75 ms
71,088 KB
testcase_16 AC 73 ms
71,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0