Cody

Problem 207. hackathon impossible

Solution 87424

Submitted on 10 May 2012 by Binbin Qi
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
%% rand(1,12345); assert(isequal(randi(10000),hackathon3))

{Warning: Function /users/msssystem3/isequal.m has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.} {> In hackathon3 at 6 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14} y = 1

2   Pass
%% assert(isequal(randi(10000),hackathon3))

{Warning: Function /users/msssystem3/isequal.m has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.} {> In hackathon3 at 6 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14} y = 1

3   Pass
%% assert(isequal(randi(10000),hackathon3))

{Warning: Function /users/msssystem3/isequal.m has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.} {> In hackathon3 at 6 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14} y = 1

4   Pass
%% assert(isequal(randi(10000),hackathon3))

{Warning: Function /users/msssystem3/isequal.m has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.} {> In hackathon3 at 6 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14} y = 1

Community Treasure Hunt

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

Start Hunting!