Crazy Teacher
CodeChefOpen on judge ↗
Alice has been recruited as a new Professor at IIT Kanpur. There are a total of n+1 students in her class each having a unique rank in the range 0 to n. Each student gives a choice of having nCr assignments (r is the unique rank of that student), where nCr is the coefficient of the rth term in the expansion of (1+x)n. Alice loves her students so much that she wants her students to learn and do as
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