結果

問題 No.2194 兄弟の掛け引き
ユーザー ああいいああいい
提出日時 2023-01-21 14:15:59
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 86,940 KB
実行使用メモリ 71,424 KB
最終ジャッジ日時 2023-09-06 03:37:27
合計ジャッジ時間 2,850 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 67 ms
71,124 KB
testcase_02 AC 68 ms
71,268 KB
testcase_03 AC 68 ms
71,096 KB
testcase_04 AC 69 ms
71,092 KB
testcase_05 AC 71 ms
71,256 KB
testcase_06 AC 69 ms
70,988 KB
testcase_07 AC 69 ms
71,128 KB
testcase_08 AC 67 ms
71,048 KB
testcase_09 AC 69 ms
71,184 KB
testcase_10 AC 68 ms
71,100 KB
testcase_11 AC 68 ms
71,148 KB
testcase_12 AC 70 ms
71,340 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 68 ms
71,340 KB
testcase_16 AC 70 ms
71,120 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