結果

問題 No.2194 兄弟の掛け引き
ユーザー SidewaysOwlSidewaysOwl
提出日時 2023-01-20 23:27:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 1,446 ms
コンパイル使用メモリ 86,508 KB
実行使用メモリ 71,392 KB
最終ジャッジ日時 2023-09-05 15:55:33
合計ジャッジ時間 2,460 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,320 KB
testcase_01 AC 73 ms
71,204 KB
testcase_02 AC 74 ms
71,024 KB
testcase_03 WA -
testcase_04 AC 73 ms
71,064 KB
testcase_05 AC 74 ms
71,204 KB
testcase_06 AC 76 ms
71,104 KB
testcase_07 WA -
testcase_08 AC 75 ms
71,332 KB
testcase_09 WA -
testcase_10 AC 75 ms
71,392 KB
testcase_11 AC 76 ms
71,196 KB
testcase_12 AC 75 ms
71,172 KB
testcase_13 AC 75 ms
71,348 KB
testcase_14 WA -
testcase_15 AC 74 ms
71,064 KB
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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