Cody

# Problem 2227. Broken numlock key, oppps !

Solution 1967305

Submitted on 8 Oct 2019 by Augusto Mazzei
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
x = '0y n4036c2 2ey 5s br62en!'; y_correct = 'my numlock key is broken!'; assert(isequal(DecodeNumlk(x),y_correct));

x = 'my n4m36c2 2ey 5s br62en!' x = 'my n4m36c2 2ey 5s br62en!' x = 'my n4m36ck key 5s br6ken!' x = 'my n4m36ck key is br6ken!' x = 'my n4m36ck key is br6ken!' x = 'my n4m3ock key is broken!' x = 'my num3ock key is broken!' x = 'my numlock key is broken!' x = 'my numlock key is broken!' x = 'my numlock key is broken!'

2   Pass
x = 'Can y64 *3ease he3* 0e+'; y_correct = 'Can you please help me?'; assert(isequal(DecodeNumlk(x),y_correct));

x = 'Can y64 *3ease he3* me+' x = 'Can y64 *3ease he3* me?' x = 'Can y64 *3ease he3* me?' x = 'Can y64 *3ease he3* me?' x = 'Can y64 p3ease he3p me?' x = 'Can yo4 p3ease he3p me?' x = 'Can you p3ease he3p me?' x = 'Can you please help me?' x = 'Can you please help me?' x = 'Can you please help me?'

3   Pass
x = 'Th5s 5s g65ng t6 be b5g f4n w5th n40ber 2eys 123456789/'; y_correct = 'This is going to be big fun with number keys 1234567890'; assert(isequal(DecodeNumlk(x),y_correct));

x = 'Th5s 5s g65ng t6 be b5g f4n w5th n4mber 2eys 123456789/' x = 'Th5s 5s g65ng t6 be b5g f4n w5th n4mber 2eys 123456789/' x = 'Th5s 5s g65ng t6 be b5g f4n w5th n4mber keys 1k3456789/' x = 'This is g6ing t6 be big f4n with n4mber keys 1k34i6789/' x = 'This is g6ing t6 be big f4n with n4mber keys 1k34i6789/' x = 'This is going to be big f4n with n4mber keys 1k34io789/' x = 'This is going to be big fun with number keys 1k3uio789/' x = 'This is going to be big fun with number keys 1kluio789/' x = 'This is going to be big fun with number keys 1kluio789/' x = 'This is going to be big fun with number keys 1kluio789)' x = 'This is going to be big fun with number keys 1234567890'

4   Pass
x = 'Why these 2eys brea2 and 0a2e a b5g 0ess 6***s -/'; y_correct = 'Why these keys break and make a big mess oppps :)'; assert(isequal(DecodeNumlk(x),y_correct));

x = 'Why these 2eys brea2 and ma2e a b5g mess 6***s -/' x = 'Why these 2eys brea2 and ma2e a b5g mess 6***s -/' x = 'Why these keys break and make a b5g mess 6***s -/' x = 'Why these keys break and make a big mess 6***s -/' x = 'Why these keys break and make a big mess 6ppps -/' x = 'Why these keys break and make a big mess oppps -/' x = 'Why these keys break and make a big mess oppps -/' x = 'Why these keys break and make a big mess oppps -/' x = 'Why these keys break and make a big mess oppps :/' x = 'Why these keys break and make a big mess oppps :)'