結果

問題 No.928 軽減税率?
ユーザー hedwig100hedwig100
提出日時 2020-04-09 20:44:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 231 ms / 1,000 ms
コード長 761 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 10,832 KB
実行使用メモリ 8,668 KB
最終ジャッジ日時 2023-10-11 21:29:43
合計ジャッジ時間 4,720 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,588 KB
testcase_01 AC 19 ms
8,644 KB
testcase_02 AC 21 ms
8,532 KB
testcase_03 AC 21 ms
8,504 KB
testcase_04 AC 50 ms
8,516 KB
testcase_05 AC 98 ms
8,668 KB
testcase_06 AC 99 ms
8,520 KB
testcase_07 AC 144 ms
8,588 KB
testcase_08 AC 112 ms
8,568 KB
testcase_09 AC 136 ms
8,572 KB
testcase_10 AC 93 ms
8,588 KB
testcase_11 AC 90 ms
8,532 KB
testcase_12 AC 182 ms
8,532 KB
testcase_13 AC 61 ms
8,476 KB
testcase_14 AC 181 ms
8,544 KB
testcase_15 AC 86 ms
8,476 KB
testcase_16 AC 155 ms
8,484 KB
testcase_17 AC 231 ms
8,568 KB
testcase_18 AC 231 ms
8,636 KB
testcase_19 AC 230 ms
8,472 KB
testcase_20 AC 230 ms
8,644 KB
testcase_21 AC 230 ms
8,480 KB
testcase_22 AC 19 ms
8,524 KB
testcase_23 AC 19 ms
8,472 KB
testcase_24 AC 21 ms
8,536 KB
testcase_25 AC 21 ms
8,584 KB
testcase_26 AC 21 ms
8,612 KB
testcase_27 AC 21 ms
8,656 KB
testcase_28 AC 21 ms
8,536 KB
testcase_29 AC 21 ms
8,504 KB
testcase_30 AC 21 ms
8,532 KB
testcase_31 AC 21 ms
8,540 KB
testcase_32 AC 19 ms
8,608 KB
testcase_33 AC 21 ms
8,480 KB
testcase_34 AC 21 ms
8,480 KB
testcase_35 AC 21 ms
8,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 10 ** 9 + 7
INF = 10 ** 10
import sys
input = sys.stdin.readline
sys.setrecursionlimit(100000000)
dy = (-1,0,1,0)
dx = (0,1,0,-1)
from bisect import bisect_left,bisect_right
from collections import deque

def main():
    p,q,a = map(int,input().split())

    if p == q:
        if a == 0:
            print(0)
            return
        else:
            print(1000000000)
            return
    if p < q:
        ans = 1000000000
        for x in range(1,10001):
            if (x * p)//100 >= (x * q)//100 + a:
                ans -= 1
        print(ans)
        return
    
    ans = 0
    for x in range(1,100 * a + 20):
        if (x * p)//100 < (x * q)//100 + a:
            ans +=1           

    print(ans)

if __name__ =='__main__':
    main()  
0