题解
2025-09-19 18:37:49
发布于:广东
37阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
long long n,a,b=0;
char s[100002];
int main()
{
cin>>n;
for(int j=1;j<=n;j++){
cin>>s;
a=strlen(s);
for(int i=0;i<=a-2;i++){
if(s[i]=='A'&&s[i+1]=='P'&&s[i+2]=='T'){
cout<<"YES"<<endl;
b=1;
i=a;
}
}
if(b==0)cout<<"NO"<<endl;
b=0;
}
return 0;
}
这里空空如也







有帮助,赞一个