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


nihscs109030 (Rain)

學校 : 不指定學校
編號 : 124564
來源 : [123.204.127.231]
最後登入時間 :
2023-07-28 17:09:37

您的程式被監控系統中斷,可能是程式無法正常結束所導致。
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
來源 : [39.12.66.21]
最後登入時間 :
2025-04-20 17:19:22

您的程式被監控系統中斷,可能是程式無法正常結束所導致。
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()試試看