All Tracks Basic Programming Implementation Basics of Implementation Problem

Rahul's Logo
Tag(s):

Algorithms, Basic Programming, Easy, Implementation

Problem
Editorial
Analytics

Rahul has set upon the quest for a new logo of his company. He has created the following continuous logo:

    /\
   /  \
  / /\ \
 / /  \ \
/ / /\ \ \
  \ \ \/ / /
   \ \  / /
    \ \/ /
     \  /
      \/

However, his sister, Rashi, likes the following discontinuous design more

   /\
  /  \
 / /\ \
/ /  \ \
  \ \  / /
   \ \/ /
    \  /
     \/

The size of a logo is the longest continuous streak of same characters on an arm.

So, size of 1st logo is 5 while that of 2nd one is 4.

Now, he wants to paint both of these logos on a canvas.

Given an integer N, write a program that outputs these logos for sizes N and N + 1, one below the other.

Please note that Rahul's logo is only valid for odd sizes and Rashi's logo is only valid for even values.

Input Format:

Each file has just one line containing integer N.

Output Format:

Output the two logos, one below the other.

Constraints:

N ≤ 100

Notes:

An exact checker is used, so please make sure that you strictly adhere to the output format and leave no trailing spaces.

SAMPLE INPUT
3
SAMPLE OUTPUT
  /\
 /  \
/ /\ \
  \ \/ /
   \  /
    \/
   /\
  /  \
 / /\ \
/ /  \ \
  \ \  / /
   \ \/ /
    \  /
     \/
Time Limit: 1.0 sec(s) for each input file.
Memory Limit: 256 MB
Source Limit: 1024 KB
Marking Scheme: Marks are awarded when all the testcases pass.
Allowed Languages: Bash, C, C++, C++14, Clojure, C#, D, Erlang, F#, Go, Groovy, Haskell, Java, Java 8, JavaScript(Rhino), JavaScript(Node.js), Julia, Kotlin, Lisp, Lisp (SBCL), Lua, Objective-C, OCaml, Octave, Pascal, Perl, PHP, Python, Python 3, R(RScript), Racket, Ruby, Rust, Scala, Swift, Swift-4.1, TypeScript, Visual Basic

CODE EDITOR

Initializing Code Editor...
Your Rating:

Contributor

This Problem was Asked in

HackerEarth

Challenge Name

Remember December

OTHER PROBLEMS OF THIS CHALLENGE
Notifications
View All Notifications

?