Cody

Solution 1146615

Submitted on 27 Mar 2017 by H M Dipu Kabir
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 = 'I love MATLAB'; s2_correct = 'V ybir ZNGYNO'; assert(isequal(rot13(s1),s2_correct))

s2 = 'V-y|ƒr-ZNaYNO' s2 = 'V y|ƒr-ZNaYNO' s2 = 'V y|ƒr-ZNaYNO' s2 = 'V ybƒr-ZNaYNO' s2 = 'V ybir-ZNaYNO' s2 = 'V ybir-ZNaYNO' s2 = 'V ybir ZNaYNO' s2 = 'V ybir ZNaYNO' s2 = 'V ybir ZNaYNO' s2 = 'V ybir ZNGYNO' s2 = 'V ybir ZNGYNO' s2 = 'V ybir ZNGYNO' s2 = 'V ybir ZNGYNO'

2   Pass
s1 = 'I <3 MATLAB!!'; s2_correct = 'V <3 ZNGYNO!!'; assert(isequal(rot13(s1),s2_correct))

s2 = 'V-I@-ZNaYNO..' s2 = 'V I@-ZNaYNO..' s2 = 'V <@-ZNaYNO..' s2 = 'V <3-ZNaYNO..' s2 = 'V <3 ZNaYNO..' s2 = 'V <3 ZNaYNO..' s2 = 'V <3 ZNaYNO..' s2 = 'V <3 ZNGYNO..' s2 = 'V <3 ZNGYNO..' s2 = 'V <3 ZNGYNO..' s2 = 'V <3 ZNGYNO..' s2 = 'V <3 ZNGYNO!.' s2 = 'V <3 ZNGYNO!!'

3   Pass
s1 = 'The quick fox stumbled over the confusing instructions.'; s2_correct = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafgehpgvbaf.'; assert(isequal(rot13(s1),s2_correct))

s2 = 'Gur-~‚vpx-s|…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur-~‚vpx-s|…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur-~‚vpx-s|…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur ~‚vpx-s|…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur d‚vpx-s|…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx-s|…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx-s|…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx-s|…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx-s|…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx s|…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx s|…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sb…-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk-€‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk €‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk f‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fg‚zoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq-|ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq |ƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bƒr-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bir-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bir-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire-ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire ur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur-p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur p|{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pb{s‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbas‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbas‚€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbash€v{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfv{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfv{t-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat-v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat v{€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat va€‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vaf‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafg‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafge‚pv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafgehpv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafgehpv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafgehpgv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafgehpgv|{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafgehpgvb{€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafgehpgvba€;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafgehpgvbaf;' s2 = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafgehpgvbaf.'

4   Pass
s1 = 'Snape kills Dumbledore on page 606. Also, there is no Santa.'; s2_correct = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf ab Fnagn.'; assert(isequal(rot13(s1),s2_correct))

s2 = 'F{n}r-xvyy€-Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fan}r-xvyy€-Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fan}r-xvyy€-Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr-xvyy€-Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr-xvyy€-Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyy€-Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyy€-Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyy€-Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyy€-Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyy€-Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf-Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Q‚zoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrq|r-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqbr-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber-|{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber |{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber b{-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba-}ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba }ntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr-C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr C=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 6=C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 60C;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606;-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606.-Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Ny€|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyf|9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb9-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb,-urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, urr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurr-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer-v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer v€-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf-{|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf {|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf a|-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf ab-`n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf ab `n{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf ab Fn{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf ab Fn{n;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf ab Fnan;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf ab Fnagn;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf ab Fnagn;' s2 = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf ab Fnagn.'