結果
問題 | No.928 軽減税率? |
ユーザー | mkawa2 |
提出日時 | 2021-04-06 11:44:58 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 940 bytes |
コンパイル時間 | 265 ms |
コンパイル使用メモリ | 10,764 KB |
実行使用メモリ | 8,364 KB |
最終ジャッジ日時 | 2023-08-30 23:02:05 |
合計ジャッジ時間 | 3,859 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 96 ms
7,776 KB |
testcase_01 | AC | 100 ms
7,732 KB |
testcase_02 | AC | 16 ms
8,176 KB |
testcase_03 | AC | 15 ms
8,292 KB |
testcase_04 | AC | 102 ms
7,940 KB |
testcase_05 | AC | 97 ms
7,840 KB |
testcase_06 | AC | 101 ms
7,840 KB |
testcase_07 | AC | 98 ms
7,940 KB |
testcase_08 | AC | 101 ms
7,768 KB |
testcase_09 | AC | 101 ms
7,836 KB |
testcase_10 | AC | 94 ms
7,772 KB |
testcase_11 | AC | 95 ms
7,820 KB |
testcase_12 | AC | 103 ms
7,912 KB |
testcase_13 | AC | 104 ms
7,912 KB |
testcase_14 | AC | 98 ms
7,724 KB |
testcase_15 | AC | 105 ms
7,732 KB |
testcase_16 | AC | 98 ms
7,768 KB |
testcase_17 | AC | 108 ms
7,780 KB |
testcase_18 | AC | 104 ms
7,764 KB |
testcase_19 | AC | 103 ms
7,724 KB |
testcase_20 | AC | 101 ms
7,840 KB |
testcase_21 | AC | 105 ms
7,872 KB |
testcase_22 | WA | - |
testcase_23 | AC | 16 ms
8,124 KB |
testcase_24 | AC | 16 ms
8,256 KB |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
ソースコード
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() 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)