To the Moon
CodeChefOpen on judge ↗
Tappu Sena has got an offer to go to the moon, but wait GOGI is too young to travel in a spaceship so he requires permission from the whole Gokuldham society. Every member of the society votes either in favor or against, **‘1’** means a vote in favor, and **‘0’** means against. You are given a binary string that contains the votes of the whole society, if the votes in favor are strictly greater
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