QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#258162#7683. Hard Brackets Problemucup-team2551#WA 74ms3484kbC++141.0kb2023-11-19 15:45:352023-11-19 15:45:37

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3480kb

input:

3
((()))
(
)))()

output:

((()
impossible
)))()

result:

ok 3 cases (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 74ms
memory: 3484kb

input:

100000
())(()()()
()())()))
)()()()()
())()(())(
((())()))
)(())()))(
)()))())))
)))))(((()
()))((()((
()((()()))
(()())())
())(()))()
(())(())))
))))(()(()
()))(())((
()((())())
()))()))()
()((())())
()()))((()
()))(()))
(()(())))
())((()))
())()((())
(()(())))
()(((()())
))))())))(
((((()()()
(()(...

output:

impossible
()())()))
)()()()()
impossible
((())()
impossible
)()))())))
impossible
impossible
()((()()
(()())()
impossible
(())(())
impossible
impossible
impossible
()))()))()
impossible
impossible
()))(())
(()(())
())((()
impossible
(()(())
impossible
impossible
impossible
impossible
impossible
imp...

result:

wrong answer the result string is incorrect (test case 5)