Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Input
- 4
- (())
- ()((
- (()(
- ))))
- Your output
- 0
- Expected output
- 8
- Input
- 2
- ()
- ()
- Your output
- 0
- Expected output
- 4
- Input
- 2
- ))
- ((
- Your output
- 0
- Input
- 3
- (((
- ())
- )))
- Your output
- 0
- Expected output
- 6
- Input
- 5
- (((((
- (((()
- ((())
- (()))
- ())))
- Your output
- 10
- Expected output
- 18
- Input
- 5
- (((()
- ())((
- (((()
- )((((
- )))))
- Your output
- 10
- Input
- 4
- ((((
- ()()
- ((((
- ()()
- Your output
- 0
- Input
- 4
- ((((
- ((((
- ))))
- ))))
- Your output
- 10
- Expected output
- 16
- Input
- 4
- ((((
- ())(
- )(()
- ))))
- Your output
- 10
- Input
- 5
- (((((
- (((((
- (((((
- (((((
- (((()
- Your output
- 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement