結果

問題 No.928 軽減税率?
ユーザー Ribura
提出日時 2020-05-19 01:02:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 371 ms / 1,000 ms
コード長 367 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-01 22:23:01
合計ジャッジ時間 13,482 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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, v):
    return v if (n * p) // 100 < (n * q) // 100 + a else 0


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