結果

問題 No.928 軽減税率?
ユーザー tanon710tanon710
提出日時 2020-05-04 22:26:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 155 ms / 1,000 ms
コード長 439 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 76,024 KB
最終ジャッジ日時 2023-09-07 07:12:14
合計ジャッジ時間 6,960 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
75,592 KB
testcase_01 AC 149 ms
75,784 KB
testcase_02 AC 124 ms
75,684 KB
testcase_03 AC 121 ms
75,844 KB
testcase_04 AC 153 ms
75,916 KB
testcase_05 AC 155 ms
75,788 KB
testcase_06 AC 151 ms
75,760 KB
testcase_07 AC 152 ms
75,744 KB
testcase_08 AC 152 ms
76,024 KB
testcase_09 AC 155 ms
75,948 KB
testcase_10 AC 151 ms
75,784 KB
testcase_11 AC 152 ms
75,764 KB
testcase_12 AC 155 ms
75,788 KB
testcase_13 AC 138 ms
75,724 KB
testcase_14 AC 154 ms
75,764 KB
testcase_15 AC 154 ms
75,808 KB
testcase_16 AC 153 ms
75,692 KB
testcase_17 AC 153 ms
75,908 KB
testcase_18 AC 150 ms
75,840 KB
testcase_19 AC 153 ms
75,884 KB
testcase_20 AC 151 ms
75,920 KB
testcase_21 AC 151 ms
75,696 KB
testcase_22 AC 73 ms
71,356 KB
testcase_23 AC 136 ms
75,872 KB
testcase_24 AC 122 ms
75,760 KB
testcase_25 AC 129 ms
75,744 KB
testcase_26 AC 130 ms
75,608 KB
testcase_27 AC 131 ms
75,888 KB
testcase_28 AC 129 ms
75,772 KB
testcase_29 AC 128 ms
75,708 KB
testcase_30 AC 130 ms
75,680 KB
testcase_31 AC 130 ms
75,828 KB
testcase_32 AC 74 ms
71,324 KB
testcase_33 AC 131 ms
75,608 KB
testcase_34 AC 119 ms
75,640 KB
testcase_35 AC 129 ms
75,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

p,q,a=map(int,input().split())
if a==0 and p==q:
    cnt=0
else:
    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
    elif p>q:
        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