QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#735648 | #9564. Hey, Have You Seen My Kangaroo? | NailongGroup | WA | 490ms | 30888kb | C++14 | 5.4kb | 2024-11-11 21:06:00 | 2024-11-11 21:06:04 |
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: 3ms
memory: 14196kb
input:
3 3 6 ULDDRR 010 111 010
output:
-1 4 2 1 0 0 0 0 0
result:
ok 9 numbers
Test #2:
score: 0
Accepted
time: 4ms
memory: 15528kb
input:
3 3 6 ULDDRR 010 111 011
output:
7 4 2 1 1 0 0 0 0
result:
ok 9 numbers
Test #3:
score: 0
Accepted
time: 0ms
memory: 15124kb
input:
1 5 1 R 11111
output:
4 3 2 1 0
result:
ok 5 number(s): "4 3 2 1 0"
Test #4:
score: 0
Accepted
time: 456ms
memory: 29020kb
input:
1 200000 200 RDRLDRULURDLDRULLRULLRRULRULRDLLDLRUDDLRURLURLULDRUUURDLUDUDLLLLLURRDURLUDDRRLRRURUUDDLLDDUUUDUULRLRUDULRRUURUDDDDLULULLLLLLLLLLLUDURLURLRLLRRRURUURLUDULDUULRRLULLRUDRDRUUDDRUDRDLLDLURDDDURLUULDRRDLDD 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
output:
3999923 3999865 3999864 3999740 3999729 3999728 3999727 3999726 3999725 3999724 3999723 3999665 3999664 3999540 3999529 3999528 3999527 3999526 3999525 3999524 3999523 3999465 3999464 3999340 3999329 3999328 3999327 3999326 3999325 3999324 3999323 3999265 3999264 3999140 3999129 3999128 3999127 3999...
result:
ok 200000 numbers
Test #5:
score: 0
Accepted
time: 328ms
memory: 24576kb
input:
2 100000 200 UULDRDLURDLDDRDRDUULDLUUULLRURLUUDDDRURURLLRRUDLDDDUDDRRUUURDDULURURLRULLUDLULURUUDURLDRRRDULRDLRRLDUUUDDUUDUDRDRUDLDRRUDRDLDRDLDRRDLRRDRDLRRLUDUDRULLRRLDDLUDDULDRLLLDLURRDDULDDUDULLRRRUURLRRRLURDLRLU 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 384513 384490 384313 384290 384113 384090 383913 383890 383713 383690 383513 383490 383313 383290 383113 383090 382913 382890 382713 382690 382513 382490 382313 382290 382113 382090 381913 381890 381713 381690 381513 381490 381313 381290 381113 381090 380...
result:
ok 200000 numbers
Test #6:
score: 0
Accepted
time: 263ms
memory: 24148kb
input:
5 40000 200 URDDRRUDURLDLUUDUUDDLRRRURULURDRRURRURULUULRRLDLLDUURRDRUULRULULUDRURRRURDDLLDDRLLLUDUDLLDDULUUUULDLDUDLULLDRURRDRDULURLLLUDLRRRDRLUDDUURULURRRDLDRUDLURUUULDLURDDDRRLLLDLRRDLDLDRRURRRRDLRRLLULRRLDUULD 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
output:
1000036 999836 999636 999436 999236 999036 998836 998636 998436 998236 998036 997836 997636 997436 997236 997036 996836 996636 996436 996236 996036 995836 995636 995436 995236 995036 994836 994636 994436 994236 994036 993836 993636 993436 993236 993036 992836 992636 992436 992236 992036 991836 99163...
result:
ok 200000 numbers
Test #7:
score: 0
Accepted
time: 253ms
memory: 22920kb
input:
10 20000 200 UULRURURUDRUULRRRDDDULUURRDUURDLDLLURRDUDDRDULRDURLDDLRRRRRRURLLUUURURDDUDDLLRDRLDDDDRULDRLLDUDLLLUDRURLDDLRRULDRRLLRRRDLRUDDDRRLDLRUDRUUDDDLUDULLDLUDUDUUUDLLRUURRLRLLDLLLLRLLRRDRRLLUDDURDRRDDULLDDULR 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
output:
571658 571458 571258 571058 570858 570658 570458 570258 570058 569858 569658 569458 569258 569058 568858 568658 568458 568258 568058 567858 567658 567458 567258 567058 566858 566658 566458 566258 566058 565858 565658 565458 565258 565058 564858 564658 564458 564258 564058 563858 563658 563458 563258...
result:
ok 200000 numbers
Test #8:
score: 0
Accepted
time: 314ms
memory: 23280kb
input:
20 10000 200 UUDUUDRDLLLURLULDRULUDLRURRUUDLDLUURUDURDRUULULULUURRDDDLUDLLRDDLDULLDURLRRUULLRDULUUDDLRDLDRDLDULULRLLLLUDUUUDDLDLLRLUUDLURLULLURDDDLLLUDDDLRDULLUUDRLDLRDLRLURRUUDLRULURRLLLURRUDLDUDRLUDDRDUUULLDDUDL 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
output:
83411 83305 83211 83105 83011 82905 82811 82705 82611 82505 82411 82305 82211 82105 82011 81905 81811 81705 81611 81505 81411 81305 81211 81105 81011 80905 80811 80705 80611 80505 80411 80305 80211 80105 80011 79905 79811 79705 79611 79505 79411 79305 79211 79105 79011 78905 78811 78705 78611 78505 ...
result:
ok 200000 numbers
Test #9:
score: 0
Accepted
time: 408ms
memory: 25056kb
input:
50 4000 200 LUDLUULUUUDUDDUDRULLDDRDRDLDUDRUUDUUUDULDUURDUUDLRUDDDURURRRUDDRUDDRURURURUDLLLDRURLLRRURRLULDDLLURULRDURDDLURURDDURDDRURRDDDULUURLUDRRUULRLURUDULLRURUUDLRDDLULUDRULDRRLRRLURDLUDDRDRLRRDDULRULDLURRRUL 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
output:
53472 53272 53072 52872 52672 52472 52272 52072 51872 51672 51472 51272 51072 50872 50672 50472 50272 50072 49872 49672 49472 49272 49072 48872 48672 48472 48272 48072 47872 47672 47472 47272 47072 46872 46672 46472 46272 46072 45872 45672 45472 45272 45072 44872 44672 44472 44272 44072 43872 43672 ...
result:
ok 200000 numbers
Test #10:
score: 0
Accepted
time: 357ms
memory: 23396kb
input:
100 2000 200 UDULUDLDUUDDUDLURDRDLDDLLDRLLDUURUDLLUURLRLLRDLUUUURLLUDRRUDUDDLRLLLDDUUDDULRUUULLRRUUUUUDRLLUUUURDUDLUUDLUDDRRULRLRLUDLRLRRRLRULULLRLLURRUUUDRLRRRRLUURULURUUUUDURRDDDRLLLLULDUDRLDURUUDDRRRULULRLRDULD 10111111111111111111111111111111111111111111111111111111111111111110111111111100111111...
output:
-1 -1 47281 47081 46881 46681 46481 46281 46081 45881 45681 45481 45281 45081 44881 44681 44481 44281 44081 43881 43681 43481 43281 43081 42881 42681 42481 42281 42081 41881 41681 41481 41281 41081 40881 40681 40481 40281 40081 39881 39681 39481 39281 39081 38881 38681 38481 38281 38081 37881 37681 ...
result:
ok 200000 numbers
Test #11:
score: 0
Accepted
time: 370ms
memory: 23036kb
input:
200 1000 200 RLRDLDRDUDLRDULDLLURDULDLLDUDLULLLUUUDLRRRUDLUUUDDRLULRRLDLDLLDRLLLURDLDRRRLULUDDLUDUULULUULDRRURDDLUUULURULRUUDRRLRDULDUDRLDLRUDRLULLLLRLLDRDLDLRDUUUUUULUDLDRUDDUUDRLDRUDUUDLULLDDURLRULLRULDRLLRDLURR 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
output:
-1 10432 10232 10062 10032 9994 9887 9862 9832 9794 9687 9662 9632 9594 9487 9462 9432 9394 9287 9262 9232 9194 9087 9062 9032 8994 8887 8862 8832 8794 8687 8662 8632 8594 8487 8462 8432 8394 8287 8262 8232 8194 8135 8087 8062 8032 7994 7935 7887 7862 7832 7794 7736 7735 7687 7662 7632 7594 7553 753...
result:
ok 200000 numbers
Test #12:
score: 0
Accepted
time: 386ms
memory: 23984kb
input:
400 500 200 RULLRRRDLUDDRLDDRDLRLDLDLUUDRUDDULRDDLDULULLRUDULRLRLRUDURDRDDDLDRUDRLRDRLRDLULLLLRURRLRRULULDLDRDDULDDUULURLRLLDUUUUDDUDURLULRLDRLDDRULUDDLLRRDDULLDLURDLDRLLULRLRUULRLLLRULRUDLRRRLURUULLLDDDUDRDLRURD 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
output:
9541 9370 9369 9341 9244 9243 9170 9169 9141 9103 9044 9043 9039 9039 9022 8987 8970 8969 8960 8941 8903 8876 8865 8844 8843 8839 8839 8824 8822 8787 8770 8769 8760 8750 8741 8703 8676 8676 8665 8644 8643 8639 8639 8624 8622 8588 8587 8570 8569 8560 8550 8541 8503 8503 8476 8476 8465 8444 8443 8439 ...
result:
ok 200000 numbers
Test #13:
score: 0
Accepted
time: 370ms
memory: 24264kb
input:
447 447 200 LULRUURRDLDUDDRDRLDDUDLRLURUDLLDDLRLRDLURURRDRDDDRRDDLLDRDDDUDULLRLURLLURULLLLRUUULDRDRRDDULULRLURDDUDURDULUURRLDURURDDUDDDDURRLRLLDLULDRURDUUURLRULURUULURURUDDRDDDDLLRRLLLDRLRDDRRLDDRULLLLRURDRUULRUU 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 22650 22450 22250 22050 21850 21650 21450 21250 21050 20850 20650 20450 20250 ...
result:
ok 199809 numbers
Test #14:
score: 0
Accepted
time: 382ms
memory: 23376kb
input:
500 400 200 DUUDRULRRRULLDUDDULULLRRDUDRULDRUURUDLDLDDDDRDLDUDRLDLDDURUDDLDLLLRLURDRULDLRLDRRUDRRULURDLDDDLULRLLRRDLUDLLULUULLRLLUURLDDULLRRDDRULUDRRLRRDURLLLDRDRRRLUDUUDUDDLRUDUDLRLDRLURULUULDUDLLDURDLLDDLRLULLU 111111111111111111111111111111111111111111111111011111111111111111111111111111111111111...
output:
11256 11056 10856 10656 10456 10256 10056 9856 9656 9456 9256 9065 9056 8865 8856 8665 8656 8469 8465 8456 8269 8265 8256 8069 8065 8056 7918 7879 7869 7865 7856 7718 7679 7669 7665 7656 7518 7511 7479 7469 7465 7456 7434 7318 7311 7311 7279 7269 7265 7256 7234 7118 7111 7111 7094 7079 7069 7065 705...
result:
ok 200000 numbers
Test #15:
score: 0
Accepted
time: 394ms
memory: 24244kb
input:
1000 200 200 LRUURLUDLDRURRLRLDRDLURDRUDUULDRLULLLRURRURDLULDULDDUDUULRLRDRLRLUDURULRDLDDLUURULDURDLLRUUDURDLURDDDUDRURRDRUUUUDLRUULRDDRLULDURLRDURDLDRRULRURLRUDLRRUUDRRDDLLUULDDDRDLRURLDLRDDULDDDUUDDRURURDDLRRRDR 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 20999 20799 20599 20399 20199 19999 19799 19599 19399 19199 18999 18799 18599 18399 18199 17999 17799 17799 17599 ...
result:
ok 200000 numbers
Test #16:
score: 0
Accepted
time: 370ms
memory: 24096kb
input:
2000 100 200 LRLUUDDLLUURLDRUUDUDRRULRDRDURURLRLLLRDLULLDRRRULDUDRDDRRRDUUDDDRLLULDRULRDDLDUULRDUDLRUUUDRDLRLDDUDLLDLLUDDLDRLRLURURLRRRLUULLLDLRLULDRRRLURDRDLRUDDLLLLRUDRLRLLRUDRDLUDLDRDDDLDUDLRDUURDRDUDDDUUDURUUU 11111111111111111111111111111111111111111111111111111111111111111111101111111111111111...
output:
-1 -1 -1 -1 -1 41180 40980 40780 40580 40380 40180 39980 39780 39580 39380 39180 38980 38780 38580 38380 38180 37980 37780 37580 37380 37180 36980 36780 36580 36380 36180 35980 35780 35580 35380 35180 34980 34780 34580 34380 34180 33980 33780 33580 33380 33180 32980 32780 32580 32380 32180 31980 317...
result:
ok 200000 numbers
Test #17:
score: 0
Accepted
time: 392ms
memory: 24720kb
input:
4000 50 200 DRUDDUDULRURRULUUDLLUUURUURLLDUDRRUULULDLRRLUDURLRUDDLRRDLUDURUULRDRURUDUDRDLDUDLDURULURRLRRRDRDRRRDRDUDLUDRDUDLRLDDULLLLLUDRDLLUDRRRLUURDUULLRRLLRLDDLDRDDDUDLRRRURDRLLUDUUURLLDDLLRRLLDRUDRUULUULRURDR 11111111111111111111111111111111111111111111111111 111111111111111111111111111111111111...
output:
-1 112736 112536 112336 112136 111936 111736 111536 111336 111136 110936 110736 110536 110336 110136 109936 109736 109536 109336 109136 108936 108736 108536 108336 108136 107936 107736 107536 107336 107136 106936 106736 106536 106336 106136 105936 105736 105536 105336 105136 104936 104736 104536 104...
result:
ok 200000 numbers
Test #18:
score: 0
Accepted
time: 333ms
memory: 23384kb
input:
10000 20 200 UDLLURURULUUUDDLDRDRLDLRUULDLUUULUULLRRDUUDDLRDRRLUDUDLRRLUURLURRLULRRURLRRLLDLULUDRRDUUUDURRURLDDRRDRRDLDURDRLLURDDDDDURULRULULLUURLUDUUUUDDLURULRUDLUDDRLLUDRLDRRULUDRDUDRUDDDLLRRURULULDLLUDLLRUDRDRL 11111111111111111111 11111111111111111111 11111111111111111111 11111111111111111111 11...
output:
182271 182071 181871 181671 181471 181271 181071 180871 180671 180471 180271 180071 179871 179671 179471 179271 179071 178871 178671 178471 178271 178071 177871 177671 177471 177271 177071 176871 176671 176471 176271 176071 175871 175671 175471 175271 175071 174871 174671 174471 174271 174071 173871...
result:
ok 200000 numbers
Test #19:
score: 0
Accepted
time: 280ms
memory: 23060kb
input:
20000 10 200 RULRLRLLLRUUDLLDDUDUURUUUUDUUDDRDDUULRRLDRDDRRLUURRLUDUDURUDRUDLDLDDURLRDRRRRUDRDLRRRULLLDLRURRDUUURURUDUUUDLLLRDLDDDLRULUDDURRUUDDDLURLDURRRRDLLLDRUDDDULRRLRDURRDURDDUDDUDLDRLLLULLULRULULLRLUUDRLDLDL 1111111111 1111111111 1111111111 1111111111 1111111111 1111111111 1111111111 111111111...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok 200000 numbers
Test #20:
score: 0
Accepted
time: 277ms
memory: 24368kb
input:
40000 5 200 LDULRUULURUDRDLRUDUDURUUUDDRLUDDRUDUUUUDURUDUURDRLURLDURDUDRUULURUURRRRURRRLRLUUUULLLLDLDLRUUDDLDRLDURRRRUULDDLRRLRUUUDDRDRDRLLLLRDURLLLLDRRUULLDRLRULRURUDDURLDDRRRULUDULDULRDLDLRLRUUUDRLRRUUDLRULURRD 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 11111 111...
output:
444424 444224 444024 443824 443624 443424 443224 443024 442824 442624 442424 442224 442024 441824 441624 441424 441224 441024 440824 440624 440424 440224 440024 439824 439624 439424 439224 439024 438824 438624 438424 438224 438024 437824 437624 437424 437224 437024 436824 436624 436424 436224 436024...
result:
ok 200000 numbers
Test #21:
score: 0
Accepted
time: 335ms
memory: 26248kb
input:
100000 2 200 RRULURDRDDUULLLURURULUDRRDLULURRULUURDURDRRLDDRLRDLRLURRDDDRRDRLDDLUDRLUDDLLUDRLDRURLLDDLRURRRLLLLUULRULUDRRLLLLRLLUUULURDDDRRDRDULLLUULLRDDRUDUURRRLURURDLULURLURLDLRULUDDDRULRUDRLUDLDLLLUURDDLRLLULUU 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11...
output:
-1 -1 -1 -1 -1 -1 -1 829117 828917 828717 828517 828317 828117 827917 827717 827517 827317 827117 826917 826717 826517 826317 826117 825917 825717 825517 825317 825117 824917 824717 824517 824317 824117 823917 823717 823517 823317 823117 822917 822717 822517 822317 822117 821917 821717 821517 821317...
result:
ok 200000 numbers
Test #22:
score: -100
Wrong Answer
time: 490ms
memory: 30888kb
input:
200000 1 200 RUDRUUULRUDURLULRLLLRLDLLUURRLURRDDRLRLLDDUULDRURDLRRRLLLRRURURLDRUURLLRRRRLULLURLDULDLUURLLRUDLRRRRURLDRLLDDUUURDRUUULRLDRDLULRRUDRRDDDRLRDLUDLDUUULDDRUUDLULRDULLURUULLRULLUDDRDDLLRRUUUDULDLDRDLLDDDU 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
wrong answer 1st numbers differ - expected: '4444289', found: '-1'