Problem 2582. Cut an orange

Inspired by problem 2175.

A hungry matlab enthusiast has an orange. He decides to cut it into pieces using three dimensional grid.

Given grid density N please help him to find the number of ideal cubes full of juicy orange and the number of pieces containing also some peel.

Example: For N=3 matlab enthusiast is not satisfied. He gets [1 26]. Only one cube and 26 unpeeled pieces!

Related problems:

554, 1283, 1387

Solution Stats

36.9% Correct | 63.1% Incorrect
Last Solution submitted on Dec 08, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers21

Suggested Problems

More from this Author40

Problem Tags

Community Treasure Hunt

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

Start Hunting!