QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#643527#4212. BracketsBellaKiraTL 0ms3620kbC++141.3kb2024-10-15 21:36:102024-10-15 21:36:12

詳細信息

Test #1:

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

input:

2
1 2 1 2

output:

()()

result:

ok single line: '()()'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3620kb

input:

1
1 1

output:

(

result:

ok single line: '('

Test #3:

score: 0
Accepted
time: 0ms
memory: 3620kb

input:

4
4 3 1 2 3 2 1 4

output:

(

result:

ok single line: '('

Test #4:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

4
3 1 2 1 4 3 2 4

output:

(()()())

result:

ok single line: '(()()())'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

4
2 4 3 1 3 4 2 1

output:

()()()()

result:

ok single line: '()()()()'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

4
4 4 3 3 1 2 1 2

output:

(((())))

result:

ok single line: '(((())))'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3548kb

input:

4
1 3 1 2 4 4 2 3

output:

()(())()

result:

ok single line: '()(())()'

Test #8:

score: -100
Time Limit Exceeded

input:

11
3 9 10 5 4 7 7 8 11 9 5 3 6 1 2 11 10 6 1 2 4 8

output:


result: