Sequence of brackets
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 122.174 megabytes
Sequence of brackets consists of three types of brackets ( ), [ ], { }. Determine is it a correct sequence.
Input
String contains a bracket sequence with length no more than 255 characters.
Output
Print "yes" if the sequence is correct and "no" otherwise.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 9K
Acceptance rate 35%