← All problemsSign in

Mariyam and an Easy Query

Mariyam has been assigned the task to manage team registrations at Just Hash 6.0. She has a list of the number of people from $N$ different colleges who are willing to participate in the competition as an integer array $[A_1,A_2,A_3, ... A_N].$ However, the rules of the competition only allow for teams of $4$ participants (although they can be from different colleges). Mariyam wants to know t

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