http://ac.jobdu.com/problem.php?pid=1059
#include<stdio.h>
#include<string.h>int main()
{
char i,j,k;
int a,b;
for(i='1';i<='9';i++){
for(j='1';j<='9';j++){
for(k='0';k<='9';k++){
a=(i-'0')*100+(j-'0')*10+k-'0';
b=(j-'0')*100+(k-'0')*10+k-'0';
if(a+b==532) printf("%c %c %c\n",i,j,k);
}
}
}
system("pause");
return 0;
}