HDU1282 迴文數猜想[入門+]

using namespace std; #include <iostream> bool isPalindrome(int n,int &t){ int temp1=n; t=0; while(n>0){ t=t*10+n%10; n/=10; } return temp1==t; } int main(){ int a,v[100],count,temp,i;
相關文章
相關標籤/搜索