← All problemsSign in

Crazy Discount

Abhirup wants to buy yet another PiPhone!! TapApple.Inc has unfortunately kept the price of PiPhones exponentially high of the order $N^M$ . Abhirup goes to a shop and states that he will only buy a PiPhone if and only if he gets a discount of 10%, to make him happy. Tapajyoti, the manager is intelligent and calculates the discount by the following formula:- $N^M$ modulo ($K$% * 100) Fortu

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