Advertisement
momo2345

Haiku

Jul 23rd, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define op ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
  4. bool vl(char c){
  5.    return (c=='a'|| c=='e' || c=='i' || c=='o' || c=='u');
  6. }
  7. int main(){
  8.       op;
  9.       int a=0,b=0,c=0;
  10.       string s,ss,sss;
  11.       getline(cin,s);
  12.       getline(cin,ss);
  13.       getline(cin,sss);
  14.       for(auto u : s){
  15.         if(vl(u)) a++;
  16. }
  17.      for(auto u : ss){
  18.        if(vl(u)) b++;
  19. }
  20.     for(auto u : sss){
  21.        if(vl(u)) c++;
  22. }
  23.       if(a==5 && b==7 && c==5) cout<<"YES"<<"\n";
  24.       else cout<<"NO"<<"\n";
  25.      
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement