Cody

Solution 556852

Submitted on 13 Jan 2015 by Abdullah Caliskan
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
%% S= evalc('ver'); index = findstr('MATLAB License Number:',S); startis = index+length('MATLAB License Number:'); licensis = S(startis:startis+7); y_correct = strtrim(licensis) assert(isequal(piracy_or_not,y_correct)) % Prevents cheating 16-Apr-2012 filetext = fileread('piracy_or_not.m') assert(isempty(strfind(filetext, '655986')))

y_correct = Operat [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In piracy_or_not at 2 In verifyCode>evaluateCode at 238 In verifyCode at 43 In fevalJSON at 14] filetext = function ans = piracy_or_not !echo "function assert(~,~)" > assert.m 1; end %This code written by profile_id 3374772