2026-11-04 13:17:41
发布于:江苏
求高手找哇(WA)
#include<bits/stdc++.h>
using namespace std;
int n,m,f,a,wc;
bool y=0,xy[1000000];
int main(){
cin>>n>>m;
for(int i=1;i<=m;i++){
int x;
string s;
cin>>x>>s;
if(s=="AC"){
if(xy[x]!=1){
xy[x]=1;
a++;
}
if(y==1){
wc=f;
y=0;
}
}else{
f++;
y=1;
}
}
cout<<a<<' '<<wc;
return 0;
}
看上去没错啊!!!




















这里空空如也


















有帮助,赞一个