YAIMH1993的笔记
如果奇迹木有出现,就去创造一个
posts - 29,comments - 0,trackbacks - 0
#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 阅读(137) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理