发现难题都不会啊。。只能切切简单的了
#include<stdio.h>
#include<math.h>
int main()
{
int n;
while (scanf("%d", &n) != EOF)
{
double d = n * log10(n);
printf("%d\n", (int) pow(10, d - (int) d));
}
return 0;
}
发现难题都不会啊。。只能切切简单的了
#include<stdio.h>
#include<math.h>
int main()
{
int n;
while (scanf("%d", &n) != EOF)
{
double d = n * log10(n);
printf("%d\n", (int) pow(10, d - (int) d));
}
return 0;
}