Python3 代码
s = eval(input())
sr = [0, 400.01, 800.01, 1200.01, 2000.01]
p = [0.15, 0.12, 0.10, 0.07, 0.04]
for i in range (len(sr)):
if i == len(sr) - 1:
incP = p[i]
break
if (s >= sr[i] and s < sr[i+1]):
incP = p[i]
break
inc = s * incP
s += inc
print("Novo salario:", f'{s:.2f}')
print("Reajuste ganho:", f'{inc:.2f}')
print("Em percentual: " + f'{incP * 100:.0f}' + " %")