#include"pch.h"
#include<iostream>
#include<cstdio>
#include<string>
#include<cstring>
#include<vector>
#include<ctype.h>
#include<algorithm>
using namespace std;
struct ss {
int num;//记录该字符所有的单个蛇形字符串数
int longest;//记录以该字符为首的最长的蛇形字符串
};
int main() {
ss a[26];
for (int i = 0; i <= 25; i++) {
a[i].num = 0;
a[i].longest = 0;
}
vector<char> v1,v2;
char c; int total <
蛇形字符串
最新推荐文章于 2022-08-03 21:40:55 发布