Cody

Problem 467. Mr. Pyramidad & Ms. Whissy Bolower

Solution 668795

Submitted on 11 May 2015 by Zikobrelli
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))

ans = 10

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))

ans = 10

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))

ans = 10 ans = 5

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!