QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#577470#4212. BracketskaibaiWA 1ms5736kbC++23728b2024-09-20 11:43:192024-09-20 11:43:19

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
1 2 1 2

output:

()()

result:

ok single line: '()()'

Test #2:

score: 0
Accepted
time: 1ms
memory: 5656kb

input:

1
1 1

output:

(

result:

ok single line: '('

Test #3:

score: 0
Accepted
time: 1ms
memory: 5676kb

input:

4
4 3 1 2 3 2 1 4

output:

(

result:

ok single line: '('

Test #4:

score: 0
Accepted
time: 1ms
memory: 5676kb

input:

4
3 1 2 1 4 3 2 4

output:

(()()())

result:

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

Test #5:

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

input:

4
2 4 3 1 3 4 2 1

output:

(()))(()

result:

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