this is the contest http://codeforces.net/contest/719 question no 2 can anyone tell me why i m failing 5th test case because i cant see that due to its large input plz help me guys thnxx.... hhttp://codeforces.net/contest/719/submission/20852280
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3831 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | gamegame | 3386 |
10 | ksun48 | 3373 |
# | User | Contrib. |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 160 |
5 | -is-this-fft- | 158 |
6 | awoo | 157 |
7 | adamant | 156 |
8 | TheScrasse | 154 |
8 | nor | 154 |
10 | Dominater069 | 153 |
this is the contest http://codeforces.net/contest/719 question no 2 can anyone tell me why i m failing 5th test case because i cant see that due to its large input plz help me guys thnxx.... hhttp://codeforces.net/contest/719/submission/20852280
Name |
---|
In the problem statement they say that you can swap any two cockroaches not only adjacent ones, this error must appear starting from the 4th test but since your second loop only deal with first n-1 cockroaches it made no errors in that test .