Miu and mobile game
CodeChefOpen on judge ↗
Miu is playing an online mobile game. She wants to beat the leaderboard and be the best of all. At the time Miu is playing there are **distinct** scores of $N$ players listed on the leaderboard. Miu have $Q$ attempts left till her battery dies. Since, she is busy playing you have to tell till what rank she climbs the online leaderboard for each of the $Q$ attempts. ###Input: The first
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