0
I wish that when someone comes in, the input stays on the same line, I tried using the 'split' command, but I could not.
D = int(input())
R = int(input())
L = int(input())
P = int(input())
G = int(input())
autonomia = L * 10
km = (D - autonomia) / 10
gas = km * G
distancia = D // (P + 1)
if D <= autonomia:
print('Pode viajar\nR$: {}'.format(int(R - gas)))
elif D >= distancia and R >= gas:
print('Pode viajar\nR$: {}'.format(int(R - gas)))
elif D >= autonomia or distancia and gas > R:
print('Não pode viajar')
That? https://answall.com/q/427259/101 or https://answall.com/q/346650/101 or https://answall.com/q/149/101 or https://answall.com/q/454645/101 or a 50 that you already have on the website about it. I do not know if it is written that this is not a good idea, but it should. I do not know why to exchange the simple for the complicated.
– Maniero
It’s simple, a question in The Huxley wants it that way.
– Guilherme Araújo