結果

問題 No.928 軽減税率?
ユーザー rlangevinrlangevin
提出日時 2023-04-15 23:28:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 315 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 82,584 KB
実行使用メモリ 60,160 KB
最終ジャッジ日時 2024-04-19 15:26:54
合計ジャッジ時間 4,501 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
58,496 KB
testcase_01 AC 128 ms
59,648 KB
testcase_02 AC 37 ms
51,712 KB
testcase_03 AC 36 ms
51,584 KB
testcase_04 AC 135 ms
59,392 KB
testcase_05 AC 135 ms
59,392 KB
testcase_06 AC 131 ms
59,648 KB
testcase_07 AC 133 ms
59,648 KB
testcase_08 AC 132 ms
60,160 KB
testcase_09 AC 133 ms
60,160 KB
testcase_10 AC 134 ms
59,904 KB
testcase_11 AC 133 ms
59,904 KB
testcase_12 AC 133 ms
59,648 KB
testcase_13 AC 134 ms
59,648 KB
testcase_14 AC 133 ms
59,520 KB
testcase_15 AC 133 ms
59,392 KB
testcase_16 AC 134 ms
60,160 KB
testcase_17 AC 128 ms
60,160 KB
testcase_18 AC 128 ms
59,520 KB
testcase_19 AC 128 ms
59,648 KB
testcase_20 AC 128 ms
59,648 KB
testcase_21 AC 129 ms
60,032 KB
testcase_22 AC 36 ms
51,456 KB
testcase_23 AC 37 ms
52,096 KB
testcase_24 AC 38 ms
51,840 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 37 ms
51,200 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

P, Q, A = map(int, input().split())
if P < Q:
    print(10 ** 9)
    exit()
elif P == Q:
    if A:
        print(10 ** 9)
    else:
        print(0)
    exit()
    
def f(n, p, a):
    return (100 + p) * n//100 + a
    
ans = 0
for i in range(1, 10 ** 7):
    if f(i, P, 0) < f(i, Q, A):
        ans += 1
print(ans)
0