QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#330770 | #1505. Last Supper | ahihi1234 | 0 | 128ms | 141740kb | C++20 | 1.7kb | 2024-02-17 18:53:20 | 2024-02-17 18:53:22 |
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
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 8
Accepted
time: 58ms
memory: 138532kb
input:
4 2 65000 2 0 3 0
output:
1 0 0 1 0 0 2
input:
4 2 2 0 3 0 6 1 0 0 1 0 0
output:
P 1 P 2 E
result:
ok correct, Rmax = 6
Test #2:
score: 8
Accepted
time: 48ms
memory: 138584kb
input:
100 30 65000 45 82 25 65 47 7 92 0 58 76 9 73 90 82 21 65 9 83 52 9 17 89 13 64 58 79 55 21 75 70 58 49 88 86 19 99 8 41 2 77 72 33 49 97 50 3 34 69 32 70 86 15 87 50 73 74 79 95 14 19 52 19 70 10 76 15 85 81 5 22 35 35 21 6 58 87 82 3 30 45 13 30 19 41 14 67 52 45 13 76 20 5 38 77 63 75 46 87 21 51
output:
1 0 1 1 0 1 1 1 1 1 1 0 0 1 1 1 0 1 0 1 1 1 1 0 0 1 0 0 0 0 1 1 0 1 0 0 0 0 1 1 1 1 0 1 1 0 1 0 1 0 0 0 1 0 1 1 0 1 1 1 1 1 0 1 1 0 0 1 0 1 0 0 0 0 1 1 0 0 0 1 0 1 1 0 0 0 0 0 1 1 1 1 0 0 1 0 0 0 1 0 1 0 1 0 0 1 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2
input:
100 30 45 82 25 65 47 7 92 0 58 76 9 73 90 82 21 65 9 83 52 9 17 89 13 64 58 79 55 21 75 70 58 49 88 86 19 99 8 41 2 77 72 33 49 97 50 3 34 69 32 70 86 15 87 50 73 74 79 95 14 19 52 19 70 10 76 15 85 81 5 22 35 35 21 6 58 87 82 3 30 45 13 30 19 41 14 67 52 45 13 76 20 5 38 77 63 75 46 87 21 51 130 1...
output:
P 29 P 28 P 25 P 27 P 7 P 0 P 92 P 47 P 26 P 65 P 83 P 17 P 89 P 64 P 9 P 55 P 90 P 24 P 23 P 88 P 18 P 8 P 2 P 99 P 72 P 49 P 97 P 33 P 34 P 69 P 86 P 73 P 79 P 15 P 85 P 22 P 3 P 14 P 5 P 77 P 75 P 21 E
result:
ok correct, Rmax = 130
Test #3:
score: 8
Accepted
time: 40ms
memory: 140288kb
input:
5000 1234 65000 2156 1808 2425 808 4913 4077 2344 2112 99 1330 1667 4524 2791 2079 4732 1030 3828 969 628 3568 4335 4473 3265 2660 3009 3282 1040 3779 261 3125 1070 2782 4787 1837 2657 1956 3113 3961 4042 2529 361 388 384 2201 4649 3861 1523 4626 2820 3204 1776 3562 3893 157 3897 3648 2733 3436 1616...
output:
0 1 1 1 0 1 1 0 1 0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1 0 1 1 1 1 0 1 0 1 1 0 1 1 0 0 1 1 0 1 1 0 0 0 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 1 1 1 0 0 1 1 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 1 0 1 1 1 0 1 1 1 0 0 ...
input:
5000 1234 2156 1808 2425 808 4913 4077 2344 2112 99 1330 1667 4524 2791 2079 4732 1030 3828 969 628 3568 4335 4473 3265 2660 3009 3282 1040 3779 261 3125 1070 2782 4787 1837 2657 1956 3113 3961 4042 2529 361 388 384 2201 4649 3861 1523 4626 2820 3204 1776 3562 3893 157 3897 3648 2733 3436 1616 1058 ...
output:
P 1232 P 1231 P 1808 P 808 P 4913 P 1229 P 1225 P 1221 P 1330 P 1218 P 4524 P 2791 P 1216 P 1030 P 3828 P 3568 P 4732 P 1214 P 1213 P 1208 P 1207 P 1040 P 3779 P 1070 P 3282 P 1206 P 1837 P 1205 P 1956 P 1196 P 3961 P 1195 P 1190 P 1188 P 1187 P 1185 P 1184 P 1183 P 1182 P 3204 P 1178 P 1177 P 1176 ...
result:
ok correct, Rmax = 6234
Test #4:
score: 8
Accepted
time: 48ms
memory: 138636kb
input:
1000 999 65000 450 31 889 223 156 176 37 388 114 933 670 148 561 235 961 711 930 490 193 780 824 883 640 377 289 202 920 897 804 156 334 931 395 464 185 647 761 911 902 731 604 326 698 891 711 142 679 202 467 959 613 651 137 995 132 579 707 901 807 899 918 315 910 363 419 810 42 292 33 3 366 920 503...
output:
1 1 1 1 0 1 0 0 1 0 1 0 1 1 0 1 0 1 0 1 1 1 1 0 1 1 1 0 0 0 1 1 0 1 1 0 0 1 0 0 1 0 1 0 0 0 1 1 0 1 0 0 0 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 0 0 1 0 0 1 1 0 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 1 1 0 1 1 0 0 1 1 1 0 1 1 1 0 1 1 1 1 1 1 0 1 0 1 1 1 1 0 1 0 1 1 1 1 0 1 1 1 1 0 0 1 1 ...
input:
1000 999 450 31 889 223 156 176 37 388 114 933 670 148 561 235 961 711 930 490 193 780 824 883 640 377 289 202 920 897 804 156 334 931 395 464 185 647 761 911 902 731 604 326 698 891 711 142 679 202 467 959 613 651 137 995 132 579 707 901 807 899 918 315 910 363 419 810 42 292 33 3 366 920 503 910 3...
output:
P 64 E
result:
ok correct, Rmax = 1999
Test #5:
score: 0
Wrong Answer
time: 48ms
memory: 139268kb
input:
3000 8 65000 1103 1058 251 2358 2315 837 490 2969 1939 1939 2341 167 830 729 482 1136 1058 702 1886 2885 1642 1927 2209 2642 943 1912 2383 197 176 1927 409 904 1139 1136 929 1572 1912 1985 837 2424 1105 1053 2052 301 1945 75 667 1151 2209 813 1247 2726 177 2315 2052 1148 1912 2209 197 2726 482 2357 ...
output:
0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 1 1 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 1 0 1 0 1 1 0 0 1 0 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 0 0 1 0 0 0 1 0 1 1 1 0 0 0 1 0 0 0 0 1 1 0 1 0 1 0 1 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 1 1 1 0 0 1 0 0 0 0 1 1 1 0 0 1 0 0 1 1 0 0 1 0 0 1 0 1 0 0 1 1 0 0 0 0 ...
input:
3000 8 1103 1058 251 2358 2315 837 490 2969 1939 1939 2341 167 830 729 482 1136 1058 702 1886 2885 1642 1927 2209 2642 943 1912 2383 197 176 1927 409 904 1139 1136 929 1572 1912 1985 837 2424 1105 1053 2052 301 1945 75 667 1151 2209 813 1247 2726 177 2315 2052 1148 1912 2209 197 2726 482 2357 430 40...
output:
P 7 P 1103 P 6 P 251 P 2358 P 5 P 4 P 490 P 2969 P 3 P 2341 P 167 P 830 P 729 P 482 P 2 P 702 P 1886 P 2885 P 1642 P 1 P 0 P 2642 P 943 Putting back a color that is not on the scaffold
result:
wrong answer incorrect plan: failed on step 26
Subtask #2:
score: 0
Wrong Answer
Test #12:
score: 0
Wrong Answer
time: 54ms
memory: 139812kb
input:
10000 2000 2000000 5451 8333 6614 6013 8933 5291 4673 2423 1373 4369 6443 9253 4274 9813 1404 3960 7896 3621 5700 4193 4302 5955 7793 5650 5887 4827 8761 4162 3664 802 6193 1717 1760 677 1893 8480 486 5544 7521 8277 5347 5201 8364 596 1088 9041 9329 4868 3141 7279 5549 1111 754 55 8718 8854 7430 656...
output:
1 1 1 1 0 1 0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 0 0 1 1 1 0 0 0 0 0 1 1 1 0 1 1 1 1 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 0 0 1 1 1 1 0 0 1 0 0 1 1 1 1 0 1 0 1 0 1 0 1 0 0 1 1 1 0 0 0 0 0 1 1 0 0 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 0 1 1 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 0 1 0 0 1 1 1 0 1 1 0 1 1 1 ...
input:
10000 2000 5451 8333 6614 6013 8933 5291 4673 2423 1373 4369 6443 9253 4274 9813 1404 3960 7896 3621 5700 4193 4302 5955 7793 5650 5887 4827 8761 4162 3664 802 6193 1717 1760 677 1893 8480 486 5544 7521 8277 5347 5201 8364 596 1088 9041 9329 4868 3141 7279 5549 1111 754 55 8718 8854 7430 6563 4096 1...
output:
P 1998 P 1997 P 1988 P 6614 P 1987 P 8933 P 5291 P 1985 P 1373 P 4369 P 6443 P 9253 P 2423 P 1404 P 3960 P 7896 P 9813 P 1983 P 1978 P 1974 P 5955 P 1972 P 1969 P 5887 P 1968 P 1966 P 1965 P 802 P 677 P 486 P 1760 P 1717 P 8277 P 5347 P 6193 P 1088 P 596 P 1958 P 4868 P 1954 P 7279 P 5549 P 8718 P 1...
result:
wrong answer incorrect plan: failed on step 3078
Subtask #3:
score: 0
Wrong Answer
Test #22:
score: 9
Accepted
time: 96ms
memory: 141740kb
input:
80394 19021 1500000 72858 39151 63499 33072 48058 70885 51034 68453 51282 39279 36583 50232 45586 73715 50578 26059 67651 16908 63163 78449 68854 25125 72528 8350 19431 76913 65901 29633 11242 23714 51866 33698 53417 20066 74345 34798 46875 41956 13453 28693 52922 71783 11012 40345 61115 31634 34380...
output:
1 1 0 1 0 1 0 1 1 1 1 1 1 1 1 0 0 1 0 1 1 1 0 1 1 1 1 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 1 1 0 0 0 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1 1 0 1 1 1 1 1 1 0 1 1 0 1 1 0 0 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 0 1 1 1 1 0 1 0 0 1 0 1 1 0 1 0 1 1 1 1 0 1 1 0 1 1 0 1 1 1 1 0 0 0 ...
input:
80394 19021 72858 39151 63499 33072 48058 70885 51034 68453 51282 39279 36583 50232 45586 73715 50578 26059 67651 16908 63163 78449 68854 25125 72528 8350 19431 76913 65901 29633 11242 23714 51866 33698 53417 20066 74345 34798 46875 41956 13453 28693 52922 71783 11012 40345 61115 31634 34380 491 780...
output:
P 19020 P 19019 P 19016 P 63499 P 19015 P 19009 P 70885 P 51034 P 68453 P 51282 P 19007 P 19003 P 19000 P 45586 P 18999 P 18997 P 18995 P 16908 P 67651 P 18990 P 18988 P 18986 P 18985 P 18983 P 18980 P 65901 P 29633 P 23714 P 51866 P 18976 P 18975 P 20066 P 74345 P 18974 P 18972 P 41956 P 28693 P 52...
result:
ok correct, Rmax = 99415
Test #23:
score: 9
Accepted
time: 128ms
memory: 140660kb
input:
100000 23843 1500000 32344 30023 39489 82866 65923 68597 97138 50695 73488 41227 69661 28890 63001 82574 32523 48120 26329 40973 57946 62565 43454 79295 9621 29333 91189 20045 93545 20861 42107 96993 42558 78999 58709 86238 25414 65991 33395 52912 725 9413 26964 1159 17899 33967 47782 71675 65657 54...
output:
1 1 1 0 1 1 1 0 1 0 1 0 1 1 1 1 1 0 0 0 0 0 1 0 1 1 1 0 0 1 1 1 1 1 0 1 1 0 0 0 0 1 1 1 0 0 1 1 0 0 1 1 1 1 1 0 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 1 1 1 1 1 1 1 0 1 1 1 0 0 1 0 0 0 1 1 1 1 1 0 0 1 0 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 0 0 1 1 0 0 0 0 0 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 1 0 1 1 0 1 1 0 0 0 1 0 0 1 ...
input:
100000 23843 32344 30023 39489 82866 65923 68597 97138 50695 73488 41227 69661 28890 63001 82574 32523 48120 26329 40973 57946 62565 43454 79295 9621 29333 91189 20045 93545 20861 42107 96993 42558 78999 58709 86238 25414 65991 33395 52912 725 9413 26964 1159 17899 33967 47782 71675 65657 54076 9451...
output:
P 23840 P 32344 P 23838 P 39489 P 23837 P 65923 P 23836 P 23835 P 23834 P 23833 P 23830 P 69661 P 23829 P 23828 P 82574 P 23824 P 23822 P 23819 P 23818 P 57946 P 62565 P 43454 P 79295 P 29333 P 23817 P 93545 P 42107 P 23815 P 23814 P 78999 P 58709 P 23812 P 23807 P 65991 P 23806 P 52912 P 26964 P 33...
result:
ok correct, Rmax = 123843
Test #24:
score: 9
Accepted
time: 124ms
memory: 140764kb
input:
99999 25000 1500000 50892 91158 1569 48669 4388 72285 1667 75388 81174 95006 63830 51937 60754 18667 70643 64790 64946 75728 78458 70589 3255 77262 32410 81235 1057 27665 6766 76361 54212 79546 39211 76096 34370 8729 40521 42677 8008 59160 96407 96613 2024 55121 4914 6252 99479 41974 51917 35757 835...
output:
0 1 1 1 1 0 0 1 0 1 0 0 1 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 1 0 1 1 0 0 1 1 0 1 0 0 1 1 0 0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 0 0 1 1 1 1 0 1 0 0 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 1 1 1 ...
input:
99999 25000 50892 91158 1569 48669 4388 72285 1667 75388 81174 95006 63830 51937 60754 18667 70643 64790 64946 75728 78458 70589 3255 77262 32410 81235 1057 27665 6766 76361 54212 79546 39211 76096 34370 8729 40521 42677 8008 59160 96407 96613 2024 55121 4914 6252 99479 41974 51917 35757 83528 30583...
output:
P 24997 P 24995 P 91158 P 4388 P 24993 P 24992 P 81174 P 95006 P 63830 P 24991 P 60754 P 24990 P 24987 P 64946 P 24986 P 78458 P 24984 P 24982 P 32410 P 1057 P 6766 P 24980 P 24977 P 24976 P 24975 P 24972 P 24970 P 24963 P 24961 P 59160 P 96407 P 24959 P 55121 P 99479 P 24958 P 51917 P 24957 P 83528...
result:
ok correct, Rmax = 124999
Test #25:
score: 9
Accepted
time: 122ms
memory: 140816kb
input:
100000 24911 1500000 97863 27884 90999 34010 43510 23870 19399 36422 31904 55081 59292 56925 89197 45455 20591 22728 50950 98730 35617 35795 22536 17438 32763 17508 88858 27007 26250 83108 43239 7315 17851 93544 11347 5280 95951 48461 33913 42003 8571 25914 41316 12722 29341 83280 54973 50785 44066 ...
output:
0 1 1 1 0 1 1 0 1 0 1 0 1 0 0 0 0 1 1 1 1 0 0 1 0 0 1 1 0 0 0 1 0 0 1 0 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 0 1 0 1 1 1 1 1 0 1 0 1 1 0 0 0 0 0 0 1 1 0 1 0 1 1 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 1 1 1 1 0 1 1 1 0 0 1 1 1 1 1 1 1 0 0 0 1 0 1 1 0 1 0 1 1 1 0 0 0 1 1 1 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 1 1 1 1 ...
input:
100000 24911 97863 27884 90999 34010 43510 23870 19399 36422 31904 55081 59292 56925 89197 45455 20591 22728 50950 98730 35617 35795 22536 17438 32763 17508 88858 27007 26250 83108 43239 7315 17851 93544 11347 5280 95951 48461 33913 42003 8571 25914 41316 12722 29341 83280 54973 50785 44066 48180 97...
output:
P 24907 P 24901 P 27884 P 24897 P 24892 P 23870 P 24889 P 24885 P 24884 P 59292 P 24882 P 24881 P 45455 P 24879 P 24875 P 24869 P 35795 P 32763 P 24867 P 24865 P 24861 P 83108 P 24859 P 24856 P 24855 P 24853 P 33913 P 24852 P 25914 P 41316 P 24846 P 24845 P 24843 P 50785 P 44066 P 24841 P 24840 P 24...
result:
ok correct, Rmax = 124911
Test #26:
score: 0
Wrong Answer
time: 86ms
memory: 140984kb
input:
98929 20000 1500000 67943 84994 10012 15611 49392 52643 5666 36629 59808 73371 35958 40094 5301 75645 27816 94017 21735 61358 96749 9222 27654 50710 71748 1678 98638 92969 86256 2247 63423 53551 8466 91596 27670 55136 40585 67343 40714 44102 557 14242 47771 16166 44695 19339 68890 72024 24097 95059 ...
output:
1 1 0 0 1 1 0 0 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 1 0 0 0 0 0 1 0 1 1 1 0 1 0 0 1 1 1 0 0 0 1 0 1 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 1 0 0 0 1 0 1 0 1 1 0 0 0 1 0 0 0 1 0 1 0 0 0 0 1 1 1 0 1 0 1 0 0 1 1 0 1 0 0 0 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 ...
input:
98929 20000 67943 84994 10012 15611 49392 52643 5666 36629 59808 73371 35958 40094 5301 75645 27816 94017 21735 61358 96749 9222 27654 50710 71748 1678 98638 92969 86256 2247 63423 53551 8466 91596 27670 55136 40585 67343 40714 44102 557 14242 47771 16166 44695 19339 68890 72024 24097 95059 78539 95...
output:
P 19998 P 19997 P 19996 P 49392 P 19993 P 19991 P 59808 P 19990 P 35958 P 19987 P 19986 P 27816 P 19985 P 19984 P 19983 P 19982 P 19981 P 19980 P 19978 P 19976 P 19974 P 19973 P 19971 P 19969 P 19968 P 19967 P 19966 P 19965 P 19963 P 19961 P 557 P 19960 P 19959 P 19958 P 19957 P 19955 P 19954 P 1995...
result:
wrong answer incorrect plan: failed on step 31944
Subtask #4:
score: 0
Wrong Answer
Test #32:
score: 35
Accepted
time: 42ms
memory: 138612kb
input:
4000 1192 10000 725 88 662 2834 3439 2402 52 606 1033 2124 2600 115 3859 2953 100 2209 2353 641 3833 1247 1971 3330 3754 1100 1734 2009 3397 1326 3455 3636 3203 3327 2403 1914 2815 850 2597 1969 2966 1382 2183 278 793 313 2368 2821 1158 3655 1454 442 2858 716 1115 3263 663 3497 2035 2102 1074 3319 1...
output:
0 1 1 1 0 1 0 1 0 1 0 0 1 1 0 1 1 0 1 1 0 1 0 0 0 1 1 1 1 1 1 0 1 1 0 1 1 0 0 1 0 1 1 1 0 1 1 1 1 0 1 0 1 1 0 0 0 1 1 1 1 1 0 1 1 1 0 1 0 1 1 1 1 0 0 0 0 1 1 0 1 0 1 1 1 0 1 1 1 1 0 1 1 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1 1 1 1 0 0 1 0 1 0 1 1 1 0 1 0 0 1 1 1 1 1 1 0 1 0 ...
input:
4000 1192 725 88 662 2834 3439 2402 52 606 1033 2124 2600 115 3859 2953 100 2209 2353 641 3833 1247 1971 3330 3754 1100 1734 2009 3397 1326 3455 3636 3203 3327 2403 1914 2815 850 2597 1969 2966 1382 2183 278 793 313 2368 2821 1158 3655 1454 442 2858 716 1115 3263 663 3497 2035 2102 1074 3319 1241 64...
output:
P 88 P 2834 P 3439 P 52 P 2124 P 115 P 2600 P 2953 P 1190 P 641 P 2353 P 1189 P 1971 P 1187 P 3754 P 1734 P 1186 P 1180 P 1176 P 3455 P 3636 P 1171 P 1170 P 2403 P 1168 P 1163 P 1162 P 1969 P 1161 P 1160 P 313 P 793 P 1158 P 3655 P 442 P 716 P 663 P 3497 P 2821 P 1074 P 1159 P 645 P 2223 P 1241 P 11...
result:
ok correct, Rmax = 5192
Test #33:
score: 35
Accepted
time: 62ms
memory: 138740kb
input:
5000 1200 10000 2503 3044 2409 3483 3120 3613 4803 3825 1878 4046 3527 852 4916 373 345 4040 4072 31 1160 1852 2048 4116 2856 3688 1236 2272 3137 4461 1222 2892 1712 2563 3479 4743 2045 3036 2729 4419 1231 1203 941 2832 2339 4740 853 613 2826 4090 889 4924 4176 1287 44 2727 2217 2977 1905 730 4113 4...
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 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
input:
5000 1200 2503 3044 2409 3483 3120 3613 4803 3825 1878 4046 3527 852 4916 373 345 4040 4072 31 1160 1852 2048 4116 2856 3688 1236 2272 3137 4461 1222 2892 1712 2563 3479 4743 2045 3036 2729 4419 1231 1203 941 2832 2339 4740 853 613 2826 4090 889 4924 4176 1287 44 2727 2217 2977 1905 730 4113 4848 44...
output:
P 61 P 2503 P 3044 P 2409 P 3483 P 3120 P 3613 P 4803 P 3825 P 1878 P 4046 P 852 P 345 P 4040 P 1160 P 1852 P 2048 P 4116 P 2856 P 3688 P 1236 P 2272 P 3137 P 4461 P 1222 P 2892 P 1712 P 2563 P 3479 P 4743 P 2045 P 3036 P 2729 P 4419 P 1231 P 941 P 2832 P 2339 P 613 P 2826 P 889 P 4924 P 4176 P 44 P...
result:
ok correct, Rmax = 6200
Test #34:
score: 0
Wrong Answer
time: 46ms
memory: 138420kb
input:
5000 30 10000 1187 1937 530 2101 2260 535 1097 4813 4455 1094 201 2257 1810 3124 2640 3591 2725 1205 1275 4309 2518 4154 2730 3567 506 22 657 2084 616 96 1229 4488 1610 2030 828 1688 4405 548 3364 4588 2846 1717 3531 205 164 118 1898 2238 3676 3448 4454 4343 4327 3754 370 3308 135 4137 4989 3937 43 ...
output:
0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
input:
5000 30 1187 1937 530 2101 2260 535 1097 4813 4455 1094 201 2257 1810 3124 2640 3591 2725 1205 1275 4309 2518 4154 2730 3567 506 22 657 2084 616 96 1229 4488 1610 2030 828 1688 4405 548 3364 4588 2846 1717 3531 205 164 118 1898 2238 3676 3448 4454 4343 4327 3754 370 3308 135 4137 4989 3937 43 4367 1...
output:
P 28 P 27 P 26 P 25 P 24 P 23 P 21 P 20 P 19 P 18 P 16 P 13 P 12 P 11 P 10 P 9 P 8 P 7 P 6 P 5 P 4 P 3 P 0 P 2730 P 3567 Putting back a color that is not on the scaffold
result:
wrong answer incorrect plan: failed on step 26
Subtask #5:
score: 0
Wrong Answer
Test #42:
score: 0
Wrong Answer
time: 78ms
memory: 141732kb
input:
100000 20000 1800000 21950 25220 44873 58672 9201 82569 27154 3312 82627 39771 91142 63204 25601 99930 17095 56663 30188 5056 9784 62200 19645 67214 53098 39607 83027 93403 1986 19889 23908 33429 29687 58256 98136 67907 18950 50288 33509 12296 17883 61477 14065 14037 29485 46063 18544 64149 52349 21...
output:
1 1 0 0 0 1 1 1 1 0 0 1 1 1 0 1 1 0 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 1 1 1 1 0 1 0 1 0 1 1 1 1 1 1 0 1 1 0 1 0 1 0 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 0 1 1 0 1 1 1 1 1 0 0 0 1 1 1 1 1 0 1 1 0 0 0 1 1 1 0 1 0 1 1 1 0 0 0 0 0 1 1 0 1 1 1 0 1 1 1 1 1 1 0 1 1 ...
input:
100000 20000 21950 25220 44873 58672 9201 82569 27154 3312 82627 39771 91142 63204 25601 99930 17095 56663 30188 5056 9784 62200 19645 67214 53098 39607 83027 93403 1986 19889 23908 33429 29687 58256 98136 67907 18950 50288 33509 12296 17883 61477 14065 14037 29485 46063 18544 64149 52349 21491 4037...
output:
P 19999 P 21950 P 19997 P 19994 P 19992 P 19991 P 3312 P 27154 P 19985 P 91142 P 19979 P 19971 P 19965 P 56663 P 5056 P 30188 P 67214 P 53098 P 39607 P 19959 P 1986 P 23908 P 33429 P 29687 P 19956 P 19947 P 19946 P 19945 P 17883 P 61477 P 33509 P 18544 P 19942 P 19941 P 19940 P 19929 P 74765 P 62167...
result:
wrong answer incorrect plan: failed on step 33330