I'm new to codeforces I was practicing and I decided to solve this problem: Problem 899A I'm getting a runtime error although the algorithm runs smoothly on my pc here is a link to my submission: http://codeforces.com/contest/899/submission/33360057
# | User | Rating |
---|---|---|
1 | tourist | 3690 |
2 | jiangly | 3647 |
3 | Benq | 3581 |
4 | orzdevinwang | 3570 |
5 | Geothermal | 3569 |
5 | cnnfls_csy | 3569 |
7 | Radewoosh | 3509 |
8 | ecnerwala | 3486 |
9 | jqdai0815 | 3474 |
10 | gyh20 | 3447 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 163 |
4 | TheScrasse | 159 |
5 | nor | 157 |
6 | maroonrk | 155 |
7 | -is-this-fft- | 152 |
8 | Petr | 146 |
8 | orz | 146 |
10 | BledDest | 145 |
I'm new to codeforces I was practicing and I decided to solve this problem: Problem 899A I'm getting a runtime error although the algorithm runs smoothly on my pc here is a link to my submission: http://codeforces.com/contest/899/submission/33360057
Name |
---|
The problem specification says: "The first line contains single integer n... The second line contains a sequence of integers...".
Have you actually tried the input
4<ENTER>1 1 2 1
on your pc? I bet you just have tried4 1 1 2 1
.No I modified the code to work on 1 1 2 1 on my pc. is the problem related to reading the input?
Yes, but I see that you already solved it.