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

Zhuojie Why WA 9? [5] // Problem 1745. Yet Another Answer 23 Jan 2010 18:22
Arkadiy Some tests [3] // Problem 1745. Yet Another Answer 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...
Zhuojie Re: Some tests [2] // Problem 1745. Yet Another Answer 25 Jan 2010 07:22
I know, maybe you can try this.
input
((
)(
))
output
6 3
1 2 3
vanla Re: Some tests [1] // Problem 1745. Yet Another Answer 25 Nov 2011 00:39
I've WA #11 and my solution passes your tests. Maybe you know another interesting one?
Infoshoc Re: Some tests // Problem 1745. Yet Another Answer 25 Oct 2016 23:56
6
)))((()(())(()()()())()
))
(()((
(())(
()))(())(
))))

Helped me to pass 9
Tolstobrov Anatoliy[Ivanovo SPU] Re: Why WA 9? // Problem 1745. Yet Another Answer 28 Nov 2016 13:45
Try following tests:
4
((
)(
)
))(

8 4
1 2 4 3

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

14 4
1 5 4 6