Python 我收到了这个错误文件";解决方案.py“;,第3行,in<;模块>;o=int(input())ValueError:以10为基数的int()的文本无效:';31000';
我得到了这个错误值error:int()的无效文本,以10为基数:“3 1000”,虽然我在jupyternotebook中得到了正确的答案,但hackerrank抛出了这个错误Python 我收到了这个错误文件";解决方案.py“;,第3行,in<;模块>;o=int(input())ValueError:以10为基数的int()的文本无效:';31000';,python,Python,我得到了这个错误值error:int()的无效文本,以10为基数:“3 1000”,虽然我在jupyternotebook中得到了正确的答案,但hackerrank抛出了这个错误 那么,您希望3 1000是多少?错误告诉您确切的问题,您的输入是'3 1000'(注意空格),您无法从中生成int enter # Enter your code here. Read input from STDIN. Print output to STDOUT nlst=[] o=int(input()) nl
那么,您希望
3 1000
是多少?错误告诉您确切的问题,您的输入是'3 1000'
(注意空格),您无法从中生成int
enter # Enter your code here. Read input from STDIN. Print output to STDOUT
nlst=[]
o=int(input())
nlst.append(o)
t=nlst[0]
nlst.append[10**t]
b=0
for x in range(nlst[0]):
z=int(input())
lname='list'+str(nlst[0])
for y in range(z):
lname=[]
lname.append(int(input()))
a= sorted(lname)
b=b+a[-1]**2
output=b%max1
print(output)code here`