An efficient solution will be to run a binary search on output. We will run binary search on how many topics each student will get and get the optimized result.

There may be other valid solutions to this problem.

Statistics

61% Solution Ratio
nahid08Earliest, Sep '20
Kuddus.6068Fastest, 0.1s
sakib_muhitLightest, 393 kB
tahsin_protikShortest, 501B
Toph uses cookies. By continuing you agree to our Cookie Policy.