Rectangles (3) X26208


Statement
 

pdf   zip

html

Write a program that prints k, n× m rectangles. Print each rectangle in an independent way, fill it up with 9, followed by 8, …followed by 0, etc.

Input

The input consists of three natural numbers k, n, m.

Output

Print k rectangles of size n × m, filled with 9,8,…0, 9, …. Separate two rectangles with an empty line.

Public test cases
  • Input

    3 2 6
    

    Output

    987654
    321098
    
    987654
    321098
    
    987654
    321098
    
  • Input

    2 5 4

    Output

    9876
    5432
    1098
    7654
    3210
    
    9876
    5432
    1098
    7654
    3210
    
  • Input

    5 2 3
    

    Output

    987
    654
    
    987
    654
    
    987
    654
    
    987
    654
    
    987
    654
    
  • Information
    Author
    Maria Serna
    Language
    English
    Translator
    Maria Serna
    Original language
    Catalan
    Other languages
    Catalan Spanish
    Official solutions
    Unknown. This problem is being checked.
    User solutions
    C++ Python