Cody

Problem 441. Drying sweater?

Solution 1122205

Submitted on 13 Feb 2017
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   Fail
x=2; w=1.5; m=drying(x,w); m_correct = 69; assert(round(m)==m_correct)

m = 69.5000

Assertion failed.

2   Fail
x=3; w=2; m=drying(x,w); m_correct = 69; assert(round(m)==m_correct)

m = 69.5000

Assertion failed.

3   Pass
x=5; w=2; m=drying(x,w); m_correct = 139; assert(round(m)==m_correct)

m = 139

Suggested Problems

More from this Author100

Community Treasure Hunt

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

Start Hunting!