結果

問題 No.928 軽減税率?
ユーザー tanon710tanon710
提出日時 2020-05-04 22:23:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 76,080 KB
最終ジャッジ日時 2023-09-07 07:08:28
合計ジャッジ時間 8,378 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
75,612 KB
testcase_01 AC 151 ms
75,592 KB
testcase_02 AC 125 ms
75,844 KB
testcase_03 AC 124 ms
75,716 KB
testcase_04 AC 156 ms
75,752 KB
testcase_05 AC 156 ms
75,444 KB
testcase_06 AC 158 ms
75,728 KB
testcase_07 AC 157 ms
75,792 KB
testcase_08 AC 159 ms
75,692 KB
testcase_09 AC 157 ms
75,760 KB
testcase_10 AC 154 ms
75,748 KB
testcase_11 AC 157 ms
75,648 KB
testcase_12 AC 160 ms
75,632 KB
testcase_13 AC 140 ms
75,724 KB
testcase_14 AC 155 ms
75,448 KB
testcase_15 AC 156 ms
75,672 KB
testcase_16 AC 159 ms
75,632 KB
testcase_17 AC 157 ms
75,696 KB
testcase_18 AC 158 ms
75,652 KB
testcase_19 AC 156 ms
75,688 KB
testcase_20 AC 156 ms
75,688 KB
testcase_21 AC 155 ms
75,808 KB
testcase_22 WA -
testcase_23 AC 137 ms
75,624 KB
testcase_24 AC 125 ms
75,684 KB
testcase_25 AC 133 ms
75,436 KB
testcase_26 AC 132 ms
75,684 KB
testcase_27 AC 131 ms
75,760 KB
testcase_28 AC 132 ms
75,732 KB
testcase_29 AC 133 ms
75,644 KB
testcase_30 AC 136 ms
75,516 KB
testcase_31 AC 131 ms
75,840 KB
testcase_32 WA -
testcase_33 AC 130 ms
75,800 KB
testcase_34 AC 120 ms
75,620 KB
testcase_35 AC 132 ms
75,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

p,q,a=map(int,input().split())
if p<=q:
    cnt=10**9
    for i in range(1,10**7):
        eatin=i+(i*p)//100
        takeout=i+(i*q)//100+a
        if eatin>=takeout:
            cnt-=1
else:
    cnt=0
    for i in range(1,10**7):
        eatin=i+(i*p)//100
        takeout=i+(i*q)//100+a
        if eatin<takeout:
            cnt+=1
print(cnt)
0