Andyman's Golf Course - Hole 2 - Picture Perfect

View as PDF

Submit solution


Points: 0
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type
Allowed languages
Python

For the second hole of AndyMan68's golf course, he would like to hang up a picture he took.

There is a wall that consists of 10 of the letter x. AndyMan68 has a picture that he would like to hang up on the wall.

The picture is simply an even-lengthed string that can fit on the wall (will not exceed 10 in length). When the picture is hung up on the wall, it will be placed over the xs on the wall. He wants to see what this picture would look like if it were hung up in the middle, right, and left of the wall.

AndyMan68 has found an interesting way to do this, and would like to see if you can figure it out as well.

Input Specification

A string S, where the length of S is less than or equal to 10, and has an even length.

Output Specification

Output 3 strings on 3 separate lines:

  • The first should have the string S positioned in the center of the wall
  • The second should have the string S positioned on the right of the wall
  • The third should have the string S positioned on the left of the wall

The xs on the wall should remain visible if not covered by the picture. It is possible that the picture takes up the entire wall, and so all 3 strings would be identical.

Scoring

If the program outputs the strings correctly in order, you will receive a score of (for each test case)

  • 0 if the length of the code in bytes exceeds 100
  • 100 if the length of the code in bytes is less than 48
  • (148-N)\times \frac{48}{N} where N is the length of code in bytes, if 48\le N \le100

Sample Input 1

golf

Sample Output 1

xxxgolfxxx
xxxxxxgolf
golfxxxxxx

Comments

There are no comments at the moment.