#include<iostream>
#include<cstdio>
#include<math.h>
using namespace std;
int main()
{
int t;
double x;
cin>>t;
while(t--){
cin>>x;
double a = x*(log10(x));
double b = a-(__int64)a;
int ans=pow (10.0,b);
cout<<ans<<endl;
}
}
notice:
1、__int64前面的下划线英文状态下要两个
2、关于pow中的参数类型一定一致
include\math.h(620): 可能是“long double pow(long double,int)” \include\math.h(618): 或 “long double pow(long double,long double)” \include\math.h(572): 或 “float pow(float,int)” \include\math.h(570): 或 “float pow(float,float)” \include\math.h(534): 或 “double pow(int,int)” \include\math.h(532): 或 “double pow(double,int)” \include\math.h(195): 或 “double pow(double,double)”
3、处理高位的数字log是一个很好用的函数