Power - Mod Power

  • [deleted]
    + 0 comments

    For Python3

    I think this is as simple as it gets

    a = int(input())
    b = int(input())
    m = int(input())
    
    print(pow(a, b))
    print(pow(a, b, m))