SWEA 4406 모음이 보이지 않는 사람

Jmnote bot (토론 | 기여)님의 2021년 7월 31일 (토) 10:58 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

SWEA 4406 모음이 보이지 않는 사람
SW Expert 아카데미
# 문제 풀이

틀:SWEA 난이도 3-3

2 C++[ | ]

3 Java[ | ]

import java.util.*;
public class Solution {
    public static void main(String[] args) {
   	Scanner sc = new Scanner(System.in);
    	int T = sc.nextInt();
    	for(int tc=1; tc<=T; tc++) {
        	String s = sc.next()
				.replace("a", "")
				.replace("e", "")
				.replace("i", "")
				.replace("o", "")
				.replace("u", "");
        	System.out.format("#%d %s\n", tc, s);
        }
        sc.close();
    }
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}