hdu1060

Posted 王坤1993

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hdu1060相关的知识,希望对你有一定的参考价值。

#include<stdio.h>
#include<math.h>
int main()
{
__int64 cas,b,i,d;
double a,m,n,c;
scanf("%I64d",&cas);
for(i=1;i<=cas;i++)
{
scanf("%lf",&n);
a=n*log10(n);
b=(__int64)(a);
c=a-b;
d=(__int64)(pow(10,c));
printf("%I64d\n",d);
}
return 0;
}

以上是关于hdu1060的主要内容,如果未能解决你的问题,请参考以下文章

HDU 1060 [Leftmost Digit]数学

HDU1060

hdu1060

Leftmost Digit(hdu1060)(数学题)

HDU 1060 Leftmost Digit

HDU 1060 Leftmost Digit (数学log)