python - 在 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
解决方案
推荐阅读
- css - 边框底部保持一定长度而不是 100%
- php - 将自定义订单状态的特定操作按钮图标添加到 Woocommerce 管理员订单
- vue.js - flickity 将类添加到上一张幻灯片
- javascript - jQuery生成后Rails将参数推送到另一个页面
- laravel-5 - 发送忘记密码邮件时出错
- twitter-bootstrap - 如何使用输入字段作为引导程序 4 下拉菜单的切换
- amazon-web-services - AWS:如何使用解析服务器将弹性 beanstalk 环境连接到 ec2 实例
- regex - Katalon Studio:如何使用正则表达式通过属性识别对象?
- java - Java线程的run方法不取更新状态
- dialogflow-es - 谷歌上的操作:如何在播放歌曲时获取暂停、恢复、下一个、上一个命令的回调