結果

問題 No.928 軽減税率?
ユーザー convexineq
提出日時 2021-05-05 06:01:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 363 ms
コンパイル使用メモリ 82,164 KB
実行使用メモリ 53,824 KB
最終ジャッジ日時 2024-09-13 01:18:35
合計ジャッジ時間 2,816 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 24 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

p,q,a = map(int,input().split())
ans = 0
c = p-q
if c < 0:
    print(10**9)
    exit()
elif c==0:
    print(10**9 if a else 0)
    exit()
for i in range(1,101):
    v = (100+p)*i//100
    w = (100+q)*i//100
    # (p-q)x < w+a-v? (for 0 <= x < 10**7)
    w += a-v
    # cx < w?
    ans += min(10**7,(w+c-1)//c)
print(ans)
0