Cody

Problem 44706. The Deadly Sin

Solution 2660885

Submitted on 6 Jul 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
x = [5 3]; y_correct = 2; assert(isequal(the_deadly_sin(x),y_correct))

Error in solution: Line: 5 Column: 12 Invalid use of operator.

2   Fail
x = [10 10]; y_correct = 20; assert(isequal(the_deadly_sin(x),y_correct))

Error in solution: Line: 5 Column: 12 Invalid use of operator.

3   Fail
x = [4 8]; y_correct = 8; assert(isequal(the_deadly_sin(x),y_correct))

Error in solution: Line: 5 Column: 12 Invalid use of operator.

4   Fail
x = [30 12]; y_correct = 12; assert(isequal(the_deadly_sin(x),y_correct))

Error in solution: Line: 5 Column: 12 Invalid use of operator.

5   Fail
x = [42 91]; y_correct = 14; assert(isequal(the_deadly_sin(x),y_correct))

Error in solution: Line: 5 Column: 12 Invalid use of operator.

6   Fail
x = [700 80]; y_correct = 40; assert(isequal(the_deadly_sin(x),y_correct))

Error in solution: Line: 5 Column: 12 Invalid use of operator.

7   Fail
x = [638 899]; y_correct = 58; assert(isequal(the_deadly_sin(x),y_correct))

Error in solution: Line: 5 Column: 12 Invalid use of operator.

8   Fail
x = [819 949]; y_correct = 26; assert(isequal(the_deadly_sin(x),y_correct)) x = [500 500]; y_correct = 1000; assert(isequal(the_deadly_sin(x),y_correct))

Error in solution: Line: 5 Column: 12 Invalid use of operator.

Suggested Problems

More from this Author2