Chess Board X36014


Statement
 

pdf   zip

html
Public test cases
  • Input

    #
    1
    

    Output

    -----------------
    | |#| |#| |#| |#|
    -----------------
    |#| |#| |#| |#| |
    -----------------
    | |#| |#| |#| |#|
    -----------------
    |#| |#| |#| |#| |
    -----------------
    | |#| |#| |#| |#|
    -----------------
    |#| |#| |#| |#| |
    -----------------
    | |#| |#| |#| |#|
    -----------------
    |#| |#| |#| |#| |
    -----------------
    
  • Input

    X
    3
    

    Output

    ---------------------------------
    |   |XXX|   |XXX|   |XXX|   |XXX|
    |   |XXX|   |XXX|   |XXX|   |XXX|
    |   |XXX|   |XXX|   |XXX|   |XXX|
    ---------------------------------
    |XXX|   |XXX|   |XXX|   |XXX|   |
    |XXX|   |XXX|   |XXX|   |XXX|   |
    |XXX|   |XXX|   |XXX|   |XXX|   |
    ---------------------------------
    |   |XXX|   |XXX|   |XXX|   |XXX|
    |   |XXX|   |XXX|   |XXX|   |XXX|
    |   |XXX|   |XXX|   |XXX|   |XXX|
    ---------------------------------
    |XXX|   |XXX|   |XXX|   |XXX|   |
    |XXX|   |XXX|   |XXX|   |XXX|   |
    |XXX|   |XXX|   |XXX|   |XXX|   |
    ---------------------------------
    |   |XXX|   |XXX|   |XXX|   |XXX|
    |   |XXX|   |XXX|   |XXX|   |XXX|
    |   |XXX|   |XXX|   |XXX|   |XXX|
    ---------------------------------
    |XXX|   |XXX|   |XXX|   |XXX|   |
    |XXX|   |XXX|   |XXX|   |XXX|   |
    |XXX|   |XXX|   |XXX|   |XXX|   |
    ---------------------------------
    |   |XXX|   |XXX|   |XXX|   |XXX|
    |   |XXX|   |XXX|   |XXX|   |XXX|
    |   |XXX|   |XXX|   |XXX|   |XXX|
    ---------------------------------
    |XXX|   |XXX|   |XXX|   |XXX|   |
    |XXX|   |XXX|   |XXX|   |XXX|   |
    |XXX|   |XXX|   |XXX|   |XXX|   |
    ---------------------------------
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    C++
    User solutions
    C++ Python