Cody

Solution 1648695

Submitted on 15 Oct 2018 by Yu Han
  • Size: 8
  • This is the leading solution.
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
R=1; M=1; W=99; assert(tank(R,M)>W)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In tank (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

2   Pass
R=2; M=2; W=96; assert(tank(R,M)>W)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In tank (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)]

3   Pass
R=10; M=10; W=36; assert(tank(R,M)>W)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In tank (line 2) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)]

4   Pass
R=15; M=20; W=5; assert(tank(R,M)<W)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In tank (line 2) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)]

5   Pass
R=7; M=8; W=58; assert(tank(R,M)<W)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In tank (line 2) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)]