結果

問題 No.928 軽減税率?
コンテスト
ユーザー Ribura
提出日時 2020-05-19 00:46:51
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 441 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 554 ms
コンパイル使用メモリ 20,828 KB
実行使用メモリ 15,488 KB
最終ジャッジ日時 2026-04-18 06:05:46
合計ジャッジ時間 17,330 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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