QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#660412#7683. Hard Brackets Problemucup-team3377#WA 44ms3568kbC++141.4kb2024-10-20 11:03:492024-10-20 11:03:49

详细

Test #1:

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

input:

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

output:

((())
impossible
)))(

result:

ok 3 cases (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 44ms
memory: 3556kb

input:

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

output:

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

result:

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