Page 1 of 1

Archive: Problem 2451 (Brackets sequence)

Posted: Fri Nov 28, 2003 3:04 am
by PdR
In order to get AC (PE)
I assumed the maximum number of characters is 1024
and that there could be more than one line per input block i.e.:
3

[(]))
[]())

[()][]()](]
()[][)()(]

()