Cody

Solution 2064556

Submitted on 19 Dec 2019 by Asif Newaz
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
x = [1 3 12]; n = [2 6 8]; t = [1 2 1]; y_correct = 2; assert(isequal(completePizzas(x,n,t),y_correct))

a = 0.5000 0.5000 1.5000 b = 1 3 b1 = 2 y = 2 b = 2 b1 = 0.5000 y = 2

2   Pass
x = [1 3 12]; n = [2 6 8]; t = [1 1 1]; y_correct = 2; assert(isequal(completePizzas(x,n,t),y_correct))

a = 0.5000 0.5000 1.5000 b = 1 2 3 b1 = 2.5000 y = 2

3   Pass
x = [1 3 12]; n = [2 6 8]; t = [1 1 2]; y_correct = 2; assert(isequal(completePizzas(x,n,t),y_correct))

a = 0.5000 0.5000 1.5000 b = 1 2 b1 = 1 y = 1 b = 3 b1 = 1.5000 y = 2

4   Pass
x = [1 3 12]; n = [2 6 8]; t = [1 2 3]; y_correct = 1; assert(isequal(completePizzas(x,n,t),y_correct))

a = 0.5000 0.5000 1.5000 b = 1 b1 = 0.5000 y = 0 b = 2 b1 = 0.5000 y = 0 b = 3 b1 = 1.5000 y = 1

5   Pass
x = [1 3 58 41 24 7 5]; n = [2 6 8 50 5 4 3]; t = [1 2 3 1 4 2 3]; y_correct = 15; assert(isequal(completePizzas(x,n,t),y_correct))

a = 0.5000 0.5000 7.2500 0.8200 4.8000 1.7500 1.6667 b = 1 4 b1 = 1.3200 y = 1 b = 2 6 b1 = 2.2500 y = 3 b = 3 7 b1 = 8.9167 y = 11 b = 5 b1 = 4.8000 y = 15

Suggested Problems

More from this Author25