Cody

Solution 1417767

Submitted on 16 Jan 2018 by baruch braude
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
LynLyn='You are @#$#@*& very kind'; [Lyy Lnn]=LyyLnn(LynLyn); Ly='Youareverykind'; Ln=' @#$#@*& '; assert(isequal(Ly,Lyy)&isequal(Ln,Lnn))

x = 89 111 117 32 97 114 101 32 64 35 36 35 64 42 38 32 118 101 114 121 32 107 105 110 100 n = 25 Lyy = [] Lnn = [] Lyy = 89 Lyy = 89 111 Lyy = 89 111 117 Lnn = 32 Lyy = 89 111 117 97 Lyy = 89 111 117 97 114 Lyy = 89 111 117 97 114 101 Lnn = 32 32 Lnn = 32 32 64 Lnn = 32 32 64 35 Lnn = 32 32 64 35 36 Lnn = 32 32 64 35 36 35 Lnn = 32 32 64 35 36 35 64 Lnn = 32 32 64 35 36 35 64 42 Lnn = 32 32 64 35 36 35 64 42 38 Lnn = 32 32 64 35 36 35 64 42 38 32 Lyy = 89 111 117 97 114 101 118 Lyy = 89 111 117 97 114 101 118 101 Lyy = 89 111 117 97 114 101 118 101 114 Lyy = 89 111 117 97 114 101 118 101 114 121 Lnn = 32 32 64 35 36 35 64 42 38 32 32 Lyy = 89 111 117 97 114 101 118 101 114 121 107 Lyy = 89 111 117 97 114 101 118 101 114 121 107 105 Lyy = 89 111 117 97 114 101 118 101 114 121 107 105 110 Lyy = 89 111 117 97 114 101 118 101 114 121 107 105 110 100 Lyy = 'Youareverykind' Lnn = ' @#$#@*& '

2   Pass
LynLyn='Please write me soon'; [Lyy Lnn]=LyyLnn(LynLyn); Ly='Pleasewritemesoon'; Ln=' '; assert(isequal(Ly,Lyy)&isequal(Ln,Lnn))

x = 80 108 101 97 115 101 32 119 114 105 116 101 32 109 101 32 115 111 111 110 n = 20 Lyy = [] Lnn = [] Lyy = 80 Lyy = 80 108 Lyy = 80 108 101 Lyy = 80 108 101 97 Lyy = 80 108 101 97 115 Lyy = 80 108 101 97 115 101 Lnn = 32 Lyy = 80 108 101 97 115 101 119 Lyy = 80 108 101 97 115 101 119 114 Lyy = 80 108 101 97 115 101 119 114 105 Lyy = 80 108 101 97 115 101 119 114 105 116 Lyy = 80 108 101 97 115 101 119 114 105 116 101 Lnn = 32 32 Lyy = 80 108 101 97 115 101 119 114 105 116 101 109 Lyy = 80 108 101 97 115 101 119 114 105 116 101 109 101 Lnn = 32 32 32 Lyy = 80 108 101 97 115 101 119 114 105 116 101 109 101 115 Lyy = 80 108 101 97 115 101 119 114 105 116 101 109 101 115 111 Lyy = 80 108 101 97 115 101 119 114 105 116 101 109 101 115 111 111 Lyy = 80 108 101 97 115 101 119 114 105 116 101 109 101 115 111 111 110 Lyy = 'Pleasewritemesoon' Lnn = ' '

3   Pass
LynLyn='12+12=23 wrong'; [Lyy Lnn]=LyyLnn(LynLyn); Ly='wrong'; Ln='12+12=23 '; assert(isequal(Ly,Lyy)&isequal(Ln,Lnn))

x = 49 50 43 49 50 61 50 51 32 119 114 111 110 103 n = 14 Lyy = [] Lnn = [] Lnn = 49 Lnn = 49 50 Lnn = 49 50 43 Lnn = 49 50 43 49 Lnn = 49 50 43 49 50 Lnn = 49 50 43 49 50 61 Lnn = 49 50 43 49 50 61 50 Lnn = 49 50 43 49 50 61 50 51 Lnn = 49 50 43 49 50 61 50 51 32 Lyy = 119 Lyy = 119 114 Lyy = 119 114 111 Lyy = 119 114 111 110 Lyy = 119 114 111 110 103 Lyy = 'wrong' Lnn = '12+12=23 '