QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#295405 | #4824. Bracket-and-bar Sequences | ucup-team2045# | 0 | 2ms | 3480kb | C++14 | 2.7kb | 2023-12-31 05:42:59 | 2023-12-31 05:43:00 |
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: 3468kb
input:
encode 3 1 (|) 4 ((((|)|)|)|) 5 (|(|))((|(|))|)
output:
0 70 162
input:
decode 3 1 0 4 70 5 162
output:
(|) ((((|)|)|)|) (|(|))((|(|))|)
result:
ok 3 lines
Test #2:
score: 100
Accepted
time: 1ms
memory: 3472kb
input:
encode 1 1 (|)
output:
0
input:
decode 1 1 0
output:
(|)
result:
ok single line: '(|)'
Test #3:
score: 100
Accepted
time: 0ms
memory: 3468kb
input:
encode 3 2 ((|)|) 1 (|) 2 (|(|))
output:
3 0 2
input:
decode 3 2 3 1 0 2 2
output:
((|)|) (|) (|(|))
result:
ok 3 lines
Test #4:
score: 0
Wrong Answer
time: 2ms
memory: 3480kb
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:
4 7 8 5 9 10 11 6 12 13 14 15 16 28 29 19 34 35 36 20 37 38 39 40 17 30 31 21 22 23 41 44 45 42 46 47 48 43 49 50 51 52 18 32 33 24 77 78 79 25 26 27 56 57 58 59 62 63 60 64 65 66 61 67 68 69 70 71 126 127 83 150 151 152 84 153 154 155 156 74 132 133 89 90 91 171 174 175 172 176 177 178 173 179 180 ...
input:
decode 1000 3 4 3 7 3 8 3 5 3 9 3 10 3 11 3 6 3 12 3 13 3 14 3 15 4 16 4 28 4 29 4 19 4 34 4 35 4 36 4 20 4 37 4 38 4 39 4 40 4 17 4 30 4 31 4 21 4 22 4 23 4 41 4 44 4 45 4 42 4 46 4 47 4 48 4 43 4 49 4 50 4 51 4 52 4 18 4 32 4 33 4 24 4 77 4 78 4 79 4 25 4 26 4 27 4 56 4 57 4 58 4 59 4 62 4 63 4 60...
output:
(|)(|)(|) (|)(|(|)) (|)((|)|) (|(|))(|) (|(|)(|)) (|(|(|))) (|((|)|)) ((|)|)(|) ((|)|(|)) ((|)(|)|) ((|(|))|) (((|)|)|) (|)(|)(|)(|) (|)(|)(|(|)) (|)(|)((|)|) (|)(|(|))(|) (|)(|(|)(|)) (|)(|(|(|))) (|)(|((|)|)) (|)((|)|)(|) (|)((|)|(|)) (|)((|)(|)|) (|)((|(|))|) (|)(((|)|)|) (|(|))(|)(|) (|(|))(|(|)...
result:
wrong answer 47th lines differ - expected: '((|)|(|)(|))', found: '(|(|(|)))(|)(|)'