Rahul's Logo
Practice
4.4 (13 votes)
Algorithms
Approved
Basic programming
Easy
Implementation
Open
Problem
55% Success 1500 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code

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.

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
19 votes
Tags:
Basic ProgrammingEasy
Points:20
9 votes
Tags:
Hash functionAd-HocImplementationHash tableOpenApprovedEasy
Points:20
11 votes
Tags:
Basic ProgrammingBasics of ImplementationEasyGrammar-VerifiedImplementationJavaOOPSOOPsPythonpython