結果

問題 No.928 軽減税率?
ユーザー RiburaRibura
提出日時 2020-05-19 00:44:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 435 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-09 21:50:05
合計ジャッジ時間 21,855 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 537 ms
10,752 KB
testcase_01 AC 536 ms
10,624 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 545 ms
10,752 KB
testcase_05 AC 575 ms
10,624 KB
testcase_06 AC 557 ms
10,624 KB
testcase_07 AC 542 ms
10,624 KB
testcase_08 AC 560 ms
10,624 KB
testcase_09 AC 597 ms
10,624 KB
testcase_10 AC 537 ms
10,752 KB
testcase_11 AC 533 ms
10,624 KB
testcase_12 AC 552 ms
10,624 KB
testcase_13 AC 550 ms
10,752 KB
testcase_14 AC 543 ms
10,624 KB
testcase_15 AC 545 ms
10,624 KB
testcase_16 AC 605 ms
10,752 KB
testcase_17 AC 552 ms
10,752 KB
testcase_18 WA -
testcase_19 AC 574 ms
10,624 KB
testcase_20 AC 549 ms
10,752 KB
testcase_21 AC 562 ms
10,624 KB
testcase_22 AC 550 ms
10,752 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 541 ms
10,624 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

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 - 2 * 10 ** 6 if floor((1 + p) * 10 ** 9) < floor((1 + q) * 10 ** 9) + a else 0
for i in range(1, 10 ** 6 + a):
    cnt += 1 if floor((1 + p) * i) < floor((1 + q) * i) + a else 0
print(cnt)
0