tanishq2507's blog

By tanishq2507, history, 13 months ago, In English

https://codeforces.net/gym/104536/problem/F

The answer to this is max(d1,d2,ceil(d1/2)+ceil(d2/2)+1) where d1,d2 are diameters of the two trees.

  • Vote: I like it
  • 0
  • Vote: I do not like it