DreamingBoy's blog

By DreamingBoy, history, 8 years ago, In Russian

Hi CodeForces!

You must to find longest common correct substring.

input : 
())(()
((()()
output:
()()

1 <= N <= 500

  • Vote: I like it
  • -11
  • Vote: I do not like it

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

Your sample doesn't correspond the problem. I think that the problem is to find the longest common subsequence.
Anyway, it isn't a good practice to discuss problems until the end of the contest.