MRMCD12 write squared

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

https://frab.mrmcd.net/mrmcd12/public/events/44

Print the input as a square. Start from the left, go down, then backwards to the right and up again. The space between the borders of the square must be filled with spaces. If the word does not evenly fit in a square format, use the next bigger square and fill up with spaces at the end.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

Chaos Computer Club

Sample output:

Chaos 
     C
b    o
u    m
l    p
C retu

Sample input:_

bellybuttons

Sample output:

bell
s  y
n  b
ottu

Sample input:_

The Game

Sample output:

The
e  
maG

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock1070.03422012/09/09 10:01:100B / 48B / 53B
2maufl1350.03932012/09/09 09:12:390B / 74B / 52B

Perl _

RankUserSizeTimeDateStatistics
1Merovius1000.03462012/09/09 00:16:500B / 49B / 16B
2z-cheated1160.03632012/09/08 21:38:500B / ?B / ?B
3z1380.03282012/09/08 20:42:140B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1hallvabo1040.06472012/09/10 05:04:440B / 50B / 24B
2clock1160.06552012/09/10 12:33:440B / 58B / 49B
3samohT1250.11262012/09/09 07:59:340B / 64B / 47B
4ch3ka1750.05372012/09/08 22:43:486B / 91B / 57B

PHP _

RankUserSizeTimeDateStatistics
1BenBE3020.14742012/09/08 07:32:360B / ?B / ?B

Io _

RankUserSizeTimeDateStatistics
1pooq1090.21272013/05/04 11:23:220B / 59B / 14B

PARI/GP _

RankUserSizeTimeDateStatistics
1pooq1150.03542013/03/02 15:31:570B / 61B / 29B

BASIC _

RankUserSizeTimeDateStatistics
1pooq1140.03332013/06/10 17:36:350B / 57B / 15B

J _

RankUserSizeTimeDateStatistics
1I., S.690.09382012/09/08 07:09:480B / 17B / 51B
2I., S.680.07232012/10/06 18:25:220B / 17B / 50B

C _

RankUserSizeTimeDateStatistics
1Merovius1250.03272012/09/09 20:08:130B / 67B / 33B
2archi(cheated)1460.03182012/09/10 19:28:360B / 79B / 40B
3krisha&architekt1550.03232012/09/11 01:08:210B / 80B / 74B
4cheatOo1580.04922012/09/10 16:05:050B / 79B / 52B
5krisha1610.03502012/09/10 16:21:160B / 80B / 80B
6Ro0mquy1780.03442012/09/08 04:34:150B / ?B / ?B

D _

RankUserSizeTimeDateStatistics
1macik (embed)1480.03252012/09/10 01:35:170B / ?B / ?B
2macik1600.03842012/09/10 01:27:210B / ?B / ?B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai1190.07082012/09/10 13:54:370B / 64B / 19B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1210.05082012/09/09 20:51:480B / 69B / 27B
2the_nihilant1280.03802012/09/08 21:31:020B / ?B / ?B
3nomeata2100.03322012/09/08 22:30:239B / ?B / ?B

sed _

RankUserSizeTimeDateStatistics
1Merovius1060.03162012/09/08 19:32:152B / 52B / 25B

Bash _

RankUserSizeTimeDateStatistics
1Merovius1200.02982012/09/08 19:35:330B / 58B / 34B

R _

RankUserSizeTimeDateStatistics
1pooq970.53062012/10/26 21:21:070B / 47B / 15B

Language Ranking_

RankLangUserSizeScore
1JI., S.6810000
2Rpooq977010
3PerlMerovius1006800
4Pythonhallvabo1046538
5sedMerovius1066415
6Rubyclock1076355
7Iopooq1096238
8BASICpooq1145964
9PARI/GPpooq1155913
10OCamlm.ukai1195714
11BashMerovius1205666
12Haskellhenkma1215619
13CMerovius1255440
14Dmacik (embed)1484594
15PHPBenBE3022251

return to the top page