Mario Pyramids
Statement
Goal
Toward the beginning of World 1-1 in Nintendo’s Super Mario Bros, Mario must hop over 2 pyramids of blocks.Let’s recreate those pyramids with #.
Input
An int h for the height of the 2 pyramids
An int r for the spaces between the 2 pyramids
An int r for the spaces between the 2 pyramids
Output
h lines of sharps representing the 2 pyramids and r spaces between them.
Constraints
0 < h, r < 10
Example
Input
3 4
Output
# # ## ## ### ###
Game modes
Shortest, Reverse
Test cases
Test 1 Test
Input
3
4
Output
# #
## ##
### ###
Validator 1 Validator
Input
2
1
Output
# #
## ##
Test 2 Test
Input
1
8
Output
# #
Validator 2 Validator
Input
4
5
Output
# #
## ##
### ###
#### ####
Test 3 Test
Input
5
4
Output
# #
## ##
### ###
#### ####
##### #####
Validator 3 Validator
Input
6
5
Output
# #
## ##
### ###
#### ####
##### #####
###### ######
Test 4 Test
Input
7
8
Output
# #
## ##
### ###
#### ####
##### #####
###### ######
####### #######
Validator 4 Validator
Input
8
1
Output
# #
## ##
### ###
#### ####
##### #####
###### ######
####### #######
######## ########
Solution language
Solution
Stub generator input