← All problemsSign in

The Lazy Teacher

Problem Description There are N students in a class.The lazy teacher randomly gives a number(Lets call this the 'Class Random Number' CRN)to each of the students. To keep them busy for a long time she gives the following work. For each student, 1.Calculate the sum of all the other students' Class Random Number(excluding yours). 2.Once every student is done with step 1, set the sum obtained fr

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start