Cody

Problem 44349. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.

Solution 2035914

Submitted on 26 Nov 2019 by Joseph Kirk
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
filetext = fileread('time_for_five.m'); assert(isempty(strfind(filetext, 'fopen'))); assert(isempty(strfind(filetext, 'assert')));

2   Pass
y = time_for_five(5); a=clock; if mod(floor(a(6)),5)==0 y_correct= y else y_correct = NaN; end assert(isequal(y,y_correct))

y_correct = 2019 11 26 15 27 20