Блог пользователя skp

Автор skp, история, 8 лет назад, По-английски

I need help on this problem.https://www.spoj.com/problems/RTREE/ Implementation of my approach is given below.I'm not able to figure out why I am getting the wrong answer. Solution Link : https://ideone.com/1yYmQq

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
8 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

You only consider paths that go through the root of a subtree, but not any of those that are in smaller subtrees of a subtree for each node.