829. Cheem's Power
0
Medium
Cheems and Doge are two friends who are trying to solve a mathematical problem. They need to calculate the value of X raised to the power of N, denoted as pow(X,N). Since they have other problems to solve, they require your assistance in finding the solution for pow(X,N).
Input Format
The input consists of two numbers, X and N, separated by a space. X can be a decimal number and N must be an integer.
Output Format
Print the value of X raised to the power of N. Note that the answer should be a double value.
Example
Input
2 4
Output
16
Constraints
-100.00 <= X <= 100.00
-2^31 <= N <= 2^31 - 1
N is an integer value
-2^31 <= N <= 2^31 - 1
N is an integer value
Loading...
View Submissions
Console