首页 > 解决方案 > 在 HS08TEST (Python 2.7.13) 上的问题代码上获取运行时错误 NZEC

问题描述

标题基本上说明了一切代码链接:https ://www.codechef.com/problems/HS08TEST

words = input()
x = words.split(' ')
withdraw = float(x[0])
init = float(x[1])

if(withdraw%5==0 and init>withdraw):
    final=init-withdraw-0.5
    print(final)
elif(init<(withdraw+0.5) or withdraw%5!=0):
    print(init)

错误:

Traceback (most recent call last):
  File "prog.py", line 1, in <module>
  File "<string>", line 1
    30 120
         ^
SyntaxError: unexpected EOF while parsing

标签: python

解决方案


推荐阅读