读书人

CF 286C(Main Sequence-贪心括号婚配)

发布时间: 2013-03-26 09:54:34 作者: rapoo

CF 286C(Main Sequence-贪心括号匹配)
C. Main Sequencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

As you know, Vova has recently become a new shaman in the city of Ultima Thule. So, he has received the shaman knowledge about the correct bracket sequences. The shamans of Ultima Thule have been using lots of different types of brackets since prehistoric times. A bracket type is a positive integer. The shamans define a correct bracket sequence as follows:

读书人网 >网络基础

热点推荐