Power - Mod Power
-
Practice>Python>Math>Power - Mod Powerhackerrank.com 2019. 2. 24. 13:52
hackerrank.comPower - Mod PowerProblem link : https://www.hackerrank.com/challenges/python-power-mod-power/problem?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaign&h_r=next-challenge&h_v=zenDifficulty : Easy TipVery simple/easy problemJust do as problem description :) Solution a = int(input()) b = int(input()) m = int(input()) print(pow(a, b)) print(pow(a, b, m))