Generating sequences of rombes X12600


Warning: This problem may have issues.

This problem may have issues because it has many submissions with the Setter Error (SE) verdict.

Please contact the problem setter to fix this issue. The name of the problem setter is Programació1 de la FIB.

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++