Republic Day Sweets
CodeChefOpen on judge ↗
On this republic day, the chancellor of $BRIJ$ $University$ decided to distribute sweets to the Students. Only those student who will attend the republic day flag hosting ceremony will get the sweet packet in such a way that $1st$ student will get $1$ sweet packet, $2nd$ student will get $8$ sweet packets $3rd$ student get will $27$ sweet packets and so on. Chancellor is a very busy person, so
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