QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#339230#4212. Brackets_map_WA 0ms3380kbC++147.7kb2024-02-26 21:35:232024-02-26 21:35:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
1 2 1 2

output:

()()

result:

ok single line: '()()'

Test #2:

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

input:

1
1 1

output:

(

result:

ok single line: '('

Test #3:

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

input:

4
4 3 1 2 3 2 1 4

output:

(

result:

ok single line: '('

Test #4:

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

input:

4
3 1 2 1 4 3 2 4

output:

(()()())

result:

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

Test #5:

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

input:

4
2 4 3 1 3 4 2 1

output:

()()()()

result:

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

Test #6:

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

input:

4
4 4 3 3 1 2 1 2

output:

(((())))

result:

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

Test #7:

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

input:

4
1 3 1 2 4 4 2 3

output:

()(())()

result:

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

Test #8:

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

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:

ok single line: '('

Test #9:

score: -100
Wrong Answer
time: 0ms
memory: 3324kb

input:

20
16 3 16 6 5 6 19 11 15 10 14 18 20 18 8 7 13 1 7 3 8 2 9 17 9 19 12 14 4 2 15 4 11 1 13 5 20 17 10 12

output:

((((((((())()((())((())))())))()())())))

result:

wrong answer 1st lines differ - expected: '(((((((((((()()))))()))))()())()())())()', found: '((((((((())()((())((())))())))()())())))'