摘要:
http://ac.jobdu.com/problem.php?cid=1040&pid=40题目描述:打印所有不超过n(n bool isDui(int n)
{ int res=n*n; int arrA[11]; int cntA=0; while(res) { arrA[cntA++]=res%10; res/=10; } for(int i=0,j=cntA-1;i<=j;i++,j--) if(arrA[i]!=arrA[j]) return false; return true;
} int main()
{ freopen("F:\\ou... 阅读全文
posted @ 2013-03-05 11:35
cjweffort
阅读(214)
评论(0)
推荐(0)
浙公网安备 33010602011771号