QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#326936#6715. Масив i ще кiлька масивiвHuangHanSheng10 2ms16076kbC++202.6kb2024-02-14 14:34:442024-02-14 14:34:45

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 7760kb

input:

1386 1
1386 469 323 431 584 1155 1198 288 253 696 1317 905 1037 1173 1267 116 736 810 417 332 802 293 171 489 1271 60 359 1360 591 572 243 224 705 1167 843 258 514 673 437 710 553 869 1119 1169 1326 771 1101 821 232 934 871 735 1113 902 1257 410 1077 45 685 769 560 1263 957 586 1126 429 975 1314 136...

output:

Yes
0Yes
-468 

result:

wrong output format Expected integer, but "0Yes" found

Subtask #2:

score: 0
Wrong Answer

Test #29:

score: 9
Accepted
time: 2ms
memory: 14096kb

input:

3049 4
733 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960...

output:

Yes
-1902 146 155 840 

result:

ok OK

Test #30:

score: -9
Wrong Answer
time: 2ms
memory: 8368kb

input:

8495 1
8495 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 ...

output:

Yes
0Yes
0 

result:

wrong output format Expected integer, but "0Yes" found

Subtask #3:

score: 0
Skipped

Dependency #1:

0%

Subtask #4:

score: 0
Wrong Answer

Test #86:

score: 0
Wrong Answer
time: 2ms
memory: 12056kb

input:

3772 3
1254 223 2897 775 861 899 1603 1491 1689 3529 3586 3560 2938 2621 2687 1075 3386 895 2982 2521 2265 2366 1861 20 3078 381 2794 2235 1849 3040 2978 3171 2072 2479 767 1437 1850 3044 725 3051 490 289 1728 248 1320 3107 3093 484 875 2658 1441 3438 2160 1945 803 2763 1245 3267 1581 1031 397 3437 ...

output:

Yes
-222 -2277 -993 

result:

wrong answer Participant returned incorrect sequence

Subtask #5:

score: 10
Accepted

Test #115:

score: 10
Accepted
time: 0ms
memory: 15948kb

input:

8968 5
580 961 963 965 967 969 971 973 975 977 979 981 983 985 987 989 991 993 995 997 999 1001 1003 1005 1007 1009 1011 1013 1015 1017 1019 1021 1023 1025 1027 1029 1031 1033 1035 1037 1039 1041 1043 1045 1047 1049 1051 1053 1055 1057 1059 1061 1063 1065 1067 1069 1071 1073 1075 1077 1079 1081 1083...

output:

Yes
-960 -930 3534 1122 1922 

result:

ok OK

Test #116:

score: 0
Accepted
time: 0ms
memory: 9740kb

input:

498 2
249 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 1...

output:

Yes
1 -1 

result:

ok OK

Test #117:

score: 0
Accepted
time: 2ms
memory: 15920kb

input:

9520 5
241 7803 7805 7807 7809 7811 7813 7815 7817 7819 7821 7823 7825 7827 7829 7831 7833 7835 7837 7839 7841 7843 7845 7847 7849 7851 7853 7855 7857 7859 7861 7863 7865 7867 7869 7871 7873 7875 7877 7879 7881 7883 7885 7887 7889 7891 7893 7895 7897 7899 7901 7903 7905 7907 7909 7911 7913 7915 7917...

output:

Yes
-7802 -1772 -2466 333 5512 

result:

ok OK

Test #118:

score: 0
Accepted
time: 2ms
memory: 14112kb

input:

7427 4
1379 1722 1724 1726 1728 1730 1732 1734 1736 1738 1740 1742 1744 1746 1748 1750 1752 1754 1756 1758 1760 1762 1764 1766 1768 1770 1772 1774 1776 1778 1780 1782 1784 1786 1788 1790 1792 1794 1796 1798 1800 1802 1804 1806 1808 1810 1812 1814 1816 1818 1820 1822 1824 1826 1828 1830 1832 1834 183...

output:

Yes
-1720 0 -630 2864 

result:

ok OK

Test #119:

score: 0
Accepted
time: 0ms
memory: 13868kb

input:

7708 4
2992 590 592 594 596 598 600 602 604 606 608 610 612 614 616 618 620 622 624 626 628 630 632 634 636 638 640 642 644 646 648 650 652 654 656 658 660 662 664 666 668 670 672 674 676 678 680 682 684 686 688 690 692 694 696 698 700 702 704 706 708 710 712 714 716 718 720 722 724 726 728 730 732 ...

output:

Yes
-589 -947 2906 1871 

result:

ok OK

Test #120:

score: 0
Accepted
time: 2ms
memory: 13864kb

input:

7435 4
2210 437 439 441 443 445 447 449 451 453 455 457 459 461 463 465 467 469 471 473 475 477 479 481 483 485 487 489 491 493 495 497 499 501 503 505 507 509 511 513 515 517 519 521 523 525 527 529 531 533 535 537 539 541 543 545 547 549 551 553 555 557 559 561 563 565 567 569 571 573 575 577 579 ...

output:

Yes
-435 -1775 641 1152 

result:

ok OK

Test #121:

score: 0
Accepted
time: 0ms
memory: 15856kb

input:

9982 5
4107 1385 1387 1389 1391 1393 1395 1397 1399 1401 1403 1405 1407 1409 1411 1413 1415 1417 1419 1421 1423 1425 1427 1429 1431 1433 1435 1437 1439 1441 1443 1445 1447 1449 1451 1453 1455 1457 1459 1461 1463 1465 1467 1469 1471 1473 1475 1477 1479 1481 1483 1485 1487 1489 1491 1493 1495 1497 149...

output:

Yes
-1383 6322 -3651 113 260 

result:

ok OK

Test #122:

score: 0
Accepted
time: 2ms
memory: 13808kb

input:

9978 4
673 1181 1183 1185 1187 1189 1191 1193 1195 1197 1199 1201 1203 1205 1207 1209 1211 1213 1215 1217 1219 1221 1223 1225 1227 1229 1231 1233 1235 1237 1239 1241 1243 1245 1247 1249 1251 1253 1255 1257 1259 1261 1263 1265 1267 1269 1271 1273 1275 1277 1279 1281 1283 1285 1287 1289 1291 1293 1295...

output:

Yes
-1180 1 -101 3626 

result:

ok OK

Test #123:

score: 0
Accepted
time: 2ms
memory: 13776kb

input:

9987 4
4262 567 569 571 573 575 577 579 581 583 585 587 589 591 593 595 597 599 601 603 605 607 609 611 613 615 617 619 621 623 625 627 629 631 633 635 637 639 641 643 645 647 649 651 653 655 657 659 661 663 665 667 669 671 673 675 677 679 681 683 685 687 689 691 693 695 697 699 701 703 705 707 709 ...

output:

Yes
-565 3953 -653 9047 

result:

ok OK

Test #124:

score: 0
Accepted
time: 2ms
memory: 15912kb

input:

9999 5
569 6301 6303 6305 6307 6309 6311 6313 6315 6317 6319 6321 6323 6325 6327 6329 6331 6333 6335 6337 6339 6341 6343 6345 6347 6349 6351 6353 6355 6357 6359 6361 6363 6365 6367 6369 6371 6373 6375 6377 6379 6381 6383 6385 6387 6389 6391 6393 6395 6397 6399 6401 6403 6405 6407 6409 6411 6413 6415...

output:

Yes
-6300 -2030 -2456 0 823 

result:

ok OK

Test #125:

score: 0
Accepted
time: 0ms
memory: 13860kb

input:

9997 4
72 3416 3418 3420 3422 3424 3426 3428 3430 3432 3434 3436 3438 3440 3442 3444 3446 3448 3450 3452 3454 3456 3458 3460 3462 3464 3466 3468 3470 3472 3474 3476 3478 3480 3482 3484 3486 3488 3490 3492 3494 3496 3498 3500 3502 3504 3506 3508 3510 3512 3514 3516 3518 3520 3522 3524 3526 3528 3530 ...

output:

Yes
-3414 -910 97 4492 

result:

ok OK

Test #126:

score: 0
Accepted
time: 1ms
memory: 13808kb

input:

191 4
28 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78
22 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119
95 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 ...

output:

Yes
-23 -20 -1 52 

result:

ok OK

Test #127:

score: 0
Accepted
time: 0ms
memory: 15852kb

input:

9962 5
4820 220 222 224 226 228 230 232 234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272 274 276 278 280 282 284 286 288 290 292 294 296 298 300 302 304 306 308 310 312 314 316 318 320 322 324 326 328 330 332 334 336 338 340 342 344 346 348 350 352 354 356 358 360 362 ...

output:

Yes
-219 -7493 -358 2034 6481 

result:

ok OK

Test #128:

score: 0
Accepted
time: 2ms
memory: 13808kb

input:

9998 4
3720 305 307 309 311 313 315 317 319 321 323 325 327 329 331 333 335 337 339 341 343 345 347 349 351 353 355 357 359 361 363 365 367 369 371 373 375 377 379 381 383 385 387 389 391 393 395 397 399 401 403 405 407 409 411 413 415 417 419 421 423 425 427 429 431 433 435 437 439 441 443 445 447 ...

output:

Yes
-303 6478 6038 -1 

result:

ok OK

Test #129:

score: 0
Accepted
time: 0ms
memory: 9768kb

input:

9964 2
4982 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171...

output:

Yes
1 -1 

result:

ok OK

Test #130:

score: 0
Accepted
time: 1ms
memory: 12064kb

input:

9976 3
4988 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 1...

output:

Yes
0 -2808 3271 

result:

ok OK

Test #131:

score: 0
Accepted
time: 2ms
memory: 13872kb

input:

9976 4
2732 1962 1964 1966 1968 1970 1972 1974 1976 1978 1980 1982 1984 1986 1988 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 2012 2014 2016 2018 2020 2022 2024 2026 2028 2030 2032 2034 2036 2038 2040 2042 2044 2046 2048 2050 2052 2054 2056 2058 2060 2062 2064 2066 2068 2070 2072 2074 207...

output:

Yes
-1961 1 2971 8890 

result:

ok OK

Test #132:

score: 0
Accepted
time: 0ms
memory: 14108kb

input:

9975 4
746 3849 3851 3853 3855 3857 3859 3861 3863 3865 3867 3869 3871 3873 3875 3877 3879 3881 3883 3885 3887 3889 3891 3893 3895 3897 3899 3901 3903 3905 3907 3909 3911 3913 3915 3917 3919 3921 3923 3925 3927 3929 3931 3933 3935 3937 3939 3941 3943 3945 3947 3949 3951 3953 3955 3957 3959 3961 3963...

output:

Yes
-3848 -3392 0 158 

result:

ok OK

Test #133:

score: 0
Accepted
time: 2ms
memory: 13900kb

input:

9976 4
2610 4116 4118 4120 4122 4124 4126 4128 4130 4132 4134 4136 4138 4140 4142 4144 4146 4148 4150 4152 4154 4156 4158 4160 4162 4164 4166 4168 4170 4172 4174 4176 4178 4180 4182 4184 4186 4188 4190 4192 4194 4196 4198 4200 4202 4204 4206 4208 4210 4212 4214 4216 4218 4220 4222 4224 4226 4228 423...

output:

Yes
-4115 4272 0 8066 

result:

ok OK

Test #134:

score: 0
Accepted
time: 2ms
memory: 12048kb

input:

9996 3
4998 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 1...

output:

Yes
0 -441 2579 

result:

ok OK

Test #135:

score: 0
Accepted
time: 0ms
memory: 15912kb

input:

9964 5
963 2568 2570 2572 2574 2576 2578 2580 2582 2584 2586 2588 2590 2592 2594 2596 2598 2600 2602 2604 2606 2608 2610 2612 2614 2616 2618 2620 2622 2624 2626 2628 2630 2632 2634 2636 2638 2640 2642 2644 2646 2648 2650 2652 2654 2656 2658 2660 2662 2664 2666 2668 2670 2672 2674 2676 2678 2680 2682...

output:

Yes
-2567 701 0 7783 8129 

result:

ok OK

Test #136:

score: 0
Accepted
time: 0ms
memory: 15912kb

input:

7795 5
597 5563 5565 5567 5569 5571 5573 5575 5577 5579 5581 5583 5585 5587 5589 5591 5593 5595 5597 5599 5601 5603 5605 5607 5609 5611 5613 5615 5617 5619 5621 5623 5625 5627 5629 5631 5633 5635 5637 5639 5641 5643 5645 5647 5649 5651 5653 5655 5657 5659 5661 5663 5665 5667 5669 5671 5673 5675 5677...

output:

Yes
-5562 454 -2060 4110 3118 

result:

ok OK

Test #137:

score: 0
Accepted
time: 0ms
memory: 12048kb

input:

4782 3
1746 984 986 988 990 992 994 996 998 1000 1002 1004 1006 1008 1010 1012 1014 1016 1018 1020 1022 1024 1026 1028 1030 1032 1034 1036 1038 1040 1042 1044 1046 1048 1050 1052 1054 1056 1058 1060 1062 1064 1066 1068 1070 1072 1074 1076 1078 1080 1082 1084 1086 1088 1090 1092 1094 1096 1098 1100 1...

output:

Yes
-983 0 1565 

result:

ok OK

Test #138:

score: 0
Accepted
time: 0ms
memory: 9804kb

input:

1338 2
669 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 17...

output:

Yes
0 -1 

result:

ok OK

Test #139:

score: 0
Accepted
time: 1ms
memory: 9712kb

input:

6514 2
3257 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171...

output:

Yes
1 0 

result:

ok OK

Test #140:

score: 0
Accepted
time: 2ms
memory: 15852kb

input:

330 5
81 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192 194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232 234 236 238...

output:

Yes
-91 -129 -34 32 136 

result:

ok OK

Test #141:

score: 0
Accepted
time: 0ms
memory: 13812kb

input:

8275 4
300 3285 3287 3289 3291 3293 3295 3297 3299 3301 3303 3305 3307 3309 3311 3313 3315 3317 3319 3321 3323 3325 3327 3329 3331 3333 3335 3337 3339 3341 3343 3345 3347 3349 3351 3353 3355 3357 3359 3361 3363 3365 3367 3369 3371 3373 3375 3377 3379 3381 3383 3385 3387 3389 3391 3393 3395 3397 3399...

output:

Yes
-3284 -1976 910 0 

result:

ok OK

Test #142:

score: 0
Accepted
time: 1ms
memory: 11708kb

input:

2722 3
1176 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173 175 177 179 181 183 185 187 189 191 193 195 197 199 201 203 205 207 209 211 213 215 217 219 221 223 225 227 229 231 233 235 237 239 241 243 245 247 249 251 253 255 257 259 261 263 265 267 269 271 273 275 277 279 281 ...

output:

Yes
-138 1 2004 

result:

ok OK

Subtask #6:

score: 0
Wrong Answer

Test #143:

score: 0
Wrong Answer
time: 1ms
memory: 9768kb

input:

3742 2
1894 1017 1390 2132 19 883 2503 942 3623 42 1099 1444 120 1109 692 2036 2442 3737 3037 582 118 1307 2904 737 2996 2591 2451 1252 1415 2954 862 914 2757 918 2090 190 1971 894 2207 1600 1272 1765 2704 1615 3625 804 1081 2039 651 3496 3475 496 2321 1169 547 1502 535 1256 3101 3069 2404 3399 239 ...

output:

Yes
-1016 -1160 

result:

wrong answer Participant returned incorrect sequence

Subtask #7:

score: 0
Wrong Answer

Test #172:

score: 0
Wrong Answer
time: 2ms
memory: 16076kb

input:

27 5
4 21 14 3 27
3 27 6 24
8 5 20 6 8 14 7 11 13
5 5 14 20 19 11
7 14 20 23 9 15 26 18

output:

Yes
-20 -22 3 11 7 

result:

wrong answer Participant returned incorrect sequence

Subtask #8:

score: 0
Skipped

Dependency #1:

0%