# 今夜的各种错误成果，开心的想报警，666

```int j = p - 1, k = 0;
while (k < j&&a[j--]==a[k++]) ;
if (k == j) t++;

int j = p , k = -1;
while (k < j&&a[--j]==a[++k]) ;
if (k == j) t++;

int j = p , k = -1;
while (k < j&&a[--j]==a[++k]) ;
if (k >= j) t++;

int j = p -1, k = 0;
while (k < j){
if(a[k++]!=a[j--])break;
}
if (k >= j) t++;```

```#include <iostream>
#include <string.h>
using namespace std;

bool check(int x) {
int a[20],t = 0;
for (int i = 2; i <= 10; i++) {
int q = x, p = 0;
memset(a, 0, sizeof(int) * 20);
while (q) {
a[p++] = q % i;
q /= i;
}
int j = p - 1, k = 0;
while (k < j) {
if (a[j] != a[k]) break;
j--; k++;
}
if (k >= j)t++;
if (t == 2)return 1;
}
return 0;
}

int main() {
int N, S, count = 0;
cin >> N >> S;
for (int i = S + 1; count < N; i++) {
if (check(i)) {
count++;
cout << i << endl;
}
}
return 0;
}```

## 暑假集训7.11 字符串回文暴力

#include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef unsigned long long ull; #define MM(a,b) memset(a,b,sizeof(a)); const double eps = 1e-10; const int i

## 习题-四季-回文数-不死神兔

1-键盘录入月份,输出对应的季节.一年有四季;3,4,5春季;6,7,8夏季;9,10,11秋季;12,1,2冬季 public class Demo02Test {     public static void main(String[] args) {         // 键盘录入一个月份,用Scanner实现         Scanner sc = new Scanner(System.in);         // 接收数据         System.out.println("请