Rotation

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

Rotate 3x3 character blocks clockwise.
Angle of rotation is given in a digit at the center of the blocks. Rotation unit is PI/4 or 45 degree.
--nn

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

123
456
789

Sample output:

698
307
214

Sample input:_

abc
h0d
gfe
abc
h1d
gfe
abc
h2d
gfe
abc
h3d
gfe
abc
h4d
gfe
abc
h5d
gfe
abc
h6d
gfe
abc
h7d
gfe
abc
h8d
gfe
abc
h9d
gfe

Sample output:

abc
h0d
gfe
hab
g0c
fed
gha
f0b
edc
fgh
e0a
dcb
efg
d0h
cba
def
c0g
bah
cde
b0f
ahg
bcd
a0e
hgf
abc
h0d
gfe
hab
g0c
fed

Sample input:_

Ana
G3r
yhc
olf
c1A
ran
hyG
n4o
Afl
arc
l1h
oGy
fAn
y5a
hcr
Gol
r9f
anA
chy
A2G
flo
nar
o6c
Gyh
lfA
h5n
cra
yGo
a3l
nAf
rch
f5y
loG

Sample output:

hyG
c0A
ran
col
r0f
anA
lfA
o0n
Gyh
lar
o0c
Gyh
arc
n0h
Afy
rGo
a0l
nAf
fAc
l0h
oGy
rch
a0y
noG
nar
A0c
flh
Ana
f0y
loG
yGo
h0l
crf

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock820.09142012/04/21 14:36:590B / 30B / 49B
2leonid830.05982012/04/18 12:32:056B / 34B / 39B
3@tttttanaka1170.06402012/04/16 14:53:240B / 64B / 49B

Perl _

RankUserSizeTimeDateStatistics
1tails710.06722012/04/16 03:22:470B / 27B / 40B
2teebee710.10122012/04/23 11:55:580B / 21B / 46B
3test1710.04492012/05/24 17:36:220B / ?B / ?B
4BioFALSE1110.03442013/01/28 22:32:440B / 33B / 78B
5nfouille1150.05052012/04/16 01:45:460B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1twobit1090.18642012/04/16 04:24:140B / 69B / 34B
2hallvabo1300.11932012/06/15 17:44:580B / 68B / 60B

PHP _

RankUserSizeTimeDateStatistics
1clock1150.16922012/04/16 01:04:163B / 47B / 65B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1070.10142012/05/13 23:44:540B / 57B / 50B
20mg1080.05432012/06/28 18:01:170B / 54B / 54B
3clock1150.06852012/04/16 09:22:540B / 54B / 61B
4rem1270.08662012/05/17 02:56:250B / 60B / 67B

Lua _

RankUserSizeTimeDateStatistics
1twobit1110.03332013/02/19 22:23:380B / 63B / 44B
2clock1130.03802012/08/09 19:31:150B / 56B / 53B

SNOBOL _

RankUserSizeTimeDateStatistics
1clock1490.03572012/07/21 01:18:290B / 88B / 35B

Icon _

RankUserSizeTimeDateStatistics
1clock1160.03462012/04/16 02:52:460B / 69B / 38B

REXX _

RankUserSizeTimeDateStatistics
1pooq1120.06492012/04/16 00:49:060B / 82B / 21B

PARI/GP _

RankUserSizeTimeDateStatistics
1clock1330.06002012/05/09 02:10:530B / 85B / 48B

Smalltalk _

RankUserSizeTimeDateStatistics
1clock1130.08512013/01/07 16:34:1710B / 62B / 34B

J _

RankUserSizeTimeDateStatistics
1I., S.390.27582012/04/17 06:05:090B / 19B / 19B
2random630.06682013/02/23 05:48:210B / ?B / ?B
3pooq700.15062012/04/16 23:45:080B / 23B / 38B

K _

RankUserSizeTimeDateStatistics
1twobit520.04342012/04/16 08:01:240B / 19B / 31B

C _

RankUserSizeTimeDateStatistics
1nn1160.04402012/05/14 00:29:316B / 58B / 48B
2nfouille1400.05492012/04/17 19:54:160B / ?B / ?B

Euphoria _

RankUserSizeTimeDateStatistics
1clock1400.03592012/04/17 00:25:530B / 86B / 43B

AWK _

RankUserSizeTimeDateStatistics
1llhuii1020.03572014/03/21 16:29:360B / 56B / 44B

sed _

RankUserSizeTimeDateStatistics
1tails1000.04362012/04/17 00:38:060B / 38B / 55B
2clock1020.06262012/04/16 09:20:100B / 24B / 74B
3%201090.04072015/11/27 12:13:560B / 25B / 74B

jq _

RankUserSizeTimeDateStatistics
1clock970.03352015/02/11 21:29:180B / 54B / 42B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii990.03332014/03/18 15:51:470B / 56B / 41B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs1190.09492015/11/27 06:12:450B / 0B / 119B

GolfScript _

RankUserSizeTimeDateStatistics
1tails360.92652012/04/16 04:46:3110B / 5B / 19B
2twobit360.39652012/04/16 05:02:5210B / 4B / 20B

Vim _

RankUserSizeTimeDateStatistics
1clock390.15132012/04/18 09:46:391B / 25B / 12B

Logo _

RankUserSizeTimeDateStatistics
1clock1030.05962013/02/17 22:37:200B / 70B / 19B

Language Ranking_

RankLangUserSizeScore
1GolfScripttails3610000
2JI., S.399230
3Vimclock399230
4Ktwobit526923
5Perltails715070
6Rubyclock824390
7jqclock973711
8xgawkllhuii993636
9sedtails1003600
10AWKllhuii1023529
11Logoclock1033495
12JavaScriptnn1073364
13Pythontwobit1093302
14Luatwobit1113243
15REXXpooq1123214
16Smalltalkclock1133185
17PHPclock1153130
18Iconclock1163103
19Cnn1163103
20Brainfuckmitchs1193025
21PARI/GPclock1332706
22Euphoriaclock1402571
23SNOBOLclock1492416

return top