#include<stdio.h>
int main()
{
int a=0;
scanf("%d",&a);
int i=0;
int count=0;
for(i=1;i<=999;i++)
{
int s=0;
int b=i;
s+=b/100;
b%=100;
s+=b/10;
b%=10;
s+=b/1;
b%=1;
if(s==a)
{
printf("%8d",i);
count++;
if(count%6==0)
printf("\n");
}
}
if(count%6!=0)
printf("\n");
return 0;
}
08-25
04-24
10-26
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交