冬哥的担忧
Description
看着acm队员不努力,冬哥表示很担忧,于是冬哥跟他们说0.99^365约等于0.0255,每天退步一点点一年后就什么也没了。
现在给出x,n,请你求出xn(0<=x<=1,0<=n<=10100)
Input
输入x,n(0<=x<=1,0<=n<=10^100)
Output
输出x^n(保留2位小数)
Sample Input 1
0.99 365
Sample Output 1
0.03
Hint
输入数据量过大,建议C++选手使用std::ios::sync_with_stdio(false);以提高运行速度
#include<stdio.h>
#include<math.h>
int main(){
double x,n;
while(~scanf("%lf%lf",&x,&n)){
printf("%.2lf\n",pow(x,n));
}
}