QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#295158#4824. Bracket-and-bar Sequencesucup-team2895#0 1ms3856kbC++143.1kb2023-12-30 19:48:052023-12-30 19:48:05

详细

Test #1:

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

input:

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

output:

1
71
137

input:

decode
3
1
1
4
71
5
137

output:

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

result:

ok 3 lines

Test #2:

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

input:

encode
1
1
(|)

output:

1

input:

decode
1
1
1

output:

(|)

result:

ok single line: '(|)'

Test #3:

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

input:

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

output:

4
1
3

input:

decode
3
2
4
1
1
2
3

output:

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

result:

ok 3 lines

Test #4:

score: 0
Stage 1: Program answer Runtime Error

input:

encode
1000
3
(|)(|)(|)
3
(|)(|(|))
3
(|)((|)|)
3
(|(|))(|)
3
(|(|)(|))
3
(|(|(|)))
3
(|((|)|))
3
((|)|)(|)
3
((|)|(|))
3
((|)(|)|)
3
((|(|))|)
3
(((|)|)|)
4
(|)(|)(|)(|)
4
(|)(|)(|(|))
4
(|)(|)((|)|)
4
(|)(|(|))(|)
4
(|)(|(|)(|))
4
(|)(|(|(|)))
4
(|)(|((|)|))
4
(|)((|)|)(|)
4
(|)((|)|(|))
4
(|)((|)...

output:


input:


output:


result: