結果

問題 No.2194 兄弟の掛け引き
ユーザー _lS_RRoRbT_lS_RRoRbT
提出日時 2023-01-20 22:07:05
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 831 ms
コンパイル使用メモリ 86,136 KB
実行使用メモリ 71,240 KB
最終ジャッジ日時 2023-09-05 14:24:06
合計ジャッジ時間 2,959 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,240 KB
testcase_01 AC 76 ms
71,084 KB
testcase_02 AC 76 ms
70,908 KB
testcase_03 AC 76 ms
71,120 KB
testcase_04 AC 78 ms
71,160 KB
testcase_05 AC 77 ms
71,000 KB
testcase_06 AC 76 ms
71,240 KB
testcase_07 AC 75 ms
71,164 KB
testcase_08 WA -
testcase_09 AC 76 ms
70,668 KB
testcase_10 AC 76 ms
70,700 KB
testcase_11 AC 75 ms
71,036 KB
testcase_12 WA -
testcase_13 AC 76 ms
70,756 KB
testcase_14 AC 76 ms
71,240 KB
testcase_15 AC 77 ms
70,768 KB
testcase_16 AC 79 ms
71,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = map(int, input().split())
ans = []
if c % a == 0:
    ans.append(c // a)
if (c + b) % a == 0:
    ans.append((b + c) // a)
ans.sort()
if not ans:
    print(-1)
else:
    for e in ans:
        print(e)
0