c++题解
2026-08-25 22:38:35
发布于:河南
1阅读
0回复
0点赞
#include<iostream>
#include<string>
using namespace std;
int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++){
int maxn=0;
string s;
cin>>s;
for(int j=0;j<s.size();j++)
if(maxn<s[j])
maxn=s[j];
if(maxn>'F') cout<<"0 0 0 0\n";
else if(maxn>='A') cout<<"0 0 0 1\n";
else if(maxn>='8') cout<<"0 0 1 1\n";
else if(maxn>='2') cout<<"0 1 1 1\n";
else cout<<"1 1 1 1\n";
}
return 0;
}
这里空空如也




有帮助,赞一个