cf/mirror

Draw Brackets!

CF
770D1400· specialist1s256 MB⌨ stdin/stdout

Examples

Sample 1of 5
Input
8
[[][]][]
Output
+- -++- -+
|+- -++- -+|| |
|| || ||| |
|+- -++- -+|| |
+- -++- -+
Sample 2of 5
Input
6
[[[]]]
Output
+- -+
|+- -+|
||+- -+||
||| |||
||+- -+||
|+- -+|
+- -+
Sample 3of 5
Input
6
[[][]]
Output
+- -+
|+- -++- -+|
|| || ||
|+- -++- -+|
+- -+
Sample 4of 5
Input
2
[]
Output
+- -+
| |
+- -+
Sample 5of 5
Input
4
[][]
Output
+- -++- -+
| || |
+- -++- -+
770D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)