Supercomputers
CodeChefOpen on judge ↗
NASA is building a new super-computer. For this they are designing a new OS. All the processes that are running on the computer at a time are assigned an integer by the OS, which is called ’ factor ’. Each process has its own factor assigned to it. G(k) is a function which gives the factor of process k. The running processes can be represented by the nodes of a tree. If process B is a descendant
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start