anuj_shah's blog

By anuj_shah, history, 8 years ago, In English

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: Code Runtime Error: Code

  • Vote: I like it
  • +15
  • Vote: I do not like it

| Write comment?
»
8 years ago, # |
  Vote: I like it +10 Vote: I do not like it

That's really strange. I was able to submit your map version without any problems (https://www.codechef.com/viewsolution/13980423). Maybe you should contact the Codechef team. Maybe they store the error log and can help.

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +15 Vote: I do not like it

    Yes, you are right. They might have solved the bug. Now my solution also got AC.