Proxy
CodeChefOpen on judge ↗
Sheldon Cooper who is the Professor of Physics is taking attendance after his class. The intelligent students in the class aim to mark proxies for as many students as they can. There are n students enrolled in the class. You will be given a Boolean array of size n. If $i^{th}$ value is 1, then $i^{th}$ student is physically present in class; else $i^{th}$ student is absent. Mr. Cooper calls out
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