結果

問題 No.2194 兄弟の掛け引き
ユーザー H20
提出日時 2023-01-20 21:30:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 810 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 57,728 KB
最終ジャッジ日時 2024-06-23 09:22:05
合計ジャッジ時間 2,263 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

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