Python map(int, raw_input().split()) problem

Revision en1, by anuj_shah, 2017-06-02 09:11:09

In this question of codechef when I use map(int, raw_input().split()) it generated Runtime Error (NZEC) and when I used [int(x) for x in raw_input().split()] it worked like charm. Could anyone help me with this?

My solution which worked correctly:

Tags codechef snackdown 2017, python, runtime error

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English anuj_shah 2017-06-02 09:17:03 174 Tiny change: '/13945267)\nRuntime ' -> '/13945267) \\\nRuntime ' (published)
en1 English anuj_shah 2017-06-02 09:11:09 367 Initial revision (saved to drafts)