結果

問題 No.2194 兄弟の掛け引き
ユーザー first_vil
提出日時 2023-02-03 16:55:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 57,728 KB
最終ジャッジ日時 2024-07-02 15:40:36
合計ジャッジ時間 1,791 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 3 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c=map(int,input().split())
ans="-1"
for i in range(1,200010):
    x=i*a
    if x>b:
        x-=b
    if x==c:
        ans=""
        print(i)
print(ans)
0