結果

問題 No.2194 兄弟の掛け引き
ユーザー 👑 yumechiyumechi
提出日時 2023-01-22 00:11:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 1,000 ms
コード長 242 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 71,456 KB
最終ジャッジ日時 2023-09-06 11:17:11
合計ジャッジ時間 2,163 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
71,360 KB
testcase_01 AC 59 ms
71,432 KB
testcase_02 AC 59 ms
70,936 KB
testcase_03 AC 59 ms
71,076 KB
testcase_04 AC 59 ms
71,292 KB
testcase_05 AC 59 ms
71,272 KB
testcase_06 AC 59 ms
71,368 KB
testcase_07 AC 58 ms
71,288 KB
testcase_08 AC 59 ms
71,132 KB
testcase_09 AC 59 ms
71,272 KB
testcase_10 AC 59 ms
71,280 KB
testcase_11 AC 64 ms
71,260 KB
testcase_12 AC 64 ms
71,076 KB
testcase_13 AC 63 ms
71,456 KB
testcase_14 AC 62 ms
71,072 KB
testcase_15 AC 63 ms
71,228 KB
testcase_16 AC 63 ms
71,456 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]
print("\n".join([str(i) for i in sorted(ans)]) if len(ans) > 0 else -1)
0