結果

問題 No.2194 兄弟の掛け引き
ユーザー ああいいああいい
提出日時 2023-01-21 14:18:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 1,000 ms
コード長 224 bytes
コンパイル時間 1,059 ms
コンパイル使用メモリ 86,588 KB
実行使用メモリ 71,276 KB
最終ジャッジ日時 2023-09-06 03:39:38
合計ジャッジ時間 3,261 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,260 KB
testcase_01 AC 68 ms
71,276 KB
testcase_02 AC 68 ms
71,120 KB
testcase_03 AC 69 ms
70,960 KB
testcase_04 AC 67 ms
70,984 KB
testcase_05 AC 68 ms
71,132 KB
testcase_06 AC 69 ms
71,108 KB
testcase_07 AC 69 ms
71,004 KB
testcase_08 AC 68 ms
71,004 KB
testcase_09 AC 68 ms
71,164 KB
testcase_10 AC 67 ms
71,208 KB
testcase_11 AC 68 ms
70,972 KB
testcase_12 AC 67 ms
70,968 KB
testcase_13 AC 68 ms
71,016 KB
testcase_14 AC 65 ms
71,112 KB
testcase_15 AC 67 ms
70,960 KB
testcase_16 AC 67 ms
71,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())

ans = set()
if (b + c) % a == 0:
    ans.add((b + c) // a)
if c <= b and c % a == 0:
    ans.add(c // a)
    
if len(ans) == 0:
    print(-1)
else:
    for s in sorted(ans):
        print(s)
0