ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1745. Yet Another Answer

Why WA 9?
Posted by Zhuojie 23 Jan 2010 18:22
Some tests
Posted by Arkadiy 24 Jan 2010 15:43
Try this:

Test 1
input
1
())
output
0 0
Test 2
input
1
()
output
2 1
1
Test 3
input
2
()
)(
output
2 1
1
Test 4
input
2
()
()
output
4 2
1 2
Test 5
input
2
(((
))))(
output
0 0

I had WA 9 too, but now I have WA 11...
Re: Some tests
Posted by Zhuojie 25 Jan 2010 07:22
I know, maybe you can try this.
input
((
)(
))
output
6 3
1 2 3
Re: Some tests
Posted by vanla 25 Nov 2011 00:39
I've WA #11 and my solution passes your tests. Maybe you know another interesting one?
Re: Some tests
Posted by Infoshoc 25 Oct 2016 23:56
6
)))((()(())(()()()())()
))
(()((
(())(
()))(())(
))))

Helped me to pass 9
Re: Why WA 9?
Posted by Tolstobrov Anatoliy[Ivanovo SPU] 28 Nov 2016 13:45
Try following tests:
4
((
)(
)
))(

8 4
1 2 4 3

6
(((
(
)((
))(
)))((
())

14 4
1 5 4 6