| CodeRams Practice Problem Archive |
|---|
| Finished |
You are currently playing minecraft with your friends when you get a brilliant idea for a prank, you want to fill his entire house with sand. Given some information that represents the dimensions of your friend's house return the number of blocks of sand needed to fill it up.
The first line will contain a number that is the height of the house. The next line will be the number of lines that will be used to display the foundation of the house. The following lines will be X's that represent the foundation of the house
Print an integer that is the number of blocks needed to fill the house.
5 7 XXXX XXXX XXXX XXX XXXX XXXX XXXX
21
The ceiling, floor, and walls are included within the dimensions of the house so be mindful of that. You can also assume the ceiling is flat.
| Name |
|---|


