我收到提示此代碼:運行時錯誤(NZEC)在codechef爲python3
#Finding largest number
elements = []
nl = input("Enter number of lines :")
for i in range(0,int(nl)):
print("Enter number of elements in line", i+1, ": ")
ne = input()
elements = [None]*int(ne)
print("Enter elements :")
maximum = 0
for j in range(0,int(ne)):
elements[j] = input()
for j in range(0,int(ne)):
if int(elements[j]) > maximum:
maximum = int(elements[j])
print("Maximum number in line", i+1, "is", maximum,"\n\n")
我提交了一份關於codechef此代碼給我看運行時錯誤(NZEC)錯誤
請幫助!
請修復您的縮進。 –
其正確。我已經測試了我的電腦中的代碼。 –
嘗試從你的問題複製它,並再次運行它... –