QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 256 MB

# 4519. Rotating Display / Barbara's Robot

Statistics

The example in the statements is wrong. Correct one:

Input:

3
o^-
/v|
vx^
< |
5
x>-o\
voooo
|ooo/
ooo/v
\o/vv
| \ |

Output:

>-|
x<>
</o
<</o\
</ooo
/ooo|
oooo^
\o-<x