Files
python/TangDou/51NOD/Test.cpp

17 lines
422 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
char mx = '0';
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
for (int i = 0; i < s.size(); i++) {
if (s[i] > mx)
mx = s[i];
}
cout << (mx <= '1') << " " << (mx <= '7') << " " << (mx <= '9') << " " << (mx <= 'F') << endl;
}
return 0;
}