Cody

# Problem 281. Acid and water

Solution 1320385

Submitted on 30 Oct 2017 by Erik Luiten
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)

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

C = 0.0200

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

C = 0.1000 C = 0.0900 C = 0.0810 C = 0.0729 C = 0.0656 C = 0.0590 C = 0.0531 C = 0.0478 C = 0.0430

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

C = 0.1500 C = 0.1275 C = 0.1084 C = 0.0921 C = 0.0783 C = 0.0666 C = 0.0566 C = 0.0481 C = 0.0409 C = 0.0347 C = 0.0295 C = 0.0251 C = 0.0213 C = 0.0181 C = 0.0154 C = 0.0131 C = 0.0111 C = 0.0095 C = 0.0080

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

C = 0.0700 C = 0.0651 C = 0.0605 C = 0.0563 C = 0.0524 C = 0.0487 C = 0.0453 C = 0.0421 C = 0.0392

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!