QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#319249 | #4824. Bracket-and-bar Sequences | daoquanglinh2007 | 0 | 1ms | 3652kb | C++20 | 1.8kb | 2024-02-02 10:58:57 | 2024-02-02 10:58:57 |
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: 3652kb
input:
encode 3 1 (|) 4 ((((|)|)|)|) 5 (|(|))((|(|))|)
output:
1027 15369 365580
input:
decode 3 1 1027 4 15369 5 365580
output:
(|) ((((|)|)|)|) (|(|))((|(|))|)
result:
ok 3 lines
Test #2:
score: 100
Accepted
time: 0ms
memory: 3652kb
input:
encode 1 1 (|)
output:
1027
input:
decode 1 1 1027
output:
(|)
result:
ok single line: '(|)'
Test #3:
score: 100
Accepted
time: 0ms
memory: 3648kb
input:
encode 3 2 ((|)|) 1 (|) 2 (|(|))
output:
3077 1027 5125
input:
decode 3 2 3077 1 1027 2 5125
output:
((|)|) (|) (|(|))
result:
ok 3 lines
Test #4:
score: 0
Wrong Answer
time: 1ms
memory: 3612kb
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:
74761 41992 25608 37896 37896 21511 13319 35848 19463 19464 11271 7175 599052 336907 205835 304139 304139 173066 107530 287755 156682 156683 91146 58378 300043 168970 103434 300043 152586 144394 300043 168970 103434 152586 152586 87049 54281 144394 78857 78858 46089 29705 297995 166922 101386 150538...
input:
decode 1000 3 74761 3 41992 3 25608 3 37896 3 37896 3 21511 3 13319 3 35848 3 19463 3 19464 3 11271 3 7175 4 599052 4 336907 4 205835 4 304139 4 304139 4 173066 4 107530 4 287755 4 156682 4 156683 4 91146 4 58378 4 300043 4 168970 4 103434 4 300043 4 152586 4 144394 4 300043 4 168970 4 103434 4 1525...
output:
(|)(|)(|) (|)(|(|)) (|)((|)|) (|(|))(|) (|(|))(|) (|(|(|))) (|((|)|)) ((|)|)(|) ((|)|(|)) ((|)|(|)) ((|(|))|) (((|)|)|) (|)(|)(|)(|) (|)(|)(|(|)) (|)(|)((|)|) (|)(|(|))(|) (|)(|(|))(|) (|)(|(|(|))) (|)(|((|)|)) (|)((|)|)(|) (|)((|)|(|)) (|)((|)|(|)) (|)((|(|))|) (|)(((|)|)|) (|(|))(|)(|) (|(|))(|(|)...
result:
wrong answer 5th lines differ - expected: '(|(|)(|))', found: '(|(|))(|)'