백준 - 1264 모음의 개수 - Swift

AekT·2021년 11월 24일
0
post-thumbnail

백준 1264 모음의 개수

문제 : https://www.acmicpc.net/problem/1264

Code :

var input = readLine()!
let arr = ["a","e","i","o","u"]
while input != "#"{print(input.lowercased().filter{arr.contains(String($0))}.count); input = readLine()!}
profile
으악

0개의 댓글