QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#294556#4824. Bracket-and-bar Sequencesucup-team1376#0 1ms3676kbC++202.3kb2023-12-30 14:35:022023-12-30 14:35:02

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

encode
3
1
(|)
4
((((|)|)|)|)
5
(|(|))((|(|))|)

output:

0
5
67

input:

decode
3
1
0
4
5
5
67

output:

(|)
((((|)|)|)|)
(|(|))((|(|))|)

result:

ok 3 lines

Test #2:

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

input:

encode
1
1
(|)

output:

0

input:

decode
1
1
0

output:

(|)

result:

ok single line: '(|)'

Test #3:

score: 0
Wrong Answer
time: 1ms
memory: 3668kb

input:

encode
3
2
((|)|)
1
(|)
2
(|(|))

output:

0
0
0

input:

decode
3
2
0
1
0
2
0

output:

((|)|)
(|)
((|)|)

result:

wrong answer 3rd lines differ - expected: '(|(|))', found: '((|)|)'