Cody

Solution 1183265

Submitted on 8 May 2017 by huashou
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 = 50; rt=40; r1=20; y_correct = 60; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

r2 = 60

2   Pass
x = 20; rt=40; r1=20; y_correct = 45; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

r2 = 45

3   Pass
x = 60; rt=40; r1=20; y_correct = 70; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

r2 = 70

4   Pass
x = 60; rt=80; r1=40; y_correct = 140; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

r2 = 140

5   Pass
x = 60; rt=40; r1=40; y_correct = 40; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

r2 = 40

6   Pass
x = 20; rt=20; r1=40; y_correct = 15; assert(isequal(your_fcn_name(x,r1,rt),y_correct))

r2 = 15