oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • About
    • Terms of Use
    • Technical Specifications
    • Credits

outline Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

outline.html

Mr B thought that Mr A's parallelogram was too heavy and dark. Thus, Mr B wanted an empty parallogram.

Help Mr B write a program to make an empty parallelogram.

Input

A string s with length 1 < n ≤ 100. You may assume that the string does not contain spaces or any special characters.

Output

An empty parallelogram with string s on the sides.

Sample Input 1

abc

Sample Output 1

abc
 c a
  b b
   a c
    cba

Sample Input 2

abcde

Sample Output 2

abcde
 e   a
  d   b
   c   c
    b   d
     a   e
      edcba

Tags

String Processing

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
1100101s32MBAverage
2021s32MBAverage

Judge Compile Command

g++-8 ans.cpp -o outline -Wall -Wshadow -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 09.05.20
Copyright © 2020 mrJudge. All rights reserved.