You are viewing a single comment's thread. Return to all comments →
I had pretty much the same code as you but mine didn't work, I think it is because I didn't declare the list properly.
So, my only questions are about line 2. I had only used input().split() and it seemed to work everywhere, except in tests #6, #9 or whatever.
Is it needed to build a list with list(), specify that the values are integers with map()? Also, why the [:i] at the end?
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
I had pretty much the same code as you but mine didn't work, I think it is because I didn't declare the list properly.
So, my only questions are about line 2. I had only used input().split() and it seemed to work everywhere, except in tests #6, #9 or whatever.
Is it needed to build a list with list(), specify that the values are integers with map()? Also, why the [:i] at the end?