CodePudding user response:
Wow 16 years posted let me end it go beep (the original poster is already ready [wry smile)
#include
Int a [6], [20] b;
Void fenlishuzi (int n) {
Int I=0;
While (n> 0 {
A [+ + I]=n % 10;
N/a=10;
}
A [0]=I;
}
Void erjinzhi (int n) {
Int I=0;
While (n> 0 {
B [+ + I]=n % 2;
N/a=2;
}
B [0]=I;
}
Int panduan (int [c]) {
Int I=1, j=c [0];
While (iIf (c [i++]!=c [-])
return 0;
}
return 1;
}
Int main () {
Int n, j=1;
The scanf (" % d ", & amp; N);
For (int I=2; i<=n; I++) {
Fenlishuzi (I);
If (panduan (a)==0)
continue;
The else {
Erjinzhi (I);
If (panduan (b)==1)
j++;
}
}
Printf (" % d ", j);
return 0;
}
I hope I can help you in 9012 [wry smile
CodePudding user response:
Code is not the second, as long as possible, you write so long up to 50 ~ ~ ~