porol

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
774 B
2
Indexable
Never
#include <bits/stdc++.h>
using namespace std;
int main(){
          string s;
          cin >> s;
          bool flag = true;
          if (s.size() < 12) {
                    flag = false;
          }
          bool isUp = false, isLow = false, isDig = false;
          
          for (int i = 0; i < s.size(); ++i){
              if(isdigit(s[i])) {
                 isDig = true;
              } else if(islower(s[i])){
                 isLow = true;
              } else if(isupper(s[i])){
                 isUp = true;
          }
          if (flag == true && isUp == true && isLow == true && isDig == true  ) {
                    cout << "Yes";
          } else {
                    cout << "No";
          }
          
          return 0;
          }
          
}
Leave a Comment