結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 827 ms
7,764 KB
testcase_01 AC 820 ms
7,804 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 820 ms
7,944 KB
testcase_05 AC 858 ms
7,836 KB
testcase_06 AC 844 ms
7,836 KB
testcase_07 AC 793 ms
7,732 KB
testcase_08 AC 796 ms
7,784 KB
testcase_09 AC 808 ms
7,724 KB
testcase_10 AC 808 ms
7,916 KB
testcase_11 AC 844 ms
7,828 KB
testcase_12 AC 807 ms
7,888 KB
testcase_13 AC 807 ms
7,908 KB
testcase_14 AC 795 ms
7,860 KB
testcase_15 AC 805 ms
7,832 KB
testcase_16 AC 821 ms
7,720 KB
testcase_17 AC 862 ms
7,768 KB
testcase_18 AC 911 ms
7,816 KB
testcase_19 AC 920 ms
7,800 KB
testcase_20 AC 842 ms
7,876 KB
testcase_21 AC 877 ms
7,920 KB
testcase_22 RE -
testcase_23 RE -
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 RE -
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()

l=max(1,100*a//(p-q)-1000000)
r=l+2000000
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