Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

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

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
  • Проголосовать: не нравится

»
6 лет назад, # |
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.