Opportunity's blog

By Opportunity, history, 8 years ago, In English

http://mirror.codeforces.com/contest/706/submission/21385544 on the test case 2 I get output "1" on my PC and 0 on the CF. I'm on linux gcc v 4.8.4 I compile with "g++ -std=c++11", I tryed all CF compilers. Can anyone help pls.

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

»
8 years ago, # |
  Vote: I like it +6 Vote: I do not like it

Should be d[100001][2] instead of d[2][100001]...

And also in your sm function s2.length()>s1.length() if it passes the first 'if'... so i guess it should be i<s1.length() in your 'for'...(I don't know the problem statement so maybe I'm wrong)