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
1tails700.03302018/07/06 10:03:580B / 20B / 46B
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

Python3 _

RankUserSizeTimeDateStatistics
1mypetlion1110.15272021/08/12 07:18:570B / 66B / 41B

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
2clock1110.03322019/02/04 00:17:290B / 54B / 53B

Tcl _

RankUserSizeTimeDateStatistics
1clock1260.07112019/02/01 15:02:320B / 60B / 46B

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
1mitchs910.03242019/01/16 17:41:310B / 23B / 63B
2clock940.03212019/01/16 16:36:530B / 23B / 67B
3tails1000.04362012/04/17 00:38:060B / 38B / 55B
4%201090.04072015/11/27 12:13:560B / 25B / 74B

jq _

RankUserSizeTimeDateStatistics
1clock940.04072019/10/03 23:58:590B / 51B / 42B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails1030.04312020/01/22 10:10:180B / 43B / 48B
2McBusLuck1150.04252020/01/22 03:25:310B / 42B / 61B

bc _

RankUserSizeTimeDateStatistics
1McBusLuck3020.04392020/04/27 16:45:190B / 216B / 20B

xgawk _

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

R _

RankUserSizeTimeDateStatistics
1clock1260.32382019/10/01 00:09:020B / 56B / 67B

Brainfuck _

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

GolfScript _

RankUserSizeTimeDateStatistics
1clock340.40892019/01/28 23:44:0010B / 4B / 18B
2tails340.41632019/01/29 08:46:4010B / 4B / 18B
3twobit360.39652012/04/16 05:02:5210B / 4B / 20B

gs2 _

RankUserSizeTimeDateStatistics
1tails250.25462019/01/16 14:26:3314B / 8B / 3B

Vim _

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

Scala _

RankUserSizeTimeDateStatistics
1clock1297.23872019/10/24 01:42:190B / 59B / 68B

Logo _

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

Language Ranking_

RankLangUserSizeScore
1gs2tails2510000
2GolfScriptclock347352
3JI., S.396410
4Vimclock396410
5Ktwobit524807
6Perltails703571
7Rubyclock823048
8sedmitchs912747
9jqclock942659
10xgawkllhuii992525
11AWKllhuii1022450
12Logoclock1032427
13Bash (builtins)tails1032427
14JavaScriptnn1072336
15Pythontwobit1092293
16Luatwobit1112252
17Python3mypetlion1112252
18REXXpooq1122232
19Smalltalkclock1132212
20PHPclock1152173
21Iconclock1162155
22Cnn1162155
23Brainfuckmitchs1192100
24Tclclock1261984
25Rclock1261984
26Scalaclock1291937
27PARI/GPclock1331879
28Euphoriaclock1401785
29SNOBOLclock1491677
30bcMcBusLuck302827

return to the top page