Advertisement
Guest User

kek

a guest
Jan 24th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <stdlib.h>
  4. #include <string.h>
  5. int main()
  6. {
  7.     int gl[256], j;
  8.     int c;
  9.     char gls[]="aeiouy";
  10.     memset(gl,0,256*sizeof(int));
  11.     while ((c=getc(stdin))!=EOF)
  12.     {
  13.         if (c==' ')
  14.             memset(gl,0,256*sizeof(int));
  15.         if (c=='\n') break;
  16.         for(j=0; j<6; j++)
  17.         {
  18.             if(c==(int)gls[j])
  19.                 gl[c]++;
  20.             if (gl[c]>1) { printf("YES"); return 0;}
  21.         }
  22.     }
  23.     printf("NO");
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement