Cody

Problem 44417. 英語の文章内の母音を取り除くコードを書きましょう。

Solution 2801461

Submitted on 6 Aug 2020 by Cassidy Fialkiewicz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
s1 = 'Jack and Jill went up the hill'; s2 = 'Jck nd Jll wnt p th hll'; assert(isequal(s2,refcn(s1)))

e = 'J' s2 = 'J' e = 'a' e = 'c' s2 = 'Jc' e = 'k' s2 = 'Jck' e = ' ' s2 = 'Jck ' e = 'a' e = 'n' s2 = 'Jck n' e = 'd' s2 = 'Jck nd' e = ' ' s2 = 'Jck nd ' e = 'J' s2 = 'Jck nd J' e = 'i' e = 'l' s2 = 'Jck nd Jl' e = 'l' s2 = 'Jck nd Jll' e = ' ' s2 = 'Jck nd Jll ' e = 'w' s2 = 'Jck nd Jll w' e = 'e' e = 'n' s2 = 'Jck nd Jll wn' e = 't' s2 = 'Jck nd Jll wnt' e = ' ' s2 = 'Jck nd Jll wnt ' e = 'u' e = 'p' s2 = 'Jck nd Jll wnt p' e = ' ' s2 = 'Jck nd Jll wnt p ' e = 't' s2 = 'Jck nd Jll wnt p t' e = 'h' s2 = 'Jck nd Jll wnt p th' e = 'e' e = ' ' s2 = 'Jck nd Jll wnt p th ' e = 'h' s2 = 'Jck nd Jll wnt p th h' e = 'i' e = 'l' s2 = 'Jck nd Jll wnt p th hl' e = 'l' s2 = 'Jck nd Jll wnt p th hll'

2   Pass
s1 = 'I don''t want to work. I just want to bang on the drum all day.'; s2 = ' dn''t wnt t wrk. jst wnt t bng n th drm ll dy.'; assert(isequal(s2,refcn(s1)))

e = 'I' e = ' ' s2 = ' ' e = 'd' s2 = ' d' e = 'o' e = 'n' s2 = ' dn' e = ''' s2 = ' dn'' e = 't' s2 = ' dn't' e = ' ' s2 = ' dn't ' e = 'w' s2 = ' dn't w' e = 'a' e = 'n' s2 = ' dn't wn' e = 't' s2 = ' dn't wnt' e = ' ' s2 = ' dn't wnt ' e = 't' s2 = ' dn't wnt t' e = 'o' e = ' ' s2 = ' dn't wnt t ' e = 'w' s2 = ' dn't wnt t w' e = 'o' e = 'r' s2 = ' dn't wnt t wr' e = 'k' s2 = ' dn't wnt t wrk' e = '.' s2 = ' dn't wnt t wrk.' e = ' ' s2 = ' dn't wnt t wrk. ' e = 'I' e = ' ' s2 = ' dn't wnt t wrk. ' e = 'j' s2 = ' dn't wnt t wrk. j' e = 'u' e = 's' s2 = ' dn't wnt t wrk. js' e = 't' s2 = ' dn't wnt t wrk. jst' e = ' ' s2 = ' dn't wnt t wrk. jst ' e = 'w' s2 = ' dn't wnt t wrk. jst w' e = 'a' e = 'n' s2 = ' dn't wnt t wrk. jst wn' e = 't' s2 = ' dn't wnt t wrk. jst wnt' e = ' ' s2 = ' dn't wnt t wrk. jst wnt ' e = 't' s2 = ' dn't wnt t wrk. jst wnt t' e = 'o' e = ' ' s2 = ' dn't wnt t wrk. jst wnt t ' e = 'b' s2 = ' dn't wnt t wrk. jst wnt t b' e = 'a' e = 'n' s2 = ' dn't wnt t wrk. jst wnt t bn' e = 'g' s2 = ' dn't wnt t wrk. jst wnt t bng' e = ' ' s2 = ' dn't wnt t wrk. jst wnt t bng ' e = 'o' e = 'n' s2 = ' dn't wnt t wrk. jst wnt t bng n' e = ' ' s2 = ' dn't wnt t wrk. jst wnt t bng n ' e = 't' s2 = ' dn't wnt t wrk. jst wnt t bng n t' e = 'h' s2 = ' dn't wnt t wrk. jst wnt t bng n th' e = 'e' e = ' ' s2 = ' dn't wnt t wrk. jst wnt t bng n th ' e = 'd' s2 = ' dn't wnt t wrk. jst wnt t bng n th d' e = 'r' s2 = ' dn't wnt t wrk. jst wnt t bng n th dr' e = 'u' e = 'm' s2 = ' dn't wnt t wrk. jst wnt t bng n th drm' e = ' ' s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ' e = 'a' e = 'l' s2 = ' dn't wnt t wrk. jst wnt t bng n th drm l' e = 'l' s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ll' e = ' ' s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ll ' e = 'd' s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ll d' e = 'a' e = 'y' s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ll dy' e = '.' s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ll dy.'