結果

問題 No.2194 兄弟の掛け引き
ユーザー _lS_RRoRbT_lS_RRoRbT
提出日時 2023-01-20 22:20:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 282 bytes
コンパイル時間 1,031 ms
コンパイル使用メモリ 87,220 KB
実行使用メモリ 76,140 KB
最終ジャッジ日時 2023-09-05 14:39:02
合計ジャッジ時間 3,344 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
75,356 KB
testcase_01 AC 78 ms
75,448 KB
testcase_02 AC 78 ms
75,284 KB
testcase_03 AC 79 ms
75,440 KB
testcase_04 AC 79 ms
75,720 KB
testcase_05 AC 79 ms
75,436 KB
testcase_06 AC 80 ms
75,740 KB
testcase_07 AC 77 ms
75,616 KB
testcase_08 AC 78 ms
75,352 KB
testcase_09 AC 80 ms
75,580 KB
testcase_10 AC 79 ms
75,668 KB
testcase_11 AC 79 ms
75,740 KB
testcase_12 AC 79 ms
75,480 KB
testcase_13 AC 79 ms
75,584 KB
testcase_14 WA -
testcase_15 AC 80 ms
75,584 KB
testcase_16 AC 79 ms
75,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = []

for i in range(1, 100001):
    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