← All problemsSign in

Count the ACs

CodeChefRating 739Open on judge ↗

There are $10$ problems in a contest. You know that the score of each problem is either $1$ or $100$ points. Chef came to know the total score of a participant and he is wondering how many problems were actually solved by that participant. Given the total score $P$ of the participant, determine the number of problems solved by the participant. Print $-1$ in case the score is invalid. ### Input

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start