Problem 281. Acid and water

Solution 1381797

Submitted on 15 Dec 2017 by J. S. Kowontan
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)

ans = 112

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

ans = 104

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

ans = 40

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

ans = -40

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

ans = 56

Suggested Problems

More from this Author100