与python的uHunt运行时错误

时间:2016-08-23 14:25:40

标签: python runtime-error onlinejudge

https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=9

您好 我在自己的PC上尝试了这个代码,但是当我在uHunt网站上提交此代码时,它会出现运行时错误。 那么问题是什么?我用python 3.5编写程序。 这是我的代码:

import sys
n = int(next(sys.stdin))
for i in range(n):
  x=next(sys.stdin)
  a=int(x[0:2])
  b=int(x[3:5])
if a==b:
  print("=")

elif a>b:
  print(">")

else:
print("<")

提前感谢您的任何反馈。

0 个答案:

没有答案