Cody

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

Solution 1289648

Submitted on 16 Oct 2017 by Reggie Wilcox
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))

c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 0.0100 0.0160 0.0170 0.0460 0.0182 y = 0 c = 1.0e+03 * 2.0170 ...

### Community Treasure Hunt

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

Start Hunting!