QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#261944#7683. Hard Brackets ProblemmohiUNYpeAKs#WA 11ms3620kbC++144.5kb2023-11-23 13:53:252023-11-23 13:53:26

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

((()))
impossible
)))()

result:

ok 3 cases (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 11ms
memory: 3620kb

input:

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

output:

impossible
()())()))
)()()()()
impossible
impossible
impossible
)()))())))
impossible
impossible
impossible
impossible
())(()))()
(())(())))
impossible
impossible
impossible
()))()))()
impossible
impossible
()))(()))
impossible
())((()))
impossible
impossible
impossible
impossible
impossible
impossi...

result:

wrong answer Jury has the answer but participant has not (test case 5)