谁能告诉我牛客网的python多行输入到底怎么算对的??
简直奇葩了,刚网易的三道题,用的都是一样的输入语句,其他两道都对,结果有一道就是一直说 我只进行了一次测试用例……………
能不能靠谱点!我之前在牛客做过几道题,都是这样的输入,一点错都没。
try:
while True:
line = sys.stdin.readline().strip()
if line == '':
break
a = list(map(int,(line).split(' ')))
except:
pass
#Python#能不能靠谱点!我之前在牛客做过几道题,都是这样的输入,一点错都没。
try:
while True:
line = sys.stdin.readline().strip()
if line == '':
break
a = list(map(int,(line).split(' ')))
except:
pass