結果

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

ソースコード

diff #

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

from math import floor

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