ICC T20 World Cup 2021
CodeChefOpen on judge ↗
Hurray!, As you all know ICC Men's T20 World Cup has started. And there is a match between India and Pakistan in Dubai. There are $N$ people (Numbered $1$ through $N$), initially person $i$ is standing at position $i$ to buy the match ticket. If they have a ticket counter in front of them, then it is denoted as $1$ or $0$ otherwise. The ticket cost is $K$. All are in hurry to buy the ticket so 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.
Sign in to chat with the tutor and save your progress.
Sign in to start