Cody

# Problem 2432. Equation Times (of the day)

Solution 2636053

Submitted on 30 Jun 2020
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
time = '4:22'; y_correct = [1 1100; 1 1; 1 1100; 1 1]; assert(isequal(equation_time(time),y_correct))

time = '2:38' time = 238 dig = 2 3 8

Assertion failed.

2   Pass
time = '2:38'; y_correct = zeros(4,2); assert(isequal(equation_time(time),y_correct))

time = '2:38' time = 238 dig = 2 3 8

3   Fail
time = '5:15'; y_correct = [0 0; 0 0; 1 1111; 1 1001]; assert(isequal(equation_time(time),y_correct))

time = '2:38' time = 238 dig = 2 3 8

Assertion failed.

4   Fail
time = '1:23'; y_correct = [1 11; 1 1000; 0 0; 0 0]; assert(isequal(equation_time(time),y_correct))

time = '2:38' time = 238 dig = 2 3 8

Assertion failed.

5   Pass
time = '1:02'; y_correct = zeros(4,2); assert(isequal(equation_time(time),y_correct))

time = '2:38' time = 238 dig = 2 3 8

6   Fail
time = '1:11'; y_correct = [0 0; 0 0; 1 1111; 1 1111]; assert(isequal(equation_time(time),y_correct))

time = '2:38' time = 238 dig = 2 3 8

Assertion failed.

7   Fail
time = '2:11'; y_correct = [1 1100; 1 1; 0 0; 0 0]; assert(isequal(equation_time(time),y_correct))

time = '2:38' time = 238 dig = 2 3 8

Assertion failed.