Cody

# Problem 44267. Brain Teaser Solver

Solution 1997484

Submitted on 31 Oct 2019
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
A = 4; B = 3; C = 2; correct_ans = 7; assert(isequal(BT_Solver(A,B,C),correct_ans))

Unrecognized function or variable 'center_area'. Error in BT_Solver (line 6) center_area=[center_area center]; Error in Test1 (line 5) assert(isequal(BT_Solver(A,B,C),correct_ans))

2   Fail
A = 4; B = 3; C = 5; correct_ans = 8; assert(isequal(BT_Solver(A,B,C),correct_ans))

Unrecognized function or variable 'center_area'. Error in BT_Solver (line 6) center_area=[center_area center]; Error in Test2 (line 5) assert(isequal(BT_Solver(A,B,C),correct_ans))

3   Fail
A = 30; B = 14; C = 15; correct_ans = 41; assert(isequal(BT_Solver(A,B,C),correct_ans))

Unrecognized function or variable 'center_area'. Error in BT_Solver (line 6) center_area=[center_area center]; Error in Test3 (line 5) assert(isequal(BT_Solver(A,B,C),correct_ans))

4   Fail
A = 3; B = 5; C = 12; correct_ans = 16; assert(isequal(BT_Solver(A,B,C),correct_ans))

Unrecognized function or variable 'center_area'. Error in BT_Solver (line 6) center_area=[center_area center]; Error in Test4 (line 5) assert(isequal(BT_Solver(A,B,C),correct_ans))

5   Fail
A = 54; B = 48; C = 90; correct_ans = 132; assert(isequal(BT_Solver(A,B,C),correct_ans))

Unrecognized function or variable 'center_area'. Error in BT_Solver (line 6) center_area=[center_area center]; Error in Test5 (line 5) assert(isequal(BT_Solver(A,B,C),correct_ans))