Games Played by DHONI
CodeChefOpen on judge ↗
Dhoni has played an unknown number of games. We know the average score of him (sum of scores in all the games / no. of games). Find the minimum number of games Dhoni should have played to achieve that average. Dhoni can score any non-negative integer score in a game. ###Inputs The first line consists of an integer t, the number of test cases. Each test case consists of a single Rational N
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