Cody

Solution 1001712

Submitted on 8 Oct 2016
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
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 = 0 Opera ---------------------------------------------------------------------------------------------------- MATLAB Version: 9.1.0.441655 (R2016b) MATLAB License Number: 0 Operating System: Linux 4.4.19-040419-generic #201608201335 SMP Sat Aug 20 17:37:29 UTC 2016 x86_64 Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode ---------------------------------------------------------------------------------------------------- MATLAB Version 9.1 (R2016b) license_number = 0

Assertion failed.