杭電acm1282 迴文數

#include <iostream> using namespace std; // 函數功能:判斷參數n是否爲迴文數 // 參數n:須要判斷是否爲迴文數的數 // 參數t:返回值,n的逆序數 bool isPalindrome(int n, int &t) { int temp1 = n; t = 0; while(n > 0) {
相關文章
相關標籤/搜索