CE了为什么
#include<bits/stdc++.h>
using namespace std;
int main() {
std::ios::sync_with_stdio(0);
char fusu[114514], noip[114514];
gets(fusu);
gets(noip);
strcat(fusu," ");
strcat(noip," ");
long long i, s, n=0, l, j, xht=0, k, kkksc03;
for (i = 0; fusu[i] != '\0'; i++) {
if (fusu[i] >= 'a')
fusu[i] -= 'a' - 'A';
}
for (i = 0; noip[i] != '\0'; i++) {
if (noip[i] >= 'a')
noip[i] -= 'a' - 'A';
}
for (i = 0; noip[i] != '\0'; i++) {
if (noip[i] == ' ') {
s=1;
for (j = n,k = 0; j <= i, fusu[k] != '\0'; j++, k++) {
if(noip[j] == fusu[k]) {
s*=1;
} else {
s*=0;
}
}
if (s == 1) {
xht++;
}
if (xht == 1 && s==1) {
kkksc03 = n;
}
n=i+1;
}
}
if (xht == 0) {
cout<<-1;
} else{
cout<<xht<<" "<<kkksc03;
}
}