結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
75,260 KB
testcase_01 AC 77 ms
75,664 KB
testcase_02 AC 78 ms
75,560 KB
testcase_03 AC 78 ms
75,664 KB
testcase_04 AC 77 ms
75,272 KB
testcase_05 AC 77 ms
75,508 KB
testcase_06 AC 79 ms
75,496 KB
testcase_07 AC 78 ms
75,496 KB
testcase_08 AC 76 ms
75,404 KB
testcase_09 AC 76 ms
75,480 KB
testcase_10 AC 78 ms
75,520 KB
testcase_11 AC 77 ms
75,540 KB
testcase_12 AC 77 ms
75,516 KB
testcase_13 AC 79 ms
75,484 KB
testcase_14 WA -
testcase_15 AC 80 ms
75,680 KB
testcase_16 AC 77 ms
75,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = []

for i in range(10001):
    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