In my editor this python code works fine. But I'm getting Runtime error, exit code 1. Can anyone help me? Click to see My submitted code
In my editor this python code works fine. But I'm getting Runtime error, exit code 1. Can anyone help me? Click to see My submitted code
# | User | Rating |
---|---|---|
1 | ecnerwala | 3649 |
2 | Benq | 3581 |
3 | orzdevinwang | 3570 |
4 | Geothermal | 3569 |
4 | cnnfls_csy | 3569 |
6 | tourist | 3565 |
7 | maroonrk | 3531 |
8 | Radewoosh | 3521 |
9 | Um_nik | 3482 |
10 | jiangly | 3468 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 163 |
4 | TheScrasse | 159 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 151 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
Name |
---|
Does it work fine in your editor when processing exactly the same input data that fails on codeforces?
Every visible test case i tried and it worked fine.I ran some of my test case too.that's also working fine.But CF do not show all the case. So, I'm not sure what is causing this Runtime error, exit code 1. In my code I'm not finding any reason for Runtime error
Being able to debug your code is a useful skill during contests. Sometimes it pays off to generate a large number of randomized testcases and feed them to your code. That's a reasonably fast way to reproduce a lot of the possible runtime errors and TLEs. Do you need some help with that?
Yeah, i need that help.
Here's a quckly hacked testcase generator Ruby script:
And here's a testcase, which breaks your code: