#include <cstdio>
#include <cstring>
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int t;
double n,a,b;
int main() {
scanf("%d",&t);
while(t--) {
scanf("%lf",&n);
a = n * log10(n);
b = pow(10 , a - floor(a));
printf("%d\n",(int)b);
}
return 0;
}
posted on 2012-10-22 12:06
YouAreInMyHeart 阅读(156)
评论(0) 编辑 收藏 引用