#include <stdio.h> #include <math.h> int cf(int a) { int c=1,s=1; for(c=1;c<=a;c++) s=s*10; return s; } int pdhw(int shu) { int c=shu,a=1,b,d; while(shu) { shu=shu/(pow(10,a)); a=a+1; } d=a/2; printf("%d\n",cf(3)); for(b=1;b<=d;b++) { if(c/cf(b-1)%cf(b)!=c/cf(a-b)) return 0; } return 1; } main() { int shu,a=1,b,c; shu=7337; printf("%d",pdhw(shu)); getchar(); }