結果

問題 No.928 軽減税率?
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-05-16 23:11:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 1,000 ms
コード長 244 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 76,256 KB
最終ジャッジ日時 2023-10-12 17:54:47
合計ジャッジ時間 5,840 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
75,944 KB
testcase_01 AC 86 ms
75,992 KB
testcase_02 AC 81 ms
76,148 KB
testcase_03 AC 85 ms
75,800 KB
testcase_04 AC 90 ms
76,124 KB
testcase_05 AC 90 ms
75,940 KB
testcase_06 AC 89 ms
75,980 KB
testcase_07 AC 90 ms
76,152 KB
testcase_08 AC 89 ms
75,984 KB
testcase_09 AC 89 ms
76,120 KB
testcase_10 AC 89 ms
76,068 KB
testcase_11 AC 89 ms
76,184 KB
testcase_12 AC 88 ms
76,256 KB
testcase_13 AC 88 ms
75,932 KB
testcase_14 AC 87 ms
75,960 KB
testcase_15 AC 88 ms
75,912 KB
testcase_16 AC 89 ms
76,144 KB
testcase_17 AC 82 ms
75,804 KB
testcase_18 AC 79 ms
76,012 KB
testcase_19 AC 80 ms
76,024 KB
testcase_20 AC 80 ms
75,792 KB
testcase_21 AC 81 ms
76,136 KB
testcase_22 AC 77 ms
75,836 KB
testcase_23 AC 79 ms
76,000 KB
testcase_24 AC 81 ms
75,952 KB
testcase_25 AC 81 ms
75,912 KB
testcase_26 AC 81 ms
75,908 KB
testcase_27 AC 80 ms
76,020 KB
testcase_28 AC 79 ms
75,944 KB
testcase_29 AC 79 ms
75,968 KB
testcase_30 AC 82 ms
76,080 KB
testcase_31 AC 80 ms
76,168 KB
testcase_32 AC 76 ms
75,932 KB
testcase_33 AC 80 ms
75,860 KB
testcase_34 AC 82 ms
75,868 KB
testcase_35 AC 80 ms
76,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = 0
def check(x):

    eatin = (100+p)*x//100
    takeout = a + (100+q)*x//100
    return eatin < takeout

for i in range(1,10**6+1):
    ans += check(i)

if check(10**9):
    ans += 10**9-10**6

print(ans)
0