BOJ - 10827 - a^b

Updated:

from decimal import Decimal, getcontext

def solution():
    A, B = input().split(' ')
    getcontext().prec = 1101
    print("{0:f}".format(Decimal(A) ** int(B)))

solution()

https://www.acmicpc.net/problem/10827

Categories:

Updated:

Leave a comment