QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#270005#7683. Hard Brackets Problemucup-team1882#WA 12ms3808kbC++231.4kb2023-11-30 13:40:372023-11-30 13:40:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

(((
impossible
)))(

result:

ok 3 cases (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 12ms
memory: 3808kb

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)