Heights of the Trees

There are many long trees in a forest. You will be given some relevant information about the trees and your task is to guess the heights of the trees. Let me describe the relevant information.You will be given a list of NNN pairs. Each pair consists of an integer number DDD and FFF. Here,

This is a companion discussion topic for the original entry at https://toph.co/p/height-of-the-trees