#include<stdio.h>
int main()
{
int a,n,i;
unsigned long long sum=0;
scanf("%d",&n);
a=2;
for(i=1;i<=n;i++)
{
sum+=a;
a=a*10+a%10;
}
printf("%llu",sum);
return 0;
}
标签:10,a%,int,sum,long,11.25,include From: https://blog.51cto.com/u_15758636/5886384
#include<stdio.h>
int main()
{
int a,n,i;
unsigned long long sum=0;
scanf("%d",&n);
a=2;
for(i=1;i<=n;i++)
{
sum+=a;
a=a*10+a%10;
}
printf("%llu",sum);
return 0;
}
标签:10,a%,int,sum,long,11.25,include From: https://blog.51cto.com/u_15758636/5886384