Generating sequences of rombes X12600


Statement
 

pdf   zip

html

Implement a program that, given pairs of positive natural numbers numspaces, numrombes, generates sequences of rombes such as those shown in the examples.

Input

An arbitrary number of cases, where each one consists of two positive natural numbers in one line.

Output

For each case, the corresponding sequence of rombes, followed by a blank line.

Observation

You cannot use massive storage methods, such as string or vector.

Public test cases
  • Input

    2 3
    3 2
    4 1
    1 4
    1 1
    4 4
    4 2
    8 1
    4 1
    7 3
    10 2
    3 3
    1 5
    4 2
    1 2
    3 2
    

    Output

      *
     * *
    *   *
     * *
      *
     * *
    *   *
     * *
      *
     * *
    *   *
     * *
      *
    
       *
      * *
     *   *
    *     *
     *   *
      * *
       *
      * *
     *   *
    *     *
     *   *
      * *
       *
    
        *
       * *
      *   *
     *     *
    *       *
     *     *
      *   *
       * *
        *
    
     *
    * *
     *
    * *
     *
    * *
     *
    * *
     *
    
     *
    * *
     *
    
        *
       * *
      *   *
     *     *
    *       *
     *     *
      *   *
       * *
        *
       * *
      *   *
     *     *
    *       *
     *     *
      *   *
       * *
        *
       * *
      *   *
     *     *
    *       *
     *     *
      *   *
       * *
        *
       * *
      *   *
     *     *
    *       *
     *     *
      *   *
       * *
        *
    
        *
       * *
      *   *
     *     *
    *       *
     *     *
      *   *
       * *
        *
       * *
      *   *
     *     *
    *       *
     *     *
      *   *
       * *
        *
    
            *
           * *
          *   *
         *     *
        *       *
       *         *
      *           *
     *             *
    *               *
     *             *
      *           *
       *         *
        *       *
         *     *
          *   *
           * *
            *
    
        *
       * *
      *   *
     *     *
    *       *
     *     *
      *   *
       * *
        *
    
           *
          * *
         *   *
        *     *
       *       *
      *         *
     *           *
    *             *
     *           *
      *         *
       *       *
        *     *
         *   *
          * *
           *
          * *
         *   *
        *     *
       *       *
      *         *
     *           *
    *             *
     *           *
      *         *
       *       *
        *     *
         *   *
          * *
           *
          * *
         *   *
        *     *
       *       *
      *         *
     *           *
    *             *
     *           *
      *         *
       *       *
        *     *
         *   *
          * *
           *
    
              *
             * *
            *   *
           *     *
          *       *
         *         *
        *           *
       *             *
      *               *
     *                 *
    *                   *
     *                 *
      *               *
       *             *
        *           *
         *         *
          *       *
           *     *
            *   *
             * *
              *
             * *
            *   *
           *     *
          *       *
         *         *
        *           *
       *             *
      *               *
     *                 *
    *                   *
     *                 *
      *               *
       *             *
        *           *
         *         *
          *       *
           *     *
            *   *
             * *
              *
    
       *
      * *
     *   *
    *     *
     *   *
      * *
       *
      * *
     *   *
    *     *
     *   *
      * *
       *
      * *
     *   *
    *     *
     *   *
      * *
       *
    
     *
    * *
     *
    * *
     *
    * *
     *
    * *
     *
    * *
     *
    
        *
       * *
      *   *
     *     *
    *       *
     *     *
      *   *
       * *
        *
       * *
      *   *
     *     *
    *       *
     *     *
      *   *
       * *
        *
    
     *
    * *
     *
    * *
     *
    
       *
      * *
     *   *
    *     *
     *   *
      * *
       *
      * *
     *   *
    *     *
     *   *
      * *
       *
    
    
  • Information
    Author
    PRO1
    Language
    English
    Translator
    Original language
    Catalan
    Other languages
    Catalan Spanish
    Official solutions
    C++
    User solutions
    C++