QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#294921 | #4824. Bracket-and-bar Sequences | ucup-team311# | 0 | 1ms | 3792kb | C++20 | 4.3kb | 2023-12-30 17:27:02 | 2023-12-30 17:27:03 |
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: 3792kb
input:
encode 3 1 (|) 4 ((((|)|)|)|) 5 (|(|))((|(|))|)
output:
0 54 65
input:
decode 3 1 0 4 54 5 65
output:
(|) ((((|)|)|)|) (|(|))((|(|))|)
result:
ok 3 lines
Test #2:
score: 100
Accepted
time: 1ms
memory: 3660kb
input:
encode 1 1 (|)
output:
0
input:
decode 1 1 0
output:
(|)
result:
ok single line: '(|)'
Test #3:
score: 100
Accepted
time: 1ms
memory: 3736kb
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: 3664kb
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 3 5 6 7 3 8 9 10 11 0 1 2 3 5 6 7 3 8 9 10 11 12 13 14 18 19 20 25 26 27 28 30 31 32 28 33 34 35 36 12 13 14 18 37 38 39 18 19 20 40 41 42 43 44 45 46 48 49 50 46 51 52 53 54 0 1 2 3 5 6 7 3 8 9 10 11 12 13 14 18 19 20 25 26 27 28 30 31 32 28 33 34 35 36 12 13 14 18 37 38 39 18 19 20 40 41 42 ...
input:
decode 1000 3 0 3 1 3 2 3 3 3 5 3 6 3 7 3 3 3 8 3 9 3 10 3 11 4 0 4 1 4 2 4 3 4 5 4 6 4 7 4 3 4 8 4 9 4 10 4 11 4 12 4 13 4 14 4 18 4 19 4 20 4 25 4 26 4 27 4 28 4 30 4 31 4 32 4 28 4 33 4 34 4 35 4 36 4 12 4 13 4 14 4 18 4 37 4 38 4 39 4 18 4 19 4 20 4 40 4 41 4 42 4 43 4 44 4 45 4 46 4 48 4 49 4 5...
output:
(|)(|)(|) (|)(|(|)) (|)((|)|) (|(|))(|) (|(|)(|)) (|(|(|))) (|((|)|)) (|(|))(|) ((|)|(|)) ((|)(|)|) ((|(|))|) (((|)|)|) (|)(|)(|)(|) (|)(|)(|(|)) (|)(|)((|)|) (|)(|(|))(|) (|)(|(|)(|)) (|)(|(|(|))) (|)(|((|)|)) (|)(|(|))(|) (|)((|)|(|)) (|)((|)(|)|) (|)((|(|))|) (|)(((|)|)|) (|(|))(|)(|) (|(|))(|(|)...
result:
wrong answer 8th lines differ - expected: '((|)|)(|)', found: '(|(|))(|)'