H3X's blog

By H3X, 12 years ago, In English

http://mirror.codeforces.com/contest/136/submission/3133932

It outputs 10 on my pc but judge says it outputs 0, for the 2nd test case.

Any help?

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

»
12 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Try Microsot Visual C++ 2010 compiler.

»
12 years ago, # |
  Vote: I like it +14 Vote: I do not like it

I think the problem is that the variable move1 is not initialized move1 = s.size() - 2 - move1;

»
12 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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