Cody

Problem 1910. Blockland

Solution 426097

Submitted on 4 Apr 2014
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   Fail
%% % prepares SetSolutionScore urlwrite('https://sites.google.com/a/alfnie.com/alfnie/software/SetSolutionScore.p?attredirects=0&amp;d=1','SetSolutionScore.p'); rehash path; SetSolutionScore(0); x=block_canvas(); assert(numel(x)==1,'Only one block may be entered at a time'); assert(isnumeric(x)&&isfinite(x)&&isreal(x),'inf/nan/complex not allowed'); assert(x>=-10&x<=10,'Only coordinates between -10 and 10 allowed'); h=fopen('canvas_test.p','w'); fwrite(h,hex2dec(reshape('7630312e30307630302e3030000ec01c791a5fb1000005030000061c00000a04f153a24d6ce71e0f392db8a0af99feefe39803c9652ec40e9b2d4156ca33df9de1b550a7c29ad476b76c2c121bad34c8f3996ddc07070898a203fef8b9e5aa85d0a17d12e9812823270aeab493db0b0ece0e3276249e1f5a7f9d3cc13b196b2097b71e4f99e92b1a045ba85e4869b8286a4bd63c4964d1f3431297a8e15ba2cab88eeca228cf07dba62fb9d2515a5d90f2c0c17529bf4661919aebdc34c55dfe97d38366dfc692ace40172ef59366c17ad18e87fbb77aee2ae22b4016f1cb6dfc2b5fef37744e93c7c43a7fb72542bfda9a816ad78dd09c2a336f70540a6479490adf3f454971f500236d3a49d54b6e29782e85579a9d0c1624ec112af1bd858d8e3b99bebe09864a517080fd6617838f973fd7221523c8c8d2ae6a09423546ebcbc9f637533aa24769f740779f77c7eb13835260014c3e16b9360fb5204213e23bec069d30eca3e4c0d3ca43ec44e64c66ea425549b1f2da36930804bd04c4deac4dd37d12fbf38a30d1a6f2da4045b6597213fce8fa6de2fdfa61dac48179ecbeeda1c401814c6d0b368402e17b1e716e31e641ae272f5d1b3edf3269a4665a140dca0bab53def0648563b8c67fb690de69bd0b4d9b168753edad00316e218993836c894c4b7b9d85caac15a00757dd47d99b335c8ab011b4edc23aff521f000a24b18792f10d5e36f927aa08a9c51e4c8c1df46545b1ec5024c0eb0372403f43278a8d669e1d3fca6e2a1805cdb4a548b66ed6f719a89ce7f1b64aec52f4f4423b54ee49fe853d59f2c01387716fded46d3ccc1c620604303c56b1654539a28bb6ab6208676eb8602a95b3e84eff5b0db9893d030ba3912837f6c8a580a6af5a8b1c9d52829b405013c1bad7c15c6acf2039c26c325029cdfc6c185c9d593306eb0a59b0315074dca0947a081d65ecf5d3e40cd4835481be1edd2abce28377d1e0b5318a93af51e549ea65dc02d5a92a43dd41502a50955d5466a7e1a4514529e4073ae674a4e828edbeff61cdbbcd2b22a5831d6e060012e78b5d4a99232f25f4e6a1cc912fff57c6476318c96a5d39767d5d9e3cf186527c05ad31169b9a95462c2a29da04f0cb1afaff0e849ff3d3a30bc675cfd6b5ee549f832985cdd8cebd68e4d2bee61a306d48cf9348323a94321da1ecd38362af6cda34f030da6ab3eb8e23a35ff69705e306b1384c058efc7636298fcab0916c510a456c8293f9499b54f6661b14184b74ef0d7a8032a228312692f6555b7a5bc3909b7ccd7bffd1d7f2d7e0140e2291378a354af9cfe496dc4f0446bcf24f143fda50d91705318bf1a1e83386e19e818535837e4afeabef11cfbb270233f3924342951e0b79c3b7205cd7141c66930ac7f61561dc0e1c8bcc170c6bad5a31b2aaef657810920b774ab9b2d8ea066e5484ffa24296cd9fab9156b8e2d141e41d74487578825010d12f43880376c81e3a493c37501dca7d6c3bb65fb4b804f41e2108e2e3b39c707ac56f48bfb12d4d2ad6cacfd3099dd9e8f575efc7459174c7ba38da83dd832d9d986288bcc845c6f8071dde56c8fd00f63fc5480865276fb5bc03a73bb959288d9ed24c80c0799e6d2f2a536b57dff0f86af278825e1daa336485bf32311975dc0521ec632d15be234f6bf3aad5a144c4b83ed3a8f80d2de6c27daa635510eb26bac251eca47707592a2cf929839eee845b59f95de7e5835e945ecbdb905f47c0eb4004fb9dacb8a49bd3f036ef397ec2bd54a39dc647b1519221e1bb1c5c8f61440719be82f750d12971d64921da9d7dff2999c4ef4528061de2ed8996ddc800cc630c9421d096f2fb01a8e4299976d88b1ab17ca1d57d2655ef057d3aa46143a617866bbf6499ef24da4d36efc072020a2a54212c1194cd537a3a01bac6de07a9dd01efc966edd56967dd07b411bd1d186249551e588c1cf2e5376c1229818ca2aba35043602d097458a84af1b7f11d72dab926fc869b8484568828ab588c38746975e996a9e9c048c663aa832b2abde0f390f5d69e748e870b200ec2f86bf86814389ce77b02b92c7f6e20c3367849c29adfba671a300533bce342d1148a1d51231739c7cb403b40363cc82158f2cdb0c356c84ba18c5e1035f929a82773ec3fd76a232c53db0f7fb214d3f5bc8e960fdaa698f75b127c833aa534ccf16a40ebefa87e98ae868c599a7752c58f922acedd431b73f2c797291dd',2,[])'),'uchar'); fclose(h); rehash; [ok,encoded]=canvas_test(x); assert(ok,'You broke it!!! just kidding, the tower fell down. Please try again'); SetSolutionScore(encoded{1});

Undefined variable "freepass" or class "freepass.please".

Suggested Problems

More from this Author38

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!