samurai123's blog

By samurai123, history, 8 years ago, In English

I was solving LABYR1 spoj problem LINK and the problem reduced to finding diameter of tree. But when I submitted it is constantly giving WA. Any help will be appreciated. LINK OF MY CODE

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

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

Auto comment: topic has been updated by samurai123 (previous revision, new revision, compare).

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

Please help.

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

Try this case:

2
6 5
######
###.#.
#.....
###.##
....##
4 3
####
#..#
####