The Attendance
CodeChefOpen on judge ↗
Utkarsh loves to bunk classes. Not his fault, who does not? He somehow manages to attend just enough classes to maintain the 75% attendance criteria. To do this, he keeps track of when he is going to classes and when he is not. Specifically, he represents his going to classes as 1 and not going with 0 and hence, he always has a string of 1’s and 0’s from which he easily calculates if his attendanc
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