Advertisement
TimxAG

Untitled

Jan 24th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 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[25000], sg=0, i, j;char c;
  8. char gls[]="aeiouy";
  9. char str[100];
  10. memset(gl,0,500);
  11. while (c=getchar()!="\n")
  12. {
  13. if (c==' ') memset(gl,0,500);
  14. for(j=0; j<6; j++)
  15. {
  16. if(c==gls[j])
  17. gl[c]++;
  18. if (gl[c]>1) { printf("YES"); return 0;}
  19. }
  20. }
  21. printf("NO");
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement