Void main ()
{
Long num, smallnum;
Scanf ("% d", & num );
Smallnum = num;
Int start = 1;
Int count = 0;
Do {
Start * = 10;
Count ++;
} While (num % start! = Num );
Printf ("number of books is % d bits \ n", count );
Int I;
Int yes = 1;
If (count % 2 = 0 ){
Yes = 0;
}
Int loopcount = count/2;
Int innercounter = 1;
Int bigsum = 1;
Int smallsum = 1;
For (I = 1; I <= loopcount; I ++ ){
Smallsum = 1;
For (innercounter = 1; innercounter <= I; innercounter ++ ){
Smallsum = smallsum * 10;
}
Bigsum = 1;
For (innercounter = 1; innercounter <= (count-I); innercounter ++ ){
Bigsum = bigsum * 10;
}
Int small = smallnum % (smallnum/10 );
Smallnum = smallnum/= 10;
Int big = num/bigsum;
Num = num % bigsum;
If (big! = Small ){
Yes = 0;
Break;
}
}
If (yes = 1 ){
Printf ("this number is the number of input files .");
} Else {
Printf ("this is not the number of input files .");
}
}
From Zhang renyang's column