链接:https://ac.nowcoder.com/acm/problem/14544 来源:牛客网

题目描述 今天是Tabris和mengxiang000来到幼儿园的第6天,美丽的老师在黑板上写了几个数字:121,11,131,聪明的Tabris一眼就看出这些数字是那样的神奇——无论是正着写还是反着写都是一样的,mengxiang000想要得到更多的这样有趣的数,又因为这是二人到幼儿园的第6天,6+2=8。他们想知道长度为8的这样的数都有哪些。但是写着写着机智的Tabris发现这样神奇的数实在太多了,所以向你求助,你能帮帮他们吗?

#include<iostream>
#include<queue>
#include<cstring>
#include<string.h>
#include<algorithm>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
using namespace std;
int main(){
	
	int a,b,c,d;
	int s;
for(int a=1;a<=9;a++){
for(int b=0;b<=9;b++){
for(int c=0;c<=9;c++){
for(int d=0;d<=9;d++){
s=a*10000001+b*1000010+c*100100+d*11000;
cout<<s<<endl;	
}	
}	
}	
}
	
	return 0;
}