URI Online Judge 1046游戏运行时错误[python]

2024-09-29 00:20:16 发布

您现在位置:Python中文网/ 问答频道 /正文

代码:

start = input()
start = int(start)

end = input()
end = int(end)

duration = end - start

if duration <= 0 :
    duration += 24

print("O JOGO DUROU", duration, "HORA(S)")

输出:

Traceback (most recent call last): File "Main.py", line 2, in start = int(start)
<br>ValueError: invalid literal for int() with base 10: '23 5' <br>Command exited with non-zero status (1)

Tags: 代码brmostinputifwithstartint