Back
Close

Christmas Tree

Statement
You should draw a Christmas tree with message according to the given values. {{IMPORTANT!}} If you think such a tree cannot be built, write "Oops!"

Input description
<<Line 1:>> [[X]] is the widest region of the Christmas tree. [[X]] is integer <<Line 2:>> [[Y]] is the message to write inside the Christmas tree. [[Y]] is string <<Line 3:>> [[Z]] tells us how to draw the Christmas Tree

Output description
Everybody knows what the Christmas Tree looks like. {{NOTES:}} 1_ The size of the "trunk" should be Width: Length of Y, Height:2 2_ Lines are space-padded, so that each line is the same length

Constraints
[[X]] is an odd number Length of [[Y]] is an odd number Length of [[Z]] = 1

Game modes

Test cases
You Test
Input
9 HI GUYS +
Output
+ +++ +++++ +++++++ +HI GUYS+ +++++++ +++++++

can Validator
Input
9 Hi GUYS *
Output
* *** ***** ******* *Hi GUYS* ******* *******

do Test
Input
23 HELLO WORLD $
Output
$ $$$ $$$$$ $$$$$$$ $$$$$$$$$ $$$$$$$$$$$ $$$$$$$$$$$$$ $$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$ $$$$$$HELLO WORLD$$$$$$ $$$$$$$$$$$ $$$$$$$$$$$

it Validator
Input
23 HELLO WORLD ?
Output
? ??? ????? ??????? ????????? ??????????? ????????????? ??????????????? ????????????????? ??????????????????? ????????????????????? ??????HELLO WORLD?????? ??????????? ???????????

Believe Test
Input
13 CodinGame !
Output
! !!! !!!!! !!!!!!! !!!!!!!!! !!!!!!!!!!! !!CodinGame!! !!!!!!!!! !!!!!!!!!

in Validator
Input
13 CodinGame -
Output
- --- ----- ------- --------- ----------- --CodinGame-- --------- ---------

yourself. Test
Input
33 DejaVu_0081 '
Output
' ''' ''''' ''''''' ''''''''' ''''''''''' ''''''''''''' ''''''''''''''' ''''''''''''''''' ''''''''''''''''''' ''''''''''''''''''''' ''''''''''''''''''''''' ''''''''''''''''''''''''' ''''''''''''''''''''''''''' ''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''' '''''''''''DejaVu_0081''''''''''' ''''''''''' '''''''''''

hello world Validator
Input
33 DejaVu_0001 '
Output
' ''' ''''' ''''''' ''''''''' ''''''''''' ''''''''''''' ''''''''''''''' ''''''''''''''''' ''''''''''''''''''' ''''''''''''''''''''' ''''''''''''''''''''''' ''''''''''''''''''''''''' ''''''''''''''''''''''''''' ''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''' '''''''''''DejaVu_0001''''''''''' ''''''''''' '''''''''''

By Test
Input
11 %
Output
% %%% %%%%% %%%%%%% %%%%%%%%% %%%%% %%%%% % %

DejaVu Validator
Input
11 ^
Output
^ ^^^ ^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^ ^^^^^ ^ ^

joke 1 Test
Input
1 Joke! !
Output
Oops!

joke 2 Validator
Input
2 Joke! !
Output
Oops!

Solution language

Solution

Stub generator input