mahim007's blog

By mahim007, history, 8 years ago, In English

problem:link my submission:link

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

| Write comment?
»
8 years ago, # |
Rev. 2   Vote: I like it +8 Vote: I do not like it

Your code would not work one this input (your code prints 4, the answer is 5):

3
a
bb
ccc

Try to figure out why. This is a shorter counter example than the one in test 23, so you can think about it.

Edit: I changed the test case