Drawing parallelepipeds P46903


Statement
 

pdf   zip

thehtml

Write a program that reads several triplets of natural numbers b, h and d, and for each one prints a parallelepiped of base b, height h and depth d.

Input

Input consists of several triplets of strictly positive natural numbers b, h and d, with hd.

Output

For every triplet, print a parallelepiped of base b, height h and depth d, 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