The Theft
CodeChefOpen on judge ↗
Problem description Maaruf, the cobbler is trying to get into Alibaba's house to steal all his treasures. Now, Alibaba has set up a very advanced lock system. Anyone who wants to enter the house is given a positive integer. The person must reply with the number of positive integers which are smaller than the given number and are relatively prime to it. A number is relatively prime to another num
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