436. 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 tasks to complete, they require your assistance in finding the solution for pow(X,N).
Input Format
The input consists of two numbers, X (which can be a decimal) and N (an integer), separated by a space.
Output Format
Print the result of X raised to the power of N as 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