Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/279.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 我收到了这个错误文件";解决方案.py“;,第3行,in<;模块>;o=int(input())ValueError:以10为基数的int()的文本无效:';31000';_Python - Fatal编程技术网

Python 我收到了这个错误文件";解决方案.py“;,第3行,in<;模块>;o=int(input())ValueError:以10为基数的int()的文本无效:';31000';

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

我得到了这个错误值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())
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`