QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#294398 | #4824. Bracket-and-bar Sequences | ucup-team006# | 0 | 1ms | 3564kb | C++20 | 2.7kb | 2023-12-30 13:25:29 | 2023-12-30 13:25:29 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3552kb
input:
encode 3 1 (|) 4 ((((|)|)|)|) 5 (|(|))((|(|))|)
output:
0 54 77
input:
decode 3 1 0 4 54 5 77
output:
(|) ((((|)|)|)|) (|(|))((|(|))|)
result:
ok 3 lines
Test #2:
score: 100
Accepted
time: 0ms
memory: 3564kb
input:
encode 1 1 (|)
output:
0
input:
decode 1 1 0
output:
(|)
result:
ok single line: '(|)'
Test #3:
score: 100
Accepted
time: 0ms
memory: 3520kb
input:
encode 3 2 ((|)|) 1 (|) 2 (|(|))
output:
2 0 1
input:
decode 3 2 2 1 0 2 1
output:
((|)|) (|) (|(|))
result:
ok 3 lines
Test #4:
score: 0
Wrong Answer
time: 1ms
memory: 3456kb
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:
0 1 2 4 5 6 7 5 8 9 10 11 0 1 2 4 5 6 7 5 8 9 10 11 15 16 17 23 24 25 25 26 27 29 30 31 32 30 33 34 35 36 18 19 20 26 37 38 39 27 28 29 40 41 42 43 44 45 47 48 49 50 48 51 52 53 54 0 1 2 4 5 6 7 5 8 9 10 11 15 16 17 23 24 25 25 26 27 29 30 31 32 30 33 34 35 36 18 19 20 26 37 38 39 27 28 29 40 41 42 ...
input:
decode 1000 3 0 3 1 3 2 3 4 3 5 3 6 3 7 3 5 3 8 3 9 3 10 3 11 4 0 4 1 4 2 4 4 4 5 4 6 4 7 4 5 4 8 4 9 4 10 4 11 4 15 4 16 4 17 4 23 4 24 4 25 4 25 4 26 4 27 4 29 4 30 4 31 4 32 4 30 4 33 4 34 4 35 4 36 4 18 4 19 4 20 4 26 4 37 4 38 4 39 4 27 4 28 4 29 4 40 4 41 4 42 4 43 4 44 4 45 4 47 4 48 4 49 4 5...
output:
(|)(|)(|) (|)(|(|)) (|)((|)|) (|(|))(|) (|(|)(|)) (|(|(|))) (|((|)|)) (|(|)(|)) ((|)|(|)) ((|)(|)|) ((|(|))|) (((|)|)|) (|)(|)(|)(|) (|)(|)(|(|)) (|)(|)((|)|) (|)(|(|))(|) (|)(|(|)(|)) (|)(|(|(|))) (|)(|((|)|)) (|)(|(|)(|)) (|)((|)|(|)) (|)((|)(|)|) (|)((|(|))|) (|)(((|)|)|) (|(|))(|)(|) (|(|))(|(|)...
result:
wrong answer 8th lines differ - expected: '((|)|)(|)', found: '(|(|)(|))'