結果

問題 No.2194 兄弟の掛け引き
ユーザー n_na
提出日時 2023-01-21 02:56:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 269 bytes
コンパイル時間 506 ms
コンパイル使用メモリ 81,984 KB
実行使用メモリ 59,500 KB
最終ジャッジ日時 2024-06-23 14:19:58
合計ジャッジ時間 1,824 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C = map(int,input().split())

res = []
k = (B+A-1)//A
for n in range(k,pow(10,5)+1):
    if n*A-B > 0 and C == n*A-B: res.append(n)
    if n*A-B <= 0 and C == n*A: res.append(n)
res.sort()
if not res:
    print(-1)
else:
    for r in res:
        print(r)
        
0