-->
当前位置:首页 > 题库

PROGRAMMING:parenthesis matching

Luz5年前 (2021-05-10)题库382
Given a string of characters, no more than 100 characters, which may include brackets, numbers, letters, punctuation marks and spaces, program to check whether (), [], {} in this string of characters match.
###Input format:
Input to give a line of string in a line, no more than 100 characters, may include brackets, numbers, letters, punctuation, spaces.
###Output format:
If the brackets are paired, output yes, otherwise output No.
###Input sample 1:
```in
sin(10+20)
```
###Output sample 1:
```out
yes
```
###Input sample 2:
```in
{[}]
```
###Output sample 2:
```out
no
```






answer:If there is no answer, please comment