結果

問題 No.928 軽減税率?
ユーザー Yamada
提出日時 2019-11-25 20:54:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 273 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-14 14:39:56
合計ジャッジ時間 2,317 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 24 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

P,Q,A=map(int,input().split())
ans = int()
if P == Q and A == 0:
    ans = 0
elif P <= Q:
    ans = 10**9
else:
    x = int(100*A/(P-Q))
    ans = max(0,x-101)
    for i in range(max(1,x-100),x+100):
        if int(i*P/100)-int(i*Q/100) < A:
            ans += 1
print(ans)
0