結果

問題 No.928 軽減税率?
ユーザー mkawa2mkawa2
提出日時 2021-04-06 11:47:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 1,003 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 10,964 KB
実行使用メモリ 8,440 KB
最終ジャッジ日時 2023-08-30 23:04:14
合計ジャッジ時間 4,081 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
8,408 KB
testcase_01 AC 95 ms
8,396 KB
testcase_02 AC 16 ms
8,268 KB
testcase_03 AC 16 ms
8,404 KB
testcase_04 AC 95 ms
7,976 KB
testcase_05 AC 100 ms
8,300 KB
testcase_06 AC 100 ms
8,240 KB
testcase_07 AC 96 ms
8,284 KB
testcase_08 AC 95 ms
8,256 KB
testcase_09 AC 101 ms
8,236 KB
testcase_10 AC 97 ms
8,312 KB
testcase_11 AC 94 ms
8,236 KB
testcase_12 AC 102 ms
8,348 KB
testcase_13 AC 98 ms
8,348 KB
testcase_14 AC 101 ms
8,312 KB
testcase_15 AC 104 ms
8,252 KB
testcase_16 AC 98 ms
8,228 KB
testcase_17 AC 104 ms
8,352 KB
testcase_18 AC 104 ms
8,228 KB
testcase_19 AC 103 ms
7,988 KB
testcase_20 AC 105 ms
8,392 KB
testcase_21 AC 104 ms
8,392 KB
testcase_22 AC 16 ms
8,180 KB
testcase_23 AC 15 ms
8,228 KB
testcase_24 AC 16 ms
8,212 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 16 ms
8,372 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**6)
int1 = lambda x: int(x)-1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.buffer.readline())
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def LI1(): return list(map(int1, sys.stdin.buffer.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
def BI(): return sys.stdin.buffer.readline().rstrip()
def SI(): return sys.stdin.buffer.readline().rstrip().decode()
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0)]
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)]
dij = [(0, 1), (1, 0), (1, 1), (1, -1)]
inf = 10**19
# md = 998244353
md = 10**9+7

p,q,a=LI()

if p<q:
    print(10**9)
    exit()

if p==q:
    if a==0:print(0)
    else:print(10**9)
    exit()

l=max(1,100*a//(p-q)-100000)
r=l+200000
ans=l-1

for x in range(l,r):
    s=(100+p)*x//100
    h=(100+q)*x//100+a
    if s<h:ans+=1

print(ans)
0