文章
71
粉丝
142
获赞
5
访问
52.9k
#include<bits/stdc++.h>
using namespace std;
int main() {
char s[105];
string t = "gzu";
int a[105] = { 0 };
scanf("%s",s);
int m = strlen(s);
int n = t.length();
for (int i = 0; i < m; i++) {
int flag = 0;
for (int j = 0; j < n; j++) {
if (t[j] != s[i + j]) {
flag = 1;
}
}
if (flag == 0) {
for (int k = i; k < i + n; k++) {
a[k] =...
登录后发布评论
暂无评论,来抢沙发