Drawing parallelepipeds P46903


Statement
 

pdf   zip

Write a program that reads several triplets of natural numbers bb, hh and dd, and for each one prints a parallelepiped of base bb, height hh and depth dd.

Input

Input consists of several triplets of strictly positive natural numbers bb, hh and dd, with hdh\ge d.

Output

For every triplet, print a parallelepiped of base bb, height hh and depth dd, as it is shown in the example. Print an empty line after each parallelepiped.

Public test cases
  • Input

    5 4 3
    1 1 1
    1 3 2
    

    Output

       ______
      /     /|
     /     / |
    /_____/  |
    |     |  |
    |     |  /
    |     | /
    |_____|/
    
     __
    /_/|
    |_|/
    
      __
     / /|
    /_/ |
    | | |
    | | /
    |_|/
    
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Python
    User solutions
    C C++ Python