QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#732061#7683. Hard Brackets ProblemZhaoZiLongWA 9ms3660kbC++201.6kb2024-11-10 12:56:122024-11-10 12:56:12

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3556kb

input:

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

output:

(((
impossible
)))(

result:

ok 3 cases (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 9ms
memory: 3660kb

input:

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

output:

impossible
()())(
)()()()(
impossible
((())(
impossible
)()))(
impossible
impossible
()((()(
(()())(
())(()))(
(())((
impossible
impossible
()((())(
()))()))(
()((())(
impossible
()))((
(()((
())(((
impossible
(()((
impossible
impossible
impossible
impossible
impossible
())(()))(
impossible
impossib...

result:

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