QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#621391#7683. Hard Brackets Problemucup-team2332#WA 47ms3628kbC++20962b2024-10-08 14:09:232024-10-08 14:09:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

(((
impossible
)))(

result:

ok 3 cases (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 47ms
memory: 3524kb

input:

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

output:

impossible
()())(
)()()(
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)