#P8355. 「WHOI-1」ymh 是 AK 哥!!!
「WHOI-1」ymh 是 AK 哥!!!
Input Format
The first line contains a positive integer , the length of the string.
The next line contains a string .
Output Format
Output one non-negative integer, the answer.
3
(()
2
2
()
2
Hint
This problem uses scoring. You can get the score of a only if you pass all test points in that .
| ID | Special Restrictions | Score |
|---|---|---|
| 1 | Contains only left parentheses or only right parentheses | 2 |
| 2 | 3 | |
| 3 | 10 | |
| 4 | 20 | |
| 5 | None | 65 |
For of the testdata, it is guaranteed that .
Translated by ChatGPT 5