Exponential Deal
CodeChefOpen on judge ↗
You are G2. Your mathematics teacher has confiscated your phone because he caught you using it during the class. He makes you an offer; he will return your phone if you are able to solve a problem given by him; otherwise not only will he not return your phone, you also would have to sit in detention. He gives you a number. Now he wants you to calculate the exponent of the given number contained in
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