X marks the spot P73242


Statement
 

pdf   zip

thehtml

Archaeology is the search for fact. Not truth. If it’s truth you’re interested in, Dr. Tyree’s philosophy class is right down the hall... So, forget any ideas you’ve got about lost cities, exotic travel, and digging up the world. We do not follow maps to buried treasure, and "X" never, ever marks the spot.

As you may know, Indiana Jones’ speech to his students was not completely accurate. A short while later he discovered in an Italian library that sometimes, indeed, "X" marks the spot. This is how he uncovered the tomb of a First Crusade knight while looking for the Holy Grail.

In the digital world you should practice the drawing of an "X" of different sizes in case someday you will want to hide a digital treasure under it. You can do it using only the characters "X", "\", and "/".

Input

The input will be a single positive integer indicating the height of the "X".

Output

Print out the "X" following the pattern show in the examples.

Public test cases
  • Input

    1
    

    Output

    X
    
  • Input

    2
    

    Output

    \/
    /\
    
  • Input

    3
    

    Output

    \ /
     X
    / \
    
  • Input

    4
    

    Output

    \  /
     \/
     /\
    /  \
    
  • Information
    Author
    Codewars
    Language
    English
    Official solutions
    Python
    User solutions
    C++ Python