結果

問題 No.928 軽減税率?
ユーザー Ribura
提出日時 2020-05-19 00:59:08
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 515 ms / 1,000 ms
コード長 385 bytes
コンパイル時間 373 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-10-01 22:22:46
合計ジャッジ時間 19,632 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)


def check(n):
    return (n * p) // 100 < (n * q) // 100 + a


p, q, a = map(int, readline().split())
cnt = 10 ** 9 - (10 ** 6 + a) if check(10 ** 9) else 0
for i in range(1, 10 ** 6 + a + 1):
    cnt += 1 if check(i) else 0
print(cnt)
0