Calculates if the brackets in a sentence are correctly close.
Input consists, one per line, sentenc - 资源详细说明
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
Calculates if the brackets in a sentence are correctly close.
Input consists, one per line, sentenc - 源码文件列表