Author: Not specified Language: python
Description: Not specified Timestamp: 2018-01-19 02:15:41 +0000
View raw paste Reply
def pow(a,n):
    if n == 0:
        return 1
    elif n % 2 == 0:
        return pow(a,n//2) ** 2
    else :
        return pow(a,n//2) ** 2 * a
View raw paste Reply