Cody

Solution 570750

Submitted on 31 Jan 2015
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Fail
lines=textread('nomination.m','%s'); id_own=str2num(regexp(lines{end},'\d+','match','once')); x=uint64(nomination()); if x == uint64(id_own) assignin('caller','score',-1); error('Funny! You tried to nominate yourself!') end assignin('caller','score',x); problem=2907; html=urlread(sprintf('http://www.mathworks.com/matlabcentral/cody/problems/%d/solutions?term=size:%d',problem,id_own)); n=numel(regexpi(html,'solution \d+')); if n < 1 error('Sorry. You are nominated by none.'); end

Error: Sorry. You are nominated by none.