結果

問題 No.2194 兄弟の掛け引き
ユーザー 👑 H20H20
提出日時 2023-01-20 21:30:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 75,788 KB
最終ジャッジ日時 2023-09-05 13:40:33
合計ジャッジ時間 2,531 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
75,788 KB
testcase_01 AC 74 ms
75,516 KB
testcase_02 AC 76 ms
75,552 KB
testcase_03 AC 76 ms
75,676 KB
testcase_04 AC 75 ms
75,552 KB
testcase_05 AC 73 ms
75,680 KB
testcase_06 AC 76 ms
75,696 KB
testcase_07 AC 76 ms
75,688 KB
testcase_08 AC 77 ms
75,652 KB
testcase_09 AC 75 ms
75,680 KB
testcase_10 AC 73 ms
75,624 KB
testcase_11 AC 74 ms
75,620 KB
testcase_12 AC 74 ms
75,624 KB
testcase_13 AC 75 ms
75,636 KB
testcase_14 WA -
testcase_15 AC 76 ms
75,604 KB
testcase_16 AC 77 ms
75,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C = map(int, input().split())
ANS = []
for i in range(1,10**5+1):
    if i*A-B==C or (i*A<=B and i*A==C):
        ANS.append(i)
if len(ANS):
    for ans in ANS:
        print(ans)
else:
    print(-1)
0