fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. class Main{
  5. public static void main(String[] args){
  6. Scanner sc = new Scanner(System.in);
  7. String s = sc.nextLine();
  8. int countV = 0; int countC = 0;
  9. for(char ch : s.toCharArray()){
  10. if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'){
  11. countV++;
  12. }else{
  13. countC++;
  14. }
  15. }
  16. if(countV>countC){
  17. System.out.println("yes");
  18. }else if(countV<countC){
  19. System.out.println("no");
  20. }else{
  21. System.out.println("same");
  22. }
  23. }
  24. }
Success #stdin #stdout 0.13s 54536KB
stdin
app
stdout
no