#include<iostream>
#include<cstring>
#include<cmath>
#define pi 3.14159265
using namespace std;
int main()
{
 char format[10]={0};
 int t;
 cin>>t;
 while(t--)
 {
  long long n,x;
  scanf("%lld%lld",&n,&x);//求n的Pi次方,并且输出小数点后x位 
  sprintf(format,"%%.%dlf",x);
  double ans;
  ans=1.0*pow(n,pi);
  printf(format,ans);
  cout<<endl;
 }
 return 0;
 }

  

相关文章:

  • 2022-12-23
  • 2021-06-20
  • 2022-01-19
  • 2022-12-23
  • 2021-06-17
  • 2022-03-08
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案