Power - Mod Power

  • + 0 comments

    import math a = int(input()) b= int(input()) m = int(input()) d = math.pow(a,b) print(math.floor(d)) mod = d % m print(math.floor(mod))