結果

問題 No.2194 兄弟の掛け引き
ユーザー 👑 H20H20
提出日時 2023-01-20 21:31:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 1,000 ms
コード長 200 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 87,032 KB
実行使用メモリ 75,904 KB
最終ジャッジ日時 2023-09-05 13:42:05
合計ジャッジ時間 2,561 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
75,840 KB
testcase_01 AC 82 ms
75,664 KB
testcase_02 AC 81 ms
75,768 KB
testcase_03 AC 83 ms
75,648 KB
testcase_04 AC 81 ms
75,616 KB
testcase_05 AC 82 ms
75,884 KB
testcase_06 AC 82 ms
75,692 KB
testcase_07 AC 80 ms
75,868 KB
testcase_08 AC 81 ms
75,904 KB
testcase_09 AC 84 ms
75,684 KB
testcase_10 AC 81 ms
75,764 KB
testcase_11 AC 82 ms
75,696 KB
testcase_12 AC 79 ms
75,836 KB
testcase_13 AC 79 ms
75,836 KB
testcase_14 AC 85 ms
75,792 KB
testcase_15 AC 79 ms
75,876 KB
testcase_16 AC 79 ms
75,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C = map(int, input().split())
ANS = []
for i in range(10**6):
    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