#32255: NA0% 這是什麼錯誤?


nihscs109030 (Rain)

學校 : 不指定學校
編號 : 124564
來源 : [123.204.127.231]
最後登入時間 :
2023-07-28 17:09:37
b266. 矩陣翻轉 -- 2016 APCS 實作題第二題 | From: [112.104.153.27] | 發表日期 : 2022-09-25 14:29

您的程式被監控系統中斷,可能是程式無法正常結束所導致。
Traceback (most recent call last):
  File "/10296521/code_10296521.py", line 3, in 
    action = list(map(int, input().split(" ")))
ValueError: invalid literal for int() with base 10: ''
 
#32256: Re: NA0% 這是什麼錯誤?


cges30901 (cges30901)

學校 : 不指定學校
編號 : 30877
來源 : [101.136.203.77]
最後登入時間 :
2024-04-07 15:34:14
b266. 矩陣翻轉 -- 2016 APCS 實作題第二題 | From: [27.53.224.58] | 發表日期 : 2022-09-25 15:07

您的程式被監控系統中斷,可能是程式無法正常結束所導致。
Traceback (most recent call last):
  File "/10296521/code_10296521.py", line 3, in 
    action = list(map(int, input().split(" ")))
ValueError: invalid literal for int() with base 10: ''


無法把空字串轉換成int

split(" ")改成split()試試看

 
ZeroJudge Forum