http://codeforces.net/contest/136/submission/3133932
It outputs 10 on my pc but judge says it outputs 0, for the 2nd test case.
Any help?
# | User | Rating |
---|---|---|
1 | tourist | 3857 |
2 | jiangly | 3747 |
3 | orzdevinwang | 3706 |
4 | jqdai0815 | 3682 |
5 | ksun48 | 3591 |
6 | gamegame | 3477 |
7 | Benq | 3468 |
8 | Radewoosh | 3463 |
9 | ecnerwala | 3451 |
10 | heuristica | 3431 |
# | User | Contrib. |
---|---|---|
1 | cry | 166 |
2 | -is-this-fft- | 161 |
3 | Qingyu | 160 |
4 | Dominater069 | 159 |
5 | atcoder_official | 157 |
6 | adamant | 155 |
7 | Um_nik | 152 |
8 | djm03178 | 151 |
8 | luogu_official | 151 |
10 | awoo | 148 |
http://codeforces.net/contest/136/submission/3133932
It outputs 10 on my pc but judge says it outputs 0, for the 2nd test case.
Any help?
Name |
---|
Try
Microsot Visual C++ 2010
compiler.I think the problem is that the variable move1 is not initialized
move1 = s.size() - 2 - move1;
I'v a problem like this with my codes.
I think you use old version of the compiler( or not the version that CF works on).
Or maybe you (don't) use -O2 for compiling (becuase it will change sth(e.g. your memory) on your computer while running your code !)
I wish my experience would be useful for you :D