QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#732342#7683. Hard Brackets ProblemHuangHanShengWA 53ms3772kbC++23578b2024-11-10 14:05:252024-11-10 14:05:26

详细

Test #1:

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

input:

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

output:

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

result:

ok 3 cases (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 53ms
memory: 3616kb

input:

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

output:

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

result:

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