标签:open i++ scanf printf lag string clu print size
#include <stdio.h>
#include <string.h>
int main()
{
int n;
scanf("%d",&n);
if(n==0)
printf("1");
int sun[100];
memset(sun,0,sizeof(sun));
sun[99]=1;
while(n--)
{
for(int i=0; i<100; i++)
{
sun[i]*=2;
if(sun[i]>=10)
{
sun[i]=sun[i]%10;
sun[i-1]++;
}
}
}
int flag=0;
for(int i=0; i<100; i++)
{
if(sun[i]!=0)
flag=1;
if(flag==1)
printf("%d",sun[i]);
}
return 0;
}
标签:open i++ scanf printf lag string clu print size
原文地址:http://www.cnblogs.com/0526yao/p/6639380.html