点石嘉业北京网站建设公司,建设网站远达,电子商务公司取什么名字好,建设品牌网站题意#xff1a;输出第n#xff08;1 n 10^100000#xff09;大的偶数长度的回文数。#xff08;最小的为11#xff09; 因为长度是偶数#xff0c;所以前后两半之间是相互对称的#xff0c;又因为一个数字的大小主要取决于较高位数的大小#xff0c;所以数字…题意输出第n1 n 10^100000大的偶数长度的回文数。最小的为11 因为长度是偶数所以前后两半之间是相互对称的又因为一个数字的大小主要取决于较高位数的大小所以数字的前一半决定数的大小从1开始123……对称即可得112233…… 所以将数正着输出后再倒着输出一遍即可数非常大需用字符串存 #includecstdio
#includecstring
#includecctype
#includecstdlib
#includecmath
#includeiostream
#includesstream
#includeiterator
#includealgorithm
#includestring
#includevector
#includeset
#includemap
#includedeque
#includequeue
#includestack
#includelist
typedef long long ll;
typedef unsigned long long llu;
const int MAXN 100 10;
const int MAXT 1000000 10;
const int INF 0x7f7f7f7f;
const double pi acos(-1.0);
const double EPS 1e-6;
using namespace std; string s; int main(){ cin s; cout s; reverse(s.begin(), s.end()); cout s endl; return 0;
} 转载于:https://www.cnblogs.com/tyty-TianTengtt/p/5996042.html