QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#319659 | #4824. Bracket-and-bar Sequences | daoquanglinh2007 | 0 | 1ms | 3900kb | C++20 | 2.8kb | 2024-02-02 23:15:10 | 2024-02-02 23:15:10 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3812kb
input:
encode 3 1 (|) 4 ((((|)|)|)|) 5 (|(|))((|(|))|)
output:
1 24 178
input:
decode 3 1 1 4 24 5 178
output:
(|) ((((|)|)|)|) (|(|))((|(|))|)
result:
ok 3 lines
Test #2:
score: 100
Accepted
time: 0ms
memory: 3588kb
input:
encode 1 1 (|)
output:
1
input:
decode 1 1 1
output:
(|)
result:
ok single line: '(|)'
Test #3:
score: 100
Accepted
time: 0ms
memory: 3888kb
input:
encode 3 2 ((|)|) 1 (|) 2 (|(|))
output:
2 1 1
input:
decode 3 2 2 1 1 2 1
output:
((|)|) (|) (|(|))
result:
ok 3 lines
Test #4:
score: 0
Wrong Answer
time: 1ms
memory: 3900kb
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:
12 8 9 10 3 1 2 11 4 7 5 6 55 49 50 51 33 31 32 52 34 37 35 36 53 38 39 44 42 43 12 8 9 10 3 1 2 11 4 7 5 6 54 40 41 45 15 13 14 48 46 47 18 16 17 30 26 27 28 21 19 20 29 22 25 23 24 273 265 266 267 234 232 233 268 235 238 236 237 269 239 240 245 243 244 155 151 152 153 146 144 145 154 147 150 148 1...
input:
decode 1000 3 12 3 8 3 9 3 10 3 3 3 1 3 2 3 11 3 4 3 7 3 5 3 6 4 55 4 49 4 50 4 51 4 33 4 31 4 32 4 52 4 34 4 37 4 35 4 36 4 53 4 38 4 39 4 44 4 42 4 43 4 12 4 8 4 9 4 10 4 3 4 1 4 2 4 11 4 4 4 7 4 5 4 6 4 54 4 40 4 41 4 45 4 15 4 13 4 14 4 48 4 46 4 47 4 18 4 16 4 17 4 30 4 26 4 27 4 28 4 21 4 19 4...
output:
(|)(|)(|) (|)(|(|)) (|)((|)|) (|(|))(|) (|(|)(|)) (|(|(|))) (|((|)|)) ((|)|)(|) ((|)|(|)) ((|)(|)|) ((|(|))|) (((|)|)|) (|)(|)(|)(|) (|)(|)(|(|)) (|)(|)(|(|)) (|)(|)(|(|)) (|)(|(|)(|)) (|)(|(|(|))) (|)(|((|)|)) (|)(|)(|(|)) (|)((|)|(|)) (|)((|)(|)|) (|)((|(|))|) (|)(((|)|)|) (|(|))(|)(|) (|(|))(|(|)...
result:
wrong answer 15th lines differ - expected: '(|)(|)((|)|)', found: '(|)(|)(|(|))'