QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#459777 | #5714. 涂色游戏 | guestxd | 30 | 98ms | 5160kb | C++14 | 974b | 2024-06-30 13:17:33 | 2024-06-30 13:17:34 |
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: 5
Accepted
time: 0ms
memory: 3616kb
input:
5 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0
output:
0 0 0 0 0
result:
ok 5 number(s): "0 0 0 0 0"
Test #2:
score: 5
Accepted
time: 1ms
memory: 3440kb
input:
5 1 1 1 1 1 398881 1 1 1 1 1 806506 1 1 1 1 1 872598 1 1 1 1 1 766964 1 1 1 1 1 351603
output:
398881 806506 872598 766964 351603
result:
ok 5 number(s): "398881 806506 872598 766964 351603"
Test #3:
score: 0
Wrong Answer
time: 1ms
memory: 3500kb
input:
5 1 10 20 1 7 360565 1 1 936489 1 7 685204 1 9 762005 1 6 891647 1 8 876489 1 7 216455 1 6 541465 1 8 283299 1 6 363325 1 5 966827 1 3 611215 1 10 21661 1 6 394128 1 6 775323 1 6 466147 1 8 671659 1 7 577168 1 9 295990 1 10 570498 1 10 20 1 2 739786 1 10 679369 1 2 624472 1 5 468249 1 2 325877 1 4 1...
output:
936489 0 611215 0 966827 466147 577168 671659 295990 570498 764136 325877 267557 824428 468249 157156 388269 681736 295990 622005 775640 148173 848982 604699 946384 55144 332960 980912 565753 5928 274266 720874 632610 612437 946384 577298 235204 788549 883390 91620 147892 722192 184839 977313 53...
result:
wrong answer 19th numbers differ - expected: '0', found: '295990'
Test #4:
score: 0
Wrong Answer
time: 91ms
memory: 5052kb
input:
5 1 100000 100000 1 83380 265928 1 4608 512040 1 89253 465041 1 21328 724278 1 90513 414283 1 60747 285335 1 17168 29065 1 99628 96527 1 48160 541605 1 70003 299307 1 88068 333883 1 91586 479865 1 85055 458796 1 49955 21708 1 95005 995483 1 4895 375161 1 97323 785715 1 65384 66461 1 84666 565728 1 3...
output:
0 0 733053 987255 489915 0 158372 0 770341 0 363821 562508 986726 63308 0 438355 592189 0 0 714354 0 0 0 281308 412703 0 0 0 978142 270587 0 59793 0 540830 54900 0 785910 678461 0 596913 0 0 863081 569277 0 0 390918 69293 0 0 139102 834195 0 64184 644632 0 765066 0 624561 0 752371 417980 0 194522 0 ...
result:
wrong answer 100004th numbers differ - expected: '0', found: '987255'
Test #5:
score: 0
Wrong Answer
time: 93ms
memory: 5044kb
input:
5 1 100000 100000 1 50893 201823 1 14939 96626 1 6682 923855 1 7682 672275 1 60416 275481 1 31963 608315 1 81656 181718 1 17019 442318 1 76367 124498 1 22952 742433 1 22534 497358 1 47933 26368 1 76019 474876 1 46026 231847 1 14559 389958 1 8817 898761 1 25606 559112 1 69994 843084 1 39450 754449 1 ...
output:
424824 542809 941762 790647 196455 0 864354 508053 0 0 631701 788180 0 565157 0 0 0 344711 0 677564 104341 476518 0 0 40787 0 506203 197545 0 0 445003 960616 0 0 268898 498961 859500 228344 590638 0 194177 0 0 996154 509775 379673 106013 0 0 393537 301109 850573 472580 0 833070 0 660065 0 0 642362 6...
result:
wrong answer 100002nd numbers differ - expected: '0', found: '542809'
Test #6:
score: 0
Wrong Answer
time: 95ms
memory: 5160kb
input:
5 1 100000 100000 0 1 536615 1 40580 889611 1 19878 332331 1 10842 322834 0 1 840308 0 1 126240 0 1 29628 0 1 163406 0 1 245418 1 3916 694852 1 43386 7166 0 1 317425 1 11153 457544 1 40193 760992 0 1 924662 0 1 923652 1 6554 727394 0 1 139657 0 1 607794 0 1 886810 1 80702 483880 1 7322 368003 1 9860...
output:
618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 267698 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371 991176 618371 618371 618371 618371 618371 618371 618371 618371 618371 618371...
result:
wrong answer 1st numbers differ - expected: '258136', found: '618371'
Test #7:
score: 5
Accepted
time: 1ms
memory: 3512kb
input:
5 10 10 20 1 8 673423 1 7 424605 1 3 312199 1 10 508140 1 3 162682 1 3 749375 1 5 313596 1 10 490876 1 4 738019 1 8 41418 1 5 615306 1 10 55191 1 10 652816 1 10 731603 1 8 868630 1 3 690804 1 8 689284 1 3 726192 1 4 566469 1 7 565702 10 10 20 1 6 944262 1 9 784565 1 1 701819 1 7 60163 1 2 242970 1 8...
output:
0 0 726192 566469 615306 0 565702 689284 0 731603 0 0 726192 566469 615306 0 565702 689284 0 731603 0 0 726192 566469 615306 0 565702 689284 0 731603 0 0 726192 566469 615306 0 565702 689284 0 731603 0 0 726192 566469 615306 0 565702 689284 0 731603 0 0 726192 566469 615306 0 565702 689284 0 73...
result:
ok 500 numbers
Test #8:
score: 5
Accepted
time: 1ms
memory: 3504kb
input:
5 50 50 100 1 27 862570 1 42 370629 1 21 785851 1 48 149276 1 17 579826 1 2 382417 1 26 862447 1 12 5430 1 44 971992 1 35 639843 1 32 802133 1 7 342897 1 7 270546 1 4 283584 1 3 326401 1 50 936050 1 27 387478 1 21 393261 1 6 33993 1 14 711965 1 27 80599 1 7 951663 1 19 446720 1 45 856663 1 10 580618...
output:
211771 696445 617676 362489 908000 924783 243330 970756 615557 199617 445541 461469 424798 660520 384471 0 810615 0 740328 520649 331714 953012 46738 0 0 374840 80599 0 0 412887 180203 196150 838947 298915 639843 0 205299 806304 0 389925 881969 370629 775160 206724 920696 524777 0 149276 750507 9360...
result:
ok 12500 numbers
Test #9:
score: 0
Wrong Answer
time: 1ms
memory: 3524kb
input:
5 50 50 100 0 7 356320 1 9 808256 1 37 280390 0 26 487750 1 40 397817 1 18 30200 0 34 631941 0 13 513584 1 6 739651 1 14 171785 0 11 136392 1 42 61932 1 48 386171 1 39 726242 0 33 754509 0 30 313532 0 39 702043 1 27 225612 1 11 550726 0 33 682314 1 39 625165 0 2 537042 1 9 145637 1 49 370858 1 10 51...
output:
557871 593352 837104 593352 593352 509672 275806 593352 462289 648033 550726 399708 96490 203772 593352 593352 268992 30200 835567 593352 906416 593352 593352 943829 438924 593352 225612 537366 200877 593352 573742 593352 593352 593352 593352 569422 280390 758134 625165 231343 240110 680964 593352 3...
result:
wrong answer 1st numbers differ - expected: '593352', found: '557871'
Test #10:
score: 0
Wrong Answer
time: 28ms
memory: 3460kb
input:
5 1000 500 2000 1 169 182585 1 484 603225 1 266 655192 1 240 964134 1 453 270585 1 149 378050 1 367 507423 1 267 275538 1 253 410546 1 316 294688 1 34 70653 1 214 66202 1 168 468400 1 382 725650 1 303 193247 1 276 951356 1 440 95234 1 308 609459 1 51 83891 1 384 525621 1 338 755187 1 279 973474 1 52...
output:
566311 84494 69307 315833 944797 506373 42846 25335 582201 630614 377034 989114 903209 66958 738249 865278 638450 863860 293854 844525 67775 356215 81764 442559 507883 227073 639007 103929 108146 358216 167931 187079 931004 807951 125814 927782 512882 27344 894929 659059 308357 261015 152908 584119 ...
result:
wrong answer 500330th numbers differ - expected: '0', found: '592729'
Test #11:
score: 0
Wrong Answer
time: 29ms
memory: 3516kb
input:
5 1000 500 2000 1 443 910212 1 236 58757 1 108 343399 1 80 498209 1 440 579804 1 425 533570 1 250 30365 0 200 58555 1 19 479093 0 720 772061 0 979 980538 0 777 653045 1 68 340650 1 363 563005 1 326 35813 0 495 699059 0 72 754208 1 333 519028 1 50 113857 1 312 409359 0 490 879744 0 379 440167 0 493 7...
output:
651302 634412 909471 713123 713123 713123 432208 865174 694700 907910 17994 713123 982075 450228 48437 700712 713123 279746 811229 229637 713123 782006 738639 411382 852281 663012 432852 713123 648004 283752 957782 713123 713123 492647 209504 545606 713123 461710 413184 935198 713123 315175 713123 7...
result:
wrong answer 1st numbers differ - expected: '713123', found: '651302'
Test #12:
score: 0
Wrong Answer
time: 20ms
memory: 3504kb
input:
5 1000 500 2000 0 858 737003 0 365 640928 0 200 262876 0 739 345071 1 474 503914 0 956 406250 1 92 209618 1 161 462769 0 3 133942 1 277 808952 0 323 841499 0 162 35232 0 898 911709 0 486 191287 1 234 729282 1 106 838056 0 284 563674 0 15 725333 1 218 699466 0 89 270139 1 154 460792 1 164 405458 0 61...
output:
187377 680829 430095 735796 249508 422358 64892 881008 187377 535397 174971 437891 839944 664178 187377 187377 187377 480185 187377 277794 594744 190479 179232 90017 377807 852132 160136 902604 686463 891937 631849 411758 760547 580172 641756 708684 683489 628792 447648 187377 888435 846888 958986 4...
result:
wrong answer 2nd numbers differ - expected: '187377', found: '680829'
Test #13:
score: 0
Wrong Answer
time: 77ms
memory: 3504kb
input:
5 1000 100 100000 1 60 257974 1 71 249378 1 62 838830 1 35 542391 1 15 968992 1 33 4931 1 61 41170 1 19 770164 1 82 23402 1 35 817253 1 3 437416 1 78 239094 0 242 498843 1 18 861326 1 89 605940 1 91 257284 1 1 423141 1 83 539139 1 87 201008 1 83 541414 1 89 430733 1 34 364188 0 354 104722 1 3 383896...
output:
77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 77535 ...
result:
wrong answer 1st numbers differ - expected: '364075', found: '77535'
Test #14:
score: 0
Wrong Answer
time: 57ms
memory: 3496kb
input:
5 100 1000 100000 0 93 732652 0 9 789780 0 78 716137 0 65 471050 0 63 866005 0 8 393091 0 63 503017 0 86 301425 0 27 40453 0 19 19895 0 2 502189 0 15 315276 1 463 1893 0 39 466005 0 39 935445 0 95 572841 0 53 317732 0 100 382680 0 11 271586 0 29 66489 0 10 268924 0 38 755582 0 90 752535 0 24 709860 ...
output:
426934 269895 471010 440925 188543 383757 633277 109885 565813 123491 732048 621179 485865 416973 147475 839683 802281 612203 61400 829351 502641 388814 898111 320701 819282 372930 237884 65734 804307 891577 474750 864053 91007 35016 642527 140041 915528 793239 313470 628353 606822 177164 127936 900...
result:
wrong answer 1st numbers differ - expected: '864053', found: '426934'
Test #15:
score: 5
Accepted
time: 44ms
memory: 5156kb
input:
5 100000 2 10 1 1 576142 1 2 569232 1 1 411332 1 1 425797 1 2 772959 1 2 392500 1 2 29726 1 2 397526 1 2 557717 1 2 755192 2 100000 10 1 45126 522729 1 4430 349308 1 34707 279447 1 38091 322134 1 57939 239598 1 63757 243024 1 77317 146768 1 97880 543942 1 87895 814260 1 79976 39530 500 500 4000 1 24...
output:
425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 425797 755192 ...
result:
ok 1000000 numbers
Test #16:
score: 5
Accepted
time: 43ms
memory: 5156kb
input:
5 100000 2 10 1 1 997591 1 1 669040 1 2 61059 1 2 675958 1 2 250917 1 1 393083 1 1 470847 1 1 902449 1 2 454358 1 1 229840 2 100000 10 1 313 426481 1 18851 514257 1 30541 506206 1 62638 379700 1 86845 108462 1 21799 672955 1 65155 699700 1 54535 598060 1 74075 672073 1 62479 515411 500 500 4000 1 24...
output:
229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 229840 454358 ...
result:
ok 1000000 numbers
Test #17:
score: 0
Wrong Answer
time: 34ms
memory: 5120kb
input:
5 100000 2 10 0 61756 74542 1 1 14170 1 2 734933 1 2 528717 0 58924 427327 0 90052 475534 1 1 154322 1 2 422891 0 41549 243766 1 2 238881 2 100000 10 1 63693 540875 1 97587 574403 1 43652 673060 0 2 492115 0 1 196173 0 2 134417 1 18700 956589 0 2 462355 0 1 901757 1 33430 209944 500 500 4000 0 366 4...
output:
154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 154322 238881 ...
result:
wrong answer 83097th numbers differ - expected: '243766', found: '154322'
Test #18:
score: 0
Wrong Answer
time: 37ms
memory: 5056kb
input:
5 100000 2 10 0 50841 853916 1 2 19940 1 1 422513 0 15754 191127 1 1 202011 0 3889 171453 0 47355 807718 1 1 355665 1 1 556910 1 2 650969 2 100000 10 1 32815 264556 1 70617 663577 1 35159 957457 0 1 328336 1 75537 444331 0 1 183745 1 45716 669353 0 2 280143 0 1 422266 0 2 677175 500 500 4000 1 74 97...
output:
556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 556910 650969 ...
result:
wrong answer 7777th numbers differ - expected: '556910', found: '171453'
Test #19:
score: 0
Wrong Answer
time: 91ms
memory: 5072kb
input:
5 100000 2 100000 0 50893 864543 1 2 141460 1 1 163742 1 2 380217 1 2 145635 1 1 544834 0 71428 446658 0 74 630549 0 1300 400669 0 40739 990371 1 1 960077 1 1 805870 1 2 610464 1 2 617795 1 2 211076 1 2 967317 1 2 847002 0 89154 55145 1 2 4862 0 7854 591523 0 1583 957901 0 22237 987646 0 62631 97105...
output:
209094 782509 983564 983564 449956 449956 209094 782509 209094 782509 431056 431056 209094 782509 209094 782509 812268 812268 209094 782509 772453 772453 694767 694767 209094 782509 209094 782509 543039 543039 209094 782509 216369 216369 209094 782509 860177 860177 209094 782509 ...
result:
wrong answer 3rd numbers differ - expected: '209094', found: '983564'
Test #20:
score: 0
Wrong Answer
time: 98ms
memory: 5000kb
input:
5 100000 2 100000 0 44074 669517 1 1 179998 1 1 852346 0 6142 69251 0 78111 912128 1 2 220273 1 1 645270 0 89337 597116 0 40558 251861 0 91758 366619 0 28093 658157 0 95114 369284 0 45929 895885 1 1 454015 1 1 48482 1 2 483717 1 2 517782 0 66924 335909 1 1 966843 1 1 621378 1 1 919304 0 54921 930287...
output:
233427 233427 497836 405766 856362 856362 497836 405766 25013 25013 938096 938096 497836 405766 497836 405766 497836 405766 90139 90139 463823 463823 497836 405766 497836 405766 612922 612922 497836 405766 497836 405766 248458 248458 51859 51859 537497 537497 497836 405766 497836...
result:
wrong answer 1st numbers differ - expected: '497836', found: '233427'