Arturo got caught
CodeChefOpen on judge ↗
While carrying out a very important heist, Arturo got caught by the police while he was trying to escape. Arturo tried to bribe the policemen and policemen agreed to free him only if Arturo gives him $1M$ dollars or solves a question given by the policemen. Arturo doesn't have that much money so he has to solve this question, but as you might know, Arturo is not very smart. So he wants you to help
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