QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#308148 | #4824. Bracket-and-bar Sequences | ucup-team2818# | 0 | 1ms | 3732kb | C++14 | 3.9kb | 2024-01-19 16:50:32 | 2024-01-19 16:50:32 |
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: 3616kb
input:
encode 3 1 (|) 4 ((((|)|)|)|) 5 (|(|))((|(|))|)
output:
1 1 208
input:
decode 3 1 1 4 1 5 208
output:
(|) ((((|)|)|)|) (|(|))((|(|))|)
result:
ok 3 lines
Test #2:
score: 100
Accepted
time: 0ms
memory: 3628kb
input:
encode 1 1 (|)
output:
1
input:
decode 1 1 1
output:
(|)
result:
ok single line: '(|)'
Test #3:
score: 100
Accepted
time: 0ms
memory: 3624kb
input:
encode 3 2 ((|)|) 1 (|) 2 (|(|))
output:
1 1 2
input:
decode 3 2 1 1 1 2 2
output:
((|)|) (|) (|(|))
result:
ok 3 lines
Test #4:
score: 100
Accepted
time: 1ms
memory: 3648kb
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 11 10 9 8 7 6 5 4 3 2 1 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 36 31 39 38 37 35 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 13 7 17 12 6 16 15 14 11 10 9 8 5 4 3 2 1 273 272 271 270 269 268 267 266 265 264 263 262 261 260 259 258 254 249 257 256 255 253 252 251 250 248 247 246 245 2...
input:
decode 1000 3 12 3 11 3 10 3 9 3 8 3 7 3 6 3 5 3 4 3 3 3 2 3 1 4 55 4 54 4 53 4 52 4 51 4 50 4 49 4 48 4 47 4 46 4 45 4 44 4 43 4 42 4 41 4 40 4 36 4 31 4 39 4 38 4 37 4 35 4 34 4 33 4 32 4 30 4 29 4 28 4 27 4 26 4 25 4 24 4 23 4 22 4 21 4 20 4 19 4 18 4 13 4 7 4 17 4 12 4 6 4 16 4 15 4 14 4 11 4 10...
output:
(|)(|)(|) (|)(|(|)) (|)((|)|) (|(|))(|) (|(|)(|)) (|(|(|))) (|((|)|)) ((|)|)(|) ((|)|(|)) ((|)(|)|) ((|(|))|) (((|)|)|) (|)(|)(|)(|) (|)(|)(|(|)) (|)(|)((|)|) (|)(|(|))(|) (|)(|(|)(|)) (|)(|(|(|))) (|)(|((|)|)) (|)((|)|)(|) (|)((|)|(|)) (|)((|)(|)|) (|)((|(|))|) (|)(((|)|)|) (|(|))(|)(|) (|(|))(|(|)...
result:
ok 1000 lines
Test #5:
score: 100
Accepted
time: 1ms
memory: 3720kb
input:
encode 1000 6 (|((((|)|)|)|)(|)) 6 (|((|)(|)(|)|(|))) 6 (|((|)(|(|))|(|))) 6 (|((|)((|)|)|(|))) 6 (|((|(|))(|)|(|))) 6 (|((|(|)(|))|(|))) 6 (|((|(|(|)))|(|))) 6 (|((|((|)|))|(|))) 6 (|(((|)|)(|)|(|))) 6 (|(((|)|(|))|(|))) 6 (|(((|)(|)|)|(|))) 6 (|(((|(|))|)|(|))) 6 (|((((|)|)|)|(|))) 6 (|((|)(|)(|)(...
output:
709 813 807 800 780 774 767 759 738 732 725 717 708 812 811 810 806 805 804 803 799 798 797 796 795 779 778 777 773 766 758 772 771 770 765 764 763 762 757 756 755 754 753 737 736 735 731 730 729 728 724 716 707 723 715 706 722 721 720 714 713 712 711 705 704 703 702 701 700 699 698 697 696 695 694 ...
input:
decode 1000 6 709 6 813 6 807 6 800 6 780 6 774 6 767 6 759 6 738 6 732 6 725 6 717 6 708 6 812 6 811 6 810 6 806 6 805 6 804 6 803 6 799 6 798 6 797 6 796 6 795 6 779 6 778 6 777 6 773 6 766 6 758 6 772 6 771 6 770 6 765 6 764 6 763 6 762 6 757 6 756 6 755 6 754 6 753 6 737 6 736 6 735 6 731 6 730 ...
output:
(|((((|)|)|)|)(|)) (|((|)(|)(|)|(|))) (|((|)(|(|))|(|))) (|((|)((|)|)|(|))) (|((|(|))(|)|(|))) (|((|(|)(|))|(|))) (|((|(|(|)))|(|))) (|((|((|)|))|(|))) (|(((|)|)(|)|(|))) (|(((|)|(|))|(|))) (|(((|)(|)|)|(|))) (|(((|(|))|)|(|))) (|((((|)|)|)|(|))) (|((|)(|)(|)(|)|)) (|((|)(|)(|(|))|)) (|((|)(|)((|)|)...
result:
ok 1000 lines
Test #6:
score: 0
Wrong Answer
time: 1ms
memory: 3732kb
input:
encode 1000 7 ((|)(|(|(|)(|)))|(|)) 7 ((|)(|(|)(|)(|))(|)|) 7 (|(|(|)((|)|))(|(|))) 7 ((|(|))|(|))(|(|))(|) 7 (|)((|(|)((|)|)(|))|) 7 (((|(|)(|))|((|)|))|) 7 ((|)((|(|))(|(|))|)|) 8 (|)(|)(|(|))((|((|)|))|) 7 ((|)|)((|)|)(((|)|)|) 7 (|)((|)|)(((|)|(|))|) 7 (|((|)|(|)))(|(|)(|)) 7 ((|)|(|(|)((|)|))(|...
output:
2768 2806 5360 2390 6668 581 2540 42943 3726 6976 4750 3412 43106 2686 5308 4647 5126 970 4917 3158 4768 4510 2720 55 1485 3709 7076 4441 1172 6596 226 5504 1872 6039 4024 2263 174 4768 983 7069 4746 6921 3536 5099 5683 5716 450 4404 6086 4468 184 3653 3306 6081 7405 145 2856 3475 4090 958 810 2108 ...
input:
decode 1000 7 2768 7 2806 7 5360 7 2390 7 6668 7 581 7 2540 8 42943 7 3726 7 6976 7 4750 7 3412 8 43106 7 2686 7 5308 7 4647 7 5126 7 970 7 4917 7 3158 7 4768 7 4510 7 2720 7 55 7 1485 7 3709 7 7076 7 4441 7 1172 7 6596 7 226 7 5504 7 1872 7 6039 7 4024 7 2263 7 174 7 4768 7 983 7 7069 7 4746 7 6921...
output:
((|)(|(|(|)(|)))|(|)) ((|)(|(|)(|)(|))(|)|) (|(|(|)((|)|))(|(|))) ((|(|))|(|))(|(|))(|) (|)((|(|)((|)|)(|))|) (((|(|)(|))|((|)|))|) ((|)((|(|))(|(|))|)|) (|)(|)(|(|))((|((|)|))|) ((|)|)((|)|)((|)|)(|) (|)((|)|)(((|)|)|)(|) (|((|)|(|)))(|(|))(|) ((|)|(|(|)((|)|)))(|) (|)(|)(|)((|)|(|))((|)|) ((|)((|)...
result:
wrong answer 9th lines differ - expected: '((|)|)((|)|)(((|)|)|)', found: '((|)|)((|)|)((|)|)(|)'