样例运行是对的,但是WA不知道为啥啊
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
char c;
string s="";
while(cin>>c)
{
if(c!=',')
{
s+=c;
continue;
}
if(s.size()>=6&&s.size()<=12)
{
int upper=0,lower=0,digit=0,_=0;
for(int i=0;i<s.size();i++)
{
upper=max(upper,isupper(s[i]));
lower=max(lower,islower(s[i]));
digit=max(digit,isdigit(s[i]));
if(s[i]=='!'||s[i]=='@'||s[i]=='#'||s[i]=='$')
{
_=1;
}
if(upper+lower+digit>=2&&_)
{
cout<<s<<"\n";
s="";
continue;
}
}
}
s="";
}
return 0;
}
0元重金奖励