Cody

Problem 45773. Mo money, mo math #2! (★★★)

Solution 2491127

Submitted on 7 Jun 2020 by bainhome
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
a = [ 1 0 0 0; 0 0 0 24]; b = 1; assert(isequal(your_fcn_name(a),b))

2   Pass
a = [ 1 22 1 15; 12 3 13 7; 10 8 23 99]; b = 3; assert(isequal(your_fcn_name(a),b))

3   Pass
a = [ 2 1 1 1; 1 2 1 1; 1 1 2 1; 1 1 1 2; 4 0 0 0]; c = 5; assert(isequal(your_fcn_name(a),c))

Suggested Problems

More from this Author46

Community Treasure Hunt

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

Start Hunting!