Calculates if the brackets in a sentence are correctly close.
Input consists, one per line, sentences with brackets, and output say YES if its correctly close, or NO int if its not saying where is the error.
Input:
()[]<>(**)
(*)
(ASA
Output:
YES
NO 2
NO 4
/dl/482766.html
标签:
Calculates
correctly
brackets
consists
上传时间:
2013-12-13
上传用户:aig85