ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1577. E-mail

Show all messages Hide all messages

WA #5 coders1122 28 Oct 2010 20:09
Can you please provide me test cases where i can fail?

My code is here:
http://www.ideone.com/396m3
Re: WA #5 xay 16 Nov 2010 19:55
see the second sample on your site.

the answer is 2.
Re: WA #5 coders1122 27 Nov 2010 15:06
Any suggestions on improvement of the algorithm i use?
Is my approach wrong or can be fine with some tweaking?

Ravi Kiran.
Re: WA #5 Pavel Kovalenko 2 Dec 2010 12:16
If in your current state s1[i]==s2[j], you should not assume states i+1,j and i,j+1. Only i+1,j+1.
Re: WA #5 coders1122 19 Dec 2010 14:38
Thanks a lot everyone.
I got accepted with the change you suggested.