Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Блог пользователя Opportunity

Автор Opportunity, история, 8 лет назад, По-английски

http://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.

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится

»
8 лет назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

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)