Help me! (timus problem)
Here is a link for the problem.
I found an approach in discussion: "You have to divide the participants into equal teams (rounded)", but I cannot understand why it's correct!
Atcoder ABC #354 Solution Discussion
Interview with orz | IMO Gold Medalist, ICPC World Finalist, IGM in CF