Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 405854

Submitted on 18 Feb 2014 by James

Correct

57Size
Leading solution size is 10.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
sin='ejp mysljylc kd kxveddknmc re jsicpdrysi';
str=Tongues(sin);
assert(strcmp(str,'our language is impossible to understand'))

                    
2
Pass
 
%%
sin='rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd';
str=Tongues(sin);
assert(strcmp(str,'there are twenty six factorial possibilities'))

                    
3
Pass
 
%%
sin='de kr kd eoya kw aej tysr re ujdr lkgc jv';
str=Tongues(sin);
assert(strcmp(str,'so it is okay if you want to just give up'))

                    
4
Pass
 
%%
sin='hello i am the google code jam test data';
str=Tongues(sin);
assert(strcmp(str,'xoggk d yl wxo vkkvgo ekso uyl wonw sywy'))

                    
5
Pass
 
%%
sin='how are you';
str=Tongues(sin);
assert(strcmp(str,'xkf yto akj'))

                    
6
Pass
 
%%
sin='aynny iynny aynny iynny aynny iynny aynny iynny aynny iynny aynny iynny aynny iynny aynny ieeeeeeeee';
str=Tongues(sin);
assert(strcmp(str,'yabba dabba yabba dabba yabba dabba yabba dabba yabba dabba yabba dabba yabba dabba yabba dooooooooo'))

                    
7
Pass
 
%%
sin='y n f i c w l b k u o m x s e v z p d r j g a t h a q set k oset xa ynfd';
str=Tongues(sin);
assert(strcmp(str,'a b c d e f g h i j k l m n o p q r s t u v y w x y z now i know my abcs'))

                    
8
Pass
 
%%
sin='schr rkxc tesr aej dksl tkrb xc';
str=Tongues(sin);
assert(strcmp(str,'next time wont you sing with me'))

                    
9
Pass
 
%%
sin='wep rbedc tbe dvcyo ks y resljc ie ser dvcyo re erbcp vcevmc';
str=Tongues(sin);
assert(strcmp(str,'for those who speak in a tongue do not speak to other people'))

                    
10
Pass
 
%%
sin='seneia jsicpdrysid rbcx dksfc rbca ypc dvcyoksl xadrcpkcd ks rbc dvkpkr';
str=Tongues(sin);
assert(strcmp(str,'nobody understands them since they are speaking mysteries in the spirit'))

                    
11
Pass
 
%%
sin='rbkd kd de chfkrksl k bygc re le rbc nyrbpeex';
str=Tongues(sin);
assert(strcmp(str,'this is so exciting i have to go the bathroom'))

                    
12
Pass
 
%%
sin='kr tyd rbc ncdr ew rkxcd kr tyd rbc nmjpdr ew rkxcd';
str=Tongues(sin);
assert(strcmp(str,'it was the best of times it was the blurst of times'))

                    
13
Pass
 
%%
sin='mcr mkvd ie tbyr bysid ie';
str=Tongues(sin);
assert(strcmp(str,'let lips do what hands do'))

                    
14
Pass
 
%%
sin='rbkd bcpc kd ljsveticp yfrkgyrci rtcsra dcgcs fymkncp wjmm yjre se okfonyfo sykmrbpetksl xyabcx';
str=Tongues(sin);
assert(strcmp(str,'this here is gunpowder activated twenty seven caliber full auto no kickback nailthrowing mayhem'))

                    
15
Pass
 
%%
sin='k bygc ncdrci wpjkr dvkoc ysi xees set k dbymm ncdr aej rbc lja';
str=Tongues(sin);
assert(strcmp(str,'i have bested fruit spike and moon now i shall best you the guy'))

                    
16
Pass
 
%%
sin='eb byk kx ks jp fexvjrcp cyrksl aejp fbccqnjplcpd ysi leelmcpcdksl aejp rchrq';
str=Tongues(sin);
assert(strcmp(str,'oh hai im in ur computer eating your cheezburgers and googleresing your textz'))

                    
17
Pass
 
%%
sin='ys cac wep ys cac ysi y vklces wep y vklces';
str=Tongues(sin);
assert(strcmp(str,'an eye for an eye and a pigeon for a pigeon'))

                    
18
Pass
 
%%
sin='ymm aejp nydc ypc ncmesl re cppep rbc dveesa nypi';
str=Tongues(sin);
assert(strcmp(str,'all your base are belong to error the spoony bard'))

                    
19
Pass
 
%%
sin='aej vkddci eww rbc fbkfocs myia';
str=Tongues(sin);
assert(strcmp(str,'you pissed off the chicken lady'))

                    
20
Pass
 
%%
sin='set kd rbc djxxcp ew ejp myfo ew ikdfesrcsr';
str=Tongues(sin);
assert(strcmp(str,'now is the summer of our lack of discontent'))

                    
21
Pass
 
%%
sin='na rbc vpkfoksl ew xa rbjxnd dexcrbksl tkfoci rbkd tya fexcd';
str=Tongues(sin);
assert(strcmp(str,'by the pricking of my thumbs something wicked this way comes'))

                    
22
Pass
 
%%
sin='ks y tepmi ew ikpctemgcd ysi mkesd dexcrkxcd rbc pypcdr fpcyrjpc kd y wpkcsi';
str=Tongues(sin);
assert(strcmp(str,'in a world of direwolves and lions sometimes the rarest creature is a friend'))

                    
23
Pass
 
%%
sin='lpccrksld fbccdc vevdkfmc rbc sjxncp aej bygc ikymci kd fjppcsrma ejr ew vepofbevd';
str=Tongues(sin);
assert(strcmp(str,'greetings cheese popsicle the number you have dialed is currently out of porkchops'))

                    
24
Pass
 
%%
sin='tba ie vpelpyxxcpd ymtyad xkh jv bymmetccs ysi fbpkdrxyd';
str=Tongues(sin);
assert(strcmp(str,'why do programmers always mix up halloween and christmas'))

                    
25
Pass
 
%%
sin='kx fexxysicp dbcvypi ysi rbkd kd xa wygepkrc vpenmcx es rbc leelmc feic uyx';
str=Tongues(sin);
assert(strcmp(str,'im commander shepard and this is my favorite problem on the google code jam'))

                    
26
Pass
 
%%
sin='w ew rte czjymd w ew esc czjymd esc';
str=Tongues(sin);
assert(strcmp(str,'f of two equals f of one equals one'))

                    
27
Pass
 
%%
sin='wep k ncrtccs rbpcc ysi s w ew k czjymd w ew k xksjd esc vmjd w ew k xksjd rte';
str=Tongues(sin);
assert(strcmp(str,'for i between three and n f of i equals f of i minus one plus f of i minus two'))

                    
28
Pass
 
%%
sin='bet ypc aej bemiksl jv ncfyjdc kx y veryre';
str=Tongues(sin);
assert(strcmp(str,'how are you holding up because im a potato'))

                    
29
Pass
 
%%
sin='ip qykjd ip qykjd ip qykjd ip qykjd eeeeeeeeeeeeb ip qykjd';
str=Tongues(sin);
assert(strcmp(str,'dr zaius dr zaius dr zaius dr zaius ooooooooooooh dr zaius'))

                    
30
Pass
 
%%
sin='tbeeeeeeeeeeeeeeeeeeeyyyyyyyyy k oset f vmjd vmjd';
str=Tongues(sin);
assert(strcmp(str,'whoooooooooooooooooooaaaaaaaaa i know c plus plus'))