Election in Simalokolo
CodeChefOpen on judge ↗
It's election time in the city of Simalokolo! And the current mayor, Mr. Ram , wants to win again! He was a lazy mayor during his term and didn't do much work for his city. So to win again he has to make the citizens happy. And for that he decided to give gifts to every citizen. His city has $N$ citizens (numbered from $1$ to $N$) and each citizen $i$ will be happy if he/she received at least $A_
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