Cody

Problem 467. Mr. Pyramidad & Ms. Whissy Bolower

Solution 863941

Submitted on 3 Apr 2016 by Jean-Marie Sainthillier
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 = 10; % peddlers-IV under every helper-III y = 1000000; % net dollars minimum z = 1; % retire counter minimum assert(10==Pyramidad(y,z))

2   Pass
x = 10; % peddlers-IV under every helper-III y = 1999000; % net dollars minimum z = 2; % retire counter minimum assert(10==Pyramidad(y,z))

3   Pass
x = 5; % peddlers-IV under every helper-III y = 373000; % net dollars minimum z = 3; % retire counter minimum assert(5==Pyramidad(y,z))

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!