結果

問題 No.2194 兄弟の掛け引き
ユーザー MottchanMottchan
提出日時 2023-03-24 18:12:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 11,848 KB
実行使用メモリ 14,244 KB
最終ジャッジ日時 2023-10-18 20:32:08
合計ジャッジ時間 2,020 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
10,012 KB
testcase_01 AC 58 ms
10,012 KB
testcase_02 AC 58 ms
10,012 KB
testcase_03 WA -
testcase_04 AC 57 ms
10,012 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 58 ms
10,012 KB
testcase_11 AC 65 ms
10,012 KB
testcase_12 AC 63 ms
10,012 KB
testcase_13 AC 65 ms
10,012 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans=[]

for i in range(1,10**5):
    if i * a - b == c: 
        if i * a - b > 0:
            j = (c + b)/a
            ans.append(int(j))
    elif i * a - b <= 0:
        j = c / a
        ans.append(int(j))


if ans == []:
    print('-1')
else:
    for i in ans:
        print(i)
0