Bonus Project

HOJOBOROLO, a multinational company, has NNN employees numbered from 111 through NNN. Each employee, except for lower-level employees, has at least one subordinate. Lower-level employees have no subordinate. Each employee, except for the head of the company, has exactly one direct supervisor. Employee number 111 is the head of the company and he is in the highest level. There are NNN teams in the company and employee number iii leads the iii-th team. The iii-th team consists of the team leader (employee number iii) and all the direct or indirect subordinates of the team leader.


This is a companion discussion topic for the original entry at https://toph.co/p/bonus-project