結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
75,500 KB
testcase_01 AC 77 ms
75,624 KB
testcase_02 AC 77 ms
75,664 KB
testcase_03 AC 77 ms
75,700 KB
testcase_04 AC 77 ms
75,244 KB
testcase_05 AC 77 ms
75,372 KB
testcase_06 AC 79 ms
75,428 KB
testcase_07 AC 80 ms
75,688 KB
testcase_08 AC 79 ms
75,548 KB
testcase_09 AC 76 ms
75,580 KB
testcase_10 AC 76 ms
75,444 KB
testcase_11 AC 77 ms
75,396 KB
testcase_12 AC 76 ms
75,584 KB
testcase_13 AC 74 ms
75,584 KB
testcase_14 WA -
testcase_15 AC 77 ms
75,608 KB
testcase_16 AC 76 ms
75,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = map(int, input().split())

ans = []

for i in range(1, 20001):
    if i * a > b:
        if i * a - b == c:
            ans.append(i)
    else:
        if i * a == c:
            ans.append(i)

ans.sort()
if not ans:
    print(-1)
else:
    for e in ans:
        print(e)
0