QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#428709 | #4824. Bracket-and-bar Sequences | ucup-team2262# | 0 | 1ms | 3864kb | C++20 | 1.4kb | 2024-06-01 21:04:22 | 2024-06-01 21:04:22 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3864kb
input:
encode 3 1 (|) 4 ((((|)|)|)|) 5 (|(|))((|(|))|)
output:
0 42 97
input:
decode 3 1 0 4 42 5 97
output:
(|) ((((|)|)|)|) (|(|))((|(|))|)
result:
ok 3 lines
Test #2:
score: 100
Accepted
time: 0ms
memory: 3860kb
input:
encode 1 1 (|)
output:
0
input:
decode 1 1 0
output:
(|)
result:
ok single line: '(|)'
Test #3:
score: 100
Accepted
time: 1ms
memory: 3832kb
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: 0ms
memory: 3628kb
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 4 8 1 2 5 9 2 3 2 6 10 0 16 32 4 8 20 36 8 12 8 24 40 1 17 33 2 5 9 3 18 34 6 9 21 37 10 13 9 25 41 2 18 34 3 2 19 35 2 6 10 3 7 11 2 18 34 6 10 22 38 10 14 10 26 42 0 64 128 16 32 80 144 32 48 32 96 160 4 68 132 8 20 36 12 72 136 24 36 84 148 40 52 36 100 164 8 72 136 12 8 76 140 8 24 40 12 28 44...
input:
decode 1000 3 0 3 4 3 8 3 1 3 2 3 5 3 9 3 2 3 3 3 2 3 6 3 10 4 0 4 16 4 32 4 4 4 8 4 20 4 36 4 8 4 12 4 8 4 24 4 40 4 1 4 17 4 33 4 2 4 5 4 9 4 3 4 18 4 34 4 6 4 9 4 21 4 37 4 10 4 13 4 9 4 25 4 41 4 2 4 18 4 34 4 3 4 2 4 19 4 35 4 2 4 6 4 10 4 3 4 7 4 11 4 2 4 18 4 34 4 6 4 10 4 22 4 38 4 10 4 14 4...
output:
(|)(|)(|) (|)(|(|)) (|)((|)|) (|(|))(|) ((|)|)(|) (|(|(|))) (|((|)|)) ((|)|)(|) ((|)|(|)) ((|)|)(|) ((|(|))|) (((|)|)|) (|)(|)(|)(|) (|)(|)(|(|)) (|)(|)((|)|) (|)(|(|))(|) (|)((|)|)(|) (|)(|(|(|))) (|)(|((|)|)) (|)((|)|)(|) (|)((|)|(|)) (|)((|)|)(|) (|)((|(|))|) (|)(((|)|)|) (|(|))(|)(|) (|(|))(|(|)...
result:
wrong answer 5th lines differ - expected: '(|(|)(|))', found: '((|)|)(|)'