QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#326872 | #6715. Масив i ще кiлька масивiв | ZhangYiDe | 100 ✓ | 3ms | 3832kb | C++14 | 965b | 2024-02-14 11:50:58 | 2024-02-14 11:50:59 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Subtask #1:
score: 8
Accepted
Test #1:
score: 8
Accepted
time: 1ms
memory: 3692kb
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 0
result:
ok OK
Test #2:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
566 1 566 421 157 195 92 361 217 115 270 411 465 87 16 356 540 538 173 359 481 207 93 228 131 268 482 109 461 317 307 299 9 174 418 342 262 551 25 407 147 201 374 187 57 466 100 165 515 105 456 408 89 487 488 504 471 280 265 15 211 524 332 446 28 253 197 202 309 156 151 322 395 326 503 110 489 337 4...
output:
Yes 0
result:
ok OK
Test #3:
score: 0
Accepted
time: 1ms
memory: 3756kb
input:
5733 1 5733 3725 4275 1236 3517 3169 1915 437 4735 2910 4575 1084 780 4009 5338 3469 5079 4880 4685 4531 4595 664 4091 1590 5229 2300 3516 5275 1773 5090 4392 5448 2796 1898 2461 1615 1490 1634 4351 322 4016 5234 3515 2237 1416 4481 1772 2815 1061 4992 110 903 4420 1559 5081 345 1776 4428 2425 4969 ...
output:
No
result:
ok OK
Test #4:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
1433 1 1433 882 1025 860 1411 119 377 248 613 597 560 778 124 1354 972 476 301 1103 1117 189 863 502 1368 337 730 375 1188 404 1044 81 779 630 863 670 331 352 1176 502 1279 369 1176 888 375 550 52 665 369 761 255 150 870 58 78 414 76 1264 116 572 911 564 291 44 213 219 1144 442 330 208 217 968 63 65...
output:
No
result:
ok OK
Test #5:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
4181 1 4181 2019 4130 3534 207 530 2691 2058 3621 3415 583 1 3214 3061 1444 945 1562 3736 3890 3680 3791 3066 1497 334 1977 4003 3784 3879 2522 1278 62 2362 2885 2372 2883 2467 2900 2957 2321 635 3564 3479 1034 300 743 2295 1050 18 1433 2561 2711 3743 541 3996 3303 2420 3184 4016 3855 1827 272 547 3...
output:
No
result:
ok OK
Test #6:
score: 0
Accepted
time: 2ms
memory: 3748kb
input:
9640 1 9640 2094 8871 6582 3278 4454 3547 914 8933 3181 4990 1440 2705 4827 5073 868 3901 1048 2129 8450 9493 3941 7970 9282 4904 9500 4221 66 7915 4884 5282 6503 3576 4434 828 290 5906 3368 6028 1337 4474 5827 4606 1970 3433 3960 6211 3777 2892 2522 4340 2216 7588 2368 4987 7650 8761 756 8467 2409 ...
output:
No
result:
ok OK
Test #7:
score: 0
Accepted
time: 2ms
memory: 3808kb
input:
9971 1 9971 1802 3187 6312 4411 936 8563 1625 7320 6609 9143 3919 1740 5934 2671 1828 7474 5943 6620 8342 4546 6543 647 7520 3746 3777 3844 6852 1344 8877 6242 2641 7947 7263 865 9572 7769 124 8989 1715 4136 5883 6829 5597 3177 8748 9686 1764 1543 401 2697 8775 9679 3873 1580 1473 3437 822 2955 2152...
output:
Yes 0
result:
ok OK
Test #8:
score: 0
Accepted
time: 2ms
memory: 3756kb
input:
9968 1 9968 8674 5985 6289 659 9858 4210 2242 7170 2352 9017 322 6131 5040 2568 6219 7214 5457 6875 1228 3508 282 7583 4887 3425 4462 7361 4006 4541 4929 1382 1254 3263 8610 1210 6057 4195 608 1506 5340 215 7435 2567 7615 319 6797 3109 6196 2886 8777 2395 7647 6655 1800 4390 5077 4156 2774 8393 4075...
output:
Yes 0
result:
ok OK
Test #9:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
9967 1 9967 2628 2873 4697 2199 4101 8183 2277 3566 6923 9357 4573 4036 547 4268 4388 1786 1247 8886 5027 3671 8393 4570 3338 4054 5345 1923 6187 6709 1069 8055 2201 710 4282 4893 7661 7133 4351 2333 250 6832 8564 3430 4660 4005 1298 7225 3003 1227 2784 1532 1738 4970 8504 5482 7167 5239 8209 8079 4...
output:
Yes 0
result:
ok OK
Test #10:
score: 0
Accepted
time: 2ms
memory: 3728kb
input:
9990 1 9990 9510 1644 1283 9283 4520 8213 250 9481 3028 1606 1936 1560 3766 8877 5149 6604 8052 735 1309 4098 2488 2760 2602 1279 1624 1144 5954 5470 6158 2364 6174 7011 6424 9921 1873 4390 3512 2385 4693 9732 6006 5602 4601 8265 8756 9901 7772 1859 7533 3369 2545 7667 554 1377 7028 6821 437 8279 33...
output:
Yes 0
result:
ok OK
Test #11:
score: 0
Accepted
time: 2ms
memory: 3744kb
input:
9988 1 9988 6464 6 5191 72 3815 9297 4651 7801 9658 3028 3765 7067 8690 6044 1040 7688 8943 5928 1094 2590 8906 6285 7738 2451 1507 5252 6549 4544 9709 6378 828 9244 8329 153 6573 7728 5760 7813 6470 4481 2654 4786 9115 100 1098 9021 7992 1001 1682 1424 1147 226 8545 823 4334 645 4717 8390 1488 9738...
output:
Yes 0
result:
ok OK
Test #12:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
4382 1 4382 59 4027 490 2935 3990 1526 4013 566 3087 1635 835 1583 928 3090 1513 54 2792 1080 561 2196 964 3740 1279 2031 186 4232 1491 1114 1333 3530 4325 4146 4380 2154 1405 1579 2015 859 3672 2209 84 2243 2348 3616 4357 2962 392 902 3469 1314 1179 443 4328 2446 4163 3542 463 1149 4099 2268 1952 1...
output:
Yes 0
result:
ok OK
Test #13:
score: 0
Accepted
time: 2ms
memory: 3676kb
input:
9981 1 9981 827 8078 6905 577 955 5573 9401 2519 8127 9082 5003 7144 9541 3974 723 518 2220 3867 9025 3637 9439 9922 130 8045 9873 227 4666 575 2584 2392 2116 6689 9905 1237 9259 3691 9388 249 6330 814 4199 4644 9512 5772 9731 8726 8202 7470 467 2212 439 372 8427 8979 7499 4319 5968 6755 4307 8830 6...
output:
Yes 0
result:
ok OK
Test #14:
score: 0
Accepted
time: 2ms
memory: 3748kb
input:
9976 1 9976 306 1569 9384 8894 4620 4641 5283 4284 3550 4434 7624 5995 6360 7929 316 9337 7367 1421 3564 7486 6663 5525 8860 5369 6962 756 7598 3001 8255 5531 9204 9191 802 5640 8169 6361 2748 9288 5140 1321 6472 7054 289 5176 6389 7154 4571 8928 9417 9383 7868 6166 9723 3728 3825 1830 5027 531 2034...
output:
Yes 0
result:
ok OK
Test #15:
score: 0
Accepted
time: 2ms
memory: 3672kb
input:
9996 1 9996 7818 7181 7408 8396 1545 1975 2517 3135 8326 7020 6373 5783 8096 3868 3538 3872 469 1047 8439 2793 8429 6100 3252 4194 2190 8065 9489 8834 8825 3835 9247 749 2284 7736 1593 8828 4052 1350 1883 6977 7779 9637 3673 9855 1432 767 5419 9421 385 2707 1265 3577 4944 8468 740 2775 7170 7267 639...
output:
Yes 0
result:
ok OK
Test #16:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
9995 1 9995 7384 3730 5704 3450 5761 1878 4548 7992 1104 9390 4451 662 9747 6987 6279 233 2045 4066 8471 6558 3653 3640 6175 6278 885 385 229 7511 289 6380 149 108 6968 4568 1868 6088 5190 810 5316 184 9432 8692 3123 1041 4579 2028 8855 4456 5558 2307 5477 2868 1251 3957 3985 5640 2086 6023 53 6992 ...
output:
Yes 0
result:
ok OK
Test #17:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
9971 1 9971 2581 3803 5358 8716 7656 2210 966 3623 47 5528 7382 573 3405 7412 4754 5642 5298 1459 9110 822 9779 7871 5856 9494 3484 910 5806 7869 9606 7761 8702 9468 1989 8990 5970 9011 1278 2448 8376 1097 6944 8817 5506 1353 4226 5225 5401 6216 1280 6088 6464 6811 6135 7207 6260 1827 5625 9275 4242...
output:
Yes 0
result:
ok OK
Test #18:
score: 0
Accepted
time: 2ms
memory: 3784kb
input:
9964 1 9964 7392 4113 4433 2598 5055 8457 8110 5715 5264 4395 8230 3323 7964 9520 8086 4922 2958 788 297 3543 6398 2927 138 3501 1605 3189 4534 8641 281 2905 3058 2579 3746 5655 4702 4462 6006 5876 8005 4521 7239 4145 1416 7470 5813 8753 1781 9223 8045 9309 26 2527 2545 6603 8982 9043 1142 5703 9153...
output:
No
result:
ok OK
Test #19:
score: 0
Accepted
time: 2ms
memory: 3672kb
input:
9969 1 9969 2937 6113 1129 3018 6460 4369 9757 2134 8334 2157 6631 7138 7128 7100 465 1857 9057 7005 4759 9786 6140 9328 7829 5367 6669 1229 1263 1748 100 6268 6173 3740 8130 4894 3833 2703 7768 1791 4052 4682 8918 5876 4931 3411 9056 8885 7388 2562 4752 630 8678 4596 3321 6243 4015 5804 4621 8014 9...
output:
No
result:
ok OK
Test #20:
score: 0
Accepted
time: 2ms
memory: 3744kb
input:
9978 1 9978 9652 838 2357 974 9597 7530 4290 6410 6832 3835 4339 5288 6513 7049 9015 8347 9272 5172 5180 4492 8280 5580 5728 5021 3887 5689 8 110 9963 7738 2025 9056 1436 4780 2220 4240 5268 9716 8398 68 5430 5276 5929 5823 6236 2872 8082 4369 3427 4627 6701 4215 7990 5895 2375 1757 2005 6216 1341 9...
output:
No
result:
ok OK
Test #21:
score: 0
Accepted
time: 2ms
memory: 3676kb
input:
9991 1 9991 7085 6706 5161 6220 7699 2896 3566 8011 5420 4475 9975 2248 5860 905 3744 9069 3879 5451 2166 6827 1632 6034 8972 4055 2816 5946 6784 4677 2531 5876 3068 6366 5708 6097 1449 4556 7457 8998 2429 6579 3608 3433 9113 4053 3786 3895 753 4574 4944 7354 9017 1492 6911 8723 5244 9491 5178 7356 ...
output:
No
result:
ok OK
Test #22:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
2548 1 2548 1911 136 638 897 1966 1953 556 647 1486 1320 83 1345 1858 737 2323 1717 1646 1997 2029 167 2070 1703 588 156 1128 275 1452 587 651 1395 808 1634 2114 1216 591 360 1249 1184 1674 1478 2326 443 1099 1854 218 1769 2474 1354 1799 1645 2201 153 2184 2521 1544 2126 2125 2002 1176 1076 246 1434...
output:
Yes 0
result:
ok OK
Test #23:
score: 0
Accepted
time: 2ms
memory: 3832kb
input:
9965 1 9965 3822 3759 1798 6765 6519 1797 3279 4048 6056 3155 7349 7827 6425 1321 8990 2328 2911 598 3050 4371 35 4259 4061 9405 1384 3063 4750 9302 4564 1523 5316 6131 8459 1407 6946 675 9169 1370 2657 8287 6794 6970 3856 3900 1514 7346 4122 2913 8320 2973 373 5038 2925 3595 4684 8349 6646 62 6625 ...
output:
Yes 0
result:
ok OK
Test #24:
score: 0
Accepted
time: 2ms
memory: 3804kb
input:
8454 1 8454 5159 500 4872 6939 1281 1474 337 775 5639 4406 3941 523 1860 3650 4805 6353 3860 425 7470 6041 7559 4129 8010 2852 8386 202 7121 5450 7332 3067 1851 5361 863 6612 7600 2679 4026 194 5630 4513 2184 4596 1586 4957 2581 1939 1169 845 1043 1242 6786 1075 7996 7393 2717 464 1366 2202 4237 386...
output:
Yes 0
result:
ok OK
Test #25:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
3523 1 3523 1302 689 1681 2526 1724 2355 2722 3405 775 1669 959 974 1805 1481 3255 2842 1803 2178 670 3464 246 832 1919 989 2070 2899 5 1950 2514 665 2563 2830 844 1530 2023 2059 113 2578 2123 160 1544 489 1569 267 2350 2639 2595 3014 1174 282 2870 709 3159 1628 2359 351 1058 1503 706 1000 3171 702 ...
output:
Yes 0
result:
ok OK
Test #26:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
3058 1 3058 2446 1542 2645 1591 1354 1822 39 223 1422 2671 2660 458 148 2734 2226 2968 1172 848 2582 3052 1814 199 2236 1424 173 2266 668 631 2834 1483 2431 2871 2075 2477 2170 1178 2724 2345 283 1287 1415 1583 1016 913 2353 1096 1013 1984 60 2125 1062 886 202 1879 1680 2367 2403 612 270 1327 1621 9...
output:
Yes 0
result:
ok OK
Test #27:
score: 0
Accepted
time: 2ms
memory: 3676kb
input:
9862 1 9862 2348 6017 109 2893 6892 2440 4368 1809 845 6530 869 255 5665 9774 7160 5475 4981 6499 7892 9493 8801 1918 2580 3092 6662 9732 2897 2587 2847 5826 363 942 4307 5423 9792 7767 1678 1132 4481 6779 1647 5914 9609 7778 2774 5217 4792 2944 6300 1041 5522 9782 3883 6278 1037 5591 9048 324 7096 ...
output:
Yes 0
result:
ok OK
Test #28:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
3369 1 3369 692 805 1466 660 2959 2945 1644 2823 1194 2136 1669 2172 108 1823 3265 2930 1233 1673 2564 591 1802 1086 2603 570 2309 382 466 3208 1474 1524 619 2926 2251 3238 1512 2420 1368 2616 1866 389 637 1035 192 817 298 3081 1641 284 1717 597 904 2779 2632 2539 1370 300 1467 1043 2532 81 727 2810...
output:
Yes 0
result:
ok OK
Subtask #2:
score: 9
Accepted
Test #29:
score: 9
Accepted
time: 1ms
memory: 3584kb
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: 0
Accepted
time: 2ms
memory: 3632kb
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 0
result:
ok OK
Test #31:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
1239 2 1006 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 ...
output:
Yes -190 185
result:
ok OK
Test #32:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
1735 2 1000 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 ...
output:
Yes -480 336
result:
ok OK
Test #33:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
4397 2 475 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553...
output:
Yes -2495 419
result:
ok OK
Test #34:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
7348 2 6008 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 ...
output:
Yes -846 332
result:
ok OK
Test #35:
score: 0
Accepted
time: 2ms
memory: 3716kb
input:
9979 4 310 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451...
output:
Yes -7393 -866 -1442 548
result:
ok OK
Test #36:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
9980 3 547 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396...
output:
Yes -6338 -561 2783
result:
ok OK
Test #37:
score: 0
Accepted
time: 2ms
memory: 3656kb
input:
9990 5 5188 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 ...
output:
Yes -650 2131 1927 8338 9538
result:
ok OK
Test #38:
score: 0
Accepted
time: 2ms
memory: 3768kb
input:
9976 3 6145 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 206...
output:
Yes -2004 968 5646
result:
ok OK
Test #39:
score: 0
Accepted
time: 2ms
memory: 3708kb
input:
9974 5 1725 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 266...
output:
Yes -2609 1539 -2587 2399 3757
result:
ok OK
Test #40:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
1903 1 1903 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 0
result:
ok OK
Test #41:
score: 0
Accepted
time: 2ms
memory: 3760kb
input:
9969 4 3417 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 173...
output:
Yes -1675 -3558 1012 1734
result:
ok OK
Test #42:
score: 0
Accepted
time: 2ms
memory: 3708kb
input:
9965 5 1056 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 370...
output:
Yes -3646 870 -109 3649 6660
result:
ok OK
Test #43:
score: 0
Accepted
time: 2ms
memory: 3644kb
input:
9971 3 2378 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 584...
output:
Yes -5789 -2841 2287
result:
ok OK
Test #44:
score: 0
Accepted
time: 2ms
memory: 3716kb
input:
9971 5 1372 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 814...
output:
Yes -8087 -3881 270 4160 3571
result:
ok OK
Test #45:
score: 0
Accepted
time: 2ms
memory: 3816kb
input:
9998 1 9998 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 0
result:
ok OK
Test #46:
score: 0
Accepted
time: 2ms
memory: 3672kb
input:
9993 3 8914 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 ...
output:
Yes -518 -158 7574
result:
ok OK
Test #47:
score: 0
Accepted
time: 2ms
memory: 3732kb
input:
9990 2 3032 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 401...
output:
Yes -3959 1737
result:
ok OK
Test #48:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
9967 1 9967 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 0
result:
ok OK
Test #49:
score: 0
Accepted
time: 2ms
memory: 3724kb
input:
9965 3 8323 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 153...
output:
Yes -1472 3292 4047
result:
ok OK
Test #50:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
2276 3 123 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 8...
output:
Yes -789 -161 1500
result:
ok OK
Test #51:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
447 4 33 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 193 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226...
output:
Yes -350 -154 -163 168
result:
ok OK
Test #52:
score: 0
Accepted
time: 1ms
memory: 3764kb
input:
6541 2 4691 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 141...
output:
Yes -1359 2244
result:
ok OK
Test #53:
score: 0
Accepted
time: 2ms
memory: 3696kb
input:
9548 2 3931 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 145...
output:
Yes -1400 599
result:
ok OK
Test #54:
score: 0
Accepted
time: 2ms
memory: 3744kb
input:
8829 1 8829 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 0
result:
ok OK
Test #55:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
5071 5 1427 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 100 101 10...
output:
Yes -5 -1190 -141 -1333 95
result:
ok OK
Test #56:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
856 5 71 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 112 698...
output:
Yes -394 -626 -486 -267 33
result:
ok OK
Subtask #3:
score: 15
Accepted
Dependency #1:
100%
Accepted
Test #57:
score: 15
Accepted
time: 0ms
memory: 3572kb
input:
346 1 346 238 60 244 117 44 326 150 230 38 80 168 322 179 160 12 159 310 207 137 307 94 101 36 336 15 122 186 27 109 11 81 271 7 229 141 332 133 321 84 166 334 284 183 241 239 93 52 277 273 140 57 58 298 16 328 217 107 113 346 218 10 265 90 270 76 142 31 20 324 202 96 97 226 129 294 212 250 73 259 7...
output:
Yes 0
result:
ok OK
Test #58:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
9123 2 4567 3723 617 9031 6645 3406 864 632 7516 1885 4090 7096 3811 6863 163 1553 4408 3019 2180 1837 6006 4381 5668 2417 1715 3459 81 8497 5006 3237 4745 424 893 7704 5141 2869 3595 9104 1932 812 7071 3988 5240 4397 8177 1947 1610 6445 7776 2266 7422 4032 2723 7047 1396 4920 7538 7605 2011 7954 52...
output:
Yes 0 0
result:
ok OK
Test #59:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
1703 2 850 88 143 36 926 151 916 350 1456 1373 750 1590 757 248 1487 525 393 1416 102 1188 725 1601 1206 235 203 104 560 576 1611 1259 856 235 1450 1038 43 490 551 676 319 420 204 1170 1543 1330 763 1639 337 217 689 26 1007 612 708 1632 949 263 1162 245 79 1469 152 890 492 1372 1082 215 967 1534 220...
output:
No
result:
ok OK
Test #60:
score: 0
Accepted
time: 2ms
memory: 3652kb
input:
8147 2 4045 3833 6580 3718 1612 2174 2499 29 5539 5231 7473 7665 3012 2700 665 1464 5872 4434 3398 4042 3949 1456 3732 4087 7360 8077 4996 6397 6136 3319 6376 1217 4917 2641 3387 1265 4215 5421 7063 6285 576 5158 170 7544 464 2977 2895 4518 4749 3473 7715 3954 3682 3029 7942 6159 2371 5754 4160 4161...
output:
No
result:
ok OK
Test #61:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
4571 2 2262 2326 828 3389 2067 3018 4355 1502 3592 4382 4295 445 4149 2287 1990 3897 3613 1254 3310 3965 1365 3833 1291 3028 3430 1727 3741 393 209 4328 2661 3932 2609 709 3073 59 2768 1453 1322 2621 4357 1945 1911 1508 2777 1057 1820 3212 316 522 3893 1204 2249 1977 2242 1425 758 762 2745 2646 2104...
output:
No
result:
ok OK
Test #62:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
1304 1 1304 531 840 895 80 996 840 15 1188 189 331 215 289 875 752 1135 1187 1300 843 82 295 1041 542 893 647 400 136 769 1300 377 1081 105 470 231 634 875 1010 265 206 125 33 1105 45 1038 893 991 1041 1171 127 401 459 273 312 556 23 173 1209 488 273 469 1239 709 173 28 1286 431 66 525 1263 332 947 ...
output:
No
result:
ok OK
Test #63:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
9970 1 9970 7873 5479 5474 3977 2063 2139 4743 6470 34 6010 6123 6809 4458 4940 149 2405 8349 4770 5320 2947 532 3581 4751 4345 5344 442 466 3876 4003 6710 7238 8777 7993 7049 2707 8302 7746 7698 8626 3400 6544 5426 8383 9955 6849 4471 6875 5031 1816 9580 196 711 5801 1460 2877 9494 8740 8772 9778 5...
output:
Yes 0
result:
ok OK
Test #64:
score: 0
Accepted
time: 2ms
memory: 3784kb
input:
9975 2 4999 5934 223 4085 8061 8624 5151 5029 4905 9605 8531 9240 6441 1293 8992 5775 6954 2868 1145 9616 6812 3450 9920 8307 9963 7270 4835 3447 4736 314 2901 3010 7932 6823 5585 5253 5117 2265 8637 3266 7165 736 9455 7776 4339 9090 1432 5035 9617 9912 3040 3919 9543 6259 1990 3720 5597 1545 2419 3...
output:
Yes 0 2
result:
ok OK
Test #65:
score: 0
Accepted
time: 2ms
memory: 3728kb
input:
9968 2 4888 7819 3617 7531 6304 6774 2290 7833 4857 566 5191 381 314 6976 5300 2802 4155 2962 8745 7702 4187 9525 9086 3949 5293 8984 4739 1582 3166 5658 2215 8659 6535 505 6694 2332 4807 193 146 6388 502 4888 8767 6301 5462 398 4815 316 33 9537 6021 383 1443 4134 1705 104 2880 7740 5207 4570 4930 4...
output:
Yes -2 0
result:
ok OK
Test #66:
score: 0
Accepted
time: 2ms
memory: 3712kb
input:
9971 2 5021 4020 9433 7004 4190 6290 3123 8841 6838 2293 2100 1062 2536 2252 9907 7575 7733 5680 2857 5104 6415 5667 9539 5521 8803 6464 8773 8617 114 2729 1518 3269 3254 9010 7955 4885 7259 4838 6712 4633 1072 3573 8788 4826 1028 4956 1444 7088 1543 9101 8623 9946 3542 6746 8740 939 632 6528 2666 5...
output:
Yes 1 0
result:
ok OK
Test #67:
score: 0
Accepted
time: 2ms
memory: 3656kb
input:
9968 2 4905 8267 2066 6872 3713 5873 737 1976 5145 8759 4199 3862 8877 4726 1115 6932 8436 9564 3241 5951 2878 8324 8328 4975 5807 9948 4922 8513 6112 2370 2027 586 4148 9459 6407 7296 383 9528 92 595 9873 8893 3084 8340 463 4844 5669 9382 3754 2245 3214 1532 1447 3397 5713 6420 2053 4111 8923 7775 ...
output:
Yes 0 -1
result:
ok OK
Test #68:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
1854 1 1854 395 1761 516 1384 1543 138 399 14 1132 1107 427 1693 1796 448 795 55 1373 851 840 20 874 1405 1473 227 743 119 1260 1491 528 826 1267 1498 1787 213 1215 577 1336 488 500 159 1626 695 1827 815 738 652 237 103 379 857 1204 1138 1570 1691 231 1520 1246 1112 1530 204 1374 911 1824 1228 664 1...
output:
Yes 0
result:
ok OK
Test #69:
score: 0
Accepted
time: 2ms
memory: 3648kb
input:
9960 2 4967 9470 9134 6924 9183 5738 492 1525 6397 2588 8129 6865 9379 8817 3783 8574 5404 9227 3975 6577 2108 712 8991 9611 448 8635 9737 8618 7261 9515 1955 7431 1477 2367 8280 3100 7304 7273 9733 854 1421 6476 5441 4863 4966 4872 4167 693 6647 4031 699 9446 2094 9587 5880 2263 3859 5489 6523 1322...
output:
Yes -1 2
result:
ok OK
Test #70:
score: 0
Accepted
time: 2ms
memory: 3684kb
input:
9997 1 9997 154 9910 3381 101 5195 9889 7026 7529 7211 2514 6584 1361 3849 6171 67 2065 6932 5718 9322 4070 1737 5410 3325 5425 4056 2409 5952 5205 1604 8488 8716 865 6982 5829 5939 2995 5596 3093 8874 4485 4647 5840 6576 3634 6191 3468 8475 9743 9646 1897 130 6965 1150 3573 7254 800 8198 5500 2525 ...
output:
Yes 0
result:
ok OK
Test #71:
score: 0
Accepted
time: 2ms
memory: 3720kb
input:
9973 2 4910 8180 1988 6017 5863 5971 74 4301 1001 5455 6575 3037 5991 4622 2391 6881 812 4225 1271 7649 3687 9420 6060 1622 2687 6935 6534 9560 1736 8611 5754 2246 6244 8636 7498 1631 6726 8748 8156 6191 4829 4032 780 8159 3015 3286 9197 3517 1836 6108 7568 5704 4788 5243 3099 1254 3515 4577 1706 23...
output:
Yes -1 0
result:
ok OK
Test #72:
score: 0
Accepted
time: 2ms
memory: 3732kb
input:
9975 2 5005 8004 675 6161 4816 3565 30 9577 4252 2709 313 1457 8001 9818 7075 2565 3167 7302 3644 6283 6395 4233 7508 2695 6045 4797 278 9357 1754 135 9008 3757 3441 4343 3336 1757 2642 3775 2949 950 7090 3862 1064 9974 5755 3181 9032 1368 2656 5330 7394 7509 1975 4475 226 9167 7215 5901 788 8740 55...
output:
Yes -2 0
result:
ok OK
Test #73:
score: 0
Accepted
time: 2ms
memory: 3708kb
input:
9985 1 9985 6355 4309 472 949 5124 8158 239 1880 7277 8016 8262 2322 5923 4519 6288 7908 1017 4320 3002 3621 3994 9102 3826 8989 852 2631 7721 7026 2884 8397 1838 5049 4976 7715 7395 1803 2949 2465 9318 8429 4300 9804 1182 3563 2495 2085 3509 9712 8009 3861 6766 380 8735 5371 2354 2678 5800 8430 636...
output:
Yes 0
result:
ok OK
Test #74:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
9987 1 9987 7781 2979 4813 1539 642 567 4112 5192 9307 6886 1467 3579 5364 4621 2832 6343 848 8647 8871 7636 5 8204 9910 3498 1246 975 2357 3120 7328 4939 8062 7373 4077 967 604 6782 6384 7754 316 574 4702 4201 3837 5674 8169 1052 8042 1314 2532 3289 7714 231 8879 9727 3335 5398 9025 4305 7642 4551 ...
output:
No
result:
ok OK
Test #75:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
9988 2 4983 8114 1802 7431 472 5815 8884 1187 7353 8959 4948 2408 4091 1113 590 7189 5820 152 9012 1421 2404 2820 5855 9648 3260 8985 5334 3693 8075 75 464 1523 1139 4476 3806 3697 7986 485 5590 9812 5450 6038 8260 5207 972 3203 3753 2016 7445 4419 5472 6848 6990 3246 2441 4845 899 343 8526 3050 412...
output:
No
result:
ok OK
Test #76:
score: 0
Accepted
time: 2ms
memory: 3792kb
input:
9999 2 5021 2650 3964 9621 9504 63 8632 3368 5829 945 9195 370 5260 551 4342 409 4670 1100 1481 3635 4857 9082 7722 730 7274 485 9913 5654 3650 7390 9931 3480 1315 9859 1174 6770 4399 5632 281 5907 437 2692 2839 9813 9908 3598 8709 8498 9075 7180 4818 6777 3450 4554 7803 5165 2360 373 4853 4938 2911...
output:
No
result:
ok OK
Test #77:
score: 0
Accepted
time: 2ms
memory: 3740kb
input:
9960 1 9960 4186 3582 1931 4092 3996 8892 2037 4596 1725 2268 3641 2926 8901 2724 2282 8962 2622 991 6000 1431 9232 9046 1978 3621 1577 6960 299 5945 8012 2067 6276 993 1366 2480 5952 5822 6315 5182 6720 4103 6773 1159 295 2838 3383 3715 5641 5994 4965 6639 8266 1493 9755 6457 9447 1331 355 9009 345...
output:
No
result:
ok OK
Test #78:
score: 0
Accepted
time: 2ms
memory: 3680kb
input:
10000 2 9305 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395...
output:
Yes -323 1157
result:
ok OK
Test #79:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
2275 1 2275 1948 985 994 427 395 1763 1749 429 1028 1686 1107 2058 2037 170 718 48 1448 2109 5 659 963 1925 813 882 569 1034 1646 1532 1987 411 605 1175 1097 2189 1804 405 1910 1408 742 750 1642 1439 2258 2180 1235 743 1278 308 1218 1226 890 1986 1920 1036 27 216 1155 2006 1935 1349 473 647 306 944 ...
output:
Yes 0
result:
ok OK
Test #80:
score: 0
Accepted
time: 2ms
memory: 3780kb
input:
7005 1 7005 3320 3885 1715 2918 761 1639 6594 1328 6414 4945 2228 5291 5644 4411 1448 2981 6754 3589 5315 2043 6184 6600 2367 668 2281 638 1949 5471 939 3172 314 5842 6339 5114 5033 4324 6361 2063 3927 5344 3650 3783 3016 5499 1122 4304 2125 5237 2243 5620 5127 6235 6665 1118 4309 6825 4904 3385 246...
output:
Yes 0
result:
ok OK
Test #81:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
851 2 416 609 157 275 700 202 404 721 747 793 402 330 719 145 643 176 844 457 133 350 720 74 772 254 410 41 764 813 67 198 24 519 142 398 169 833 42 537 689 266 658 796 698 546 464 58 374 84 825 423 207 81 681 818 840 756 581 680 809 642 9 478 563 729 383 414 724 792 557 191 564 299 85 548 143 806 6...
output:
Yes 1 0
result:
ok OK
Test #82:
score: 0
Accepted
time: 2ms
memory: 3736kb
input:
8907 1 8907 6828 1704 5090 4807 460 4811 2098 4121 3746 8334 5969 1134 6186 364 5478 6630 8579 8257 6199 8732 663 940 957 6329 3410 423 7143 5861 3369 6017 2415 6345 2826 654 990 5666 7848 2575 8729 126 4782 6874 5953 5239 2206 113 1450 6223 6462 3060 4940 4136 270 6869 8828 4303 5261 6905 510 8748 ...
output:
Yes 0
result:
ok OK
Test #83:
score: 0
Accepted
time: 2ms
memory: 3808kb
input:
8442 1 8442 7848 4694 721 8192 5241 2320 4597 4086 5589 3241 2876 6746 2904 4916 6662 2457 4789 7454 4732 7730 7773 601 7759 3177 3797 2342 4506 3690 2600 6515 4143 3077 4963 4504 12 7590 4425 8254 2202 8011 6991 1332 1959 5829 2902 1166 895 717 1486 1915 400 3549 6460 3050 3334 6134 3575 5052 181 3...
output:
Yes 0
result:
ok OK
Test #84:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
3591 2 1796 3235 3268 1266 2016 2392 1010 1147 3079 1206 1689 2723 1937 2739 875 256 447 270 2038 10 1175 2237 999 2736 879 1712 676 3457 2030 1773 2258 903 3265 2478 2431 484 1167 3297 455 1528 3402 1438 907 1629 1021 3285 2931 3533 2832 3385 3568 1995 589 3472 596 1355 3374 2819 2958 708 3409 2360...
output:
Yes 0 -1
result:
ok OK
Test #85:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
1356 2 686 110 1172 809 284 1328 776 595 469 693 1326 37 1238 524 818 1223 672 749 352 24 7 27 223 780 290 393 187 1160 496 778 775 922 527 821 991 1052 62 1338 1246 1099 244 766 756 484 989 663 1285 651 395 953 1269 112 175 1167 193 1198 773 1030 1136 1187 948 1094 305 704 649 640 593 954 1095 1298...
output:
Yes -1 0
result:
ok OK
Subtask #4:
score: 21
Accepted
Test #86:
score: 21
Accepted
time: 1ms
memory: 3652kb
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 -3 4 0
result:
ok OK
Test #87:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
101 2 54 79 71 27 47 10 11 53 60 12 101 39 18 50 64 9 98 7 35 72 61 84 100 78 74 22 15 1 93 52 41 44 31 13 26 33 56 80 45 88 6 5 87 63 17 46 4 2 89 40 81 34 20 16 43 47 37 51 76 8 24 96 57 68 65 54 90 38 48 3 62 75 69 99 32 92 23 73 70 86 55 85 42 49 21 95 77 25 30 58 28 59 83 67 29 94 14 91 36 66 1...
output:
Yes 0 0
result:
ok OK
Test #88:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
2940 1 2940 1691 1244 1517 1921 2776 1217 277 916 2863 1828 1433 1835 2567 2176 2550 1503 878 2538 1496 2254 1305 23 420 654 1507 1066 1782 171 265 2884 94 1775 1663 2726 2638 2601 637 90 1787 619 2301 41 683 1852 1546 2825 112 450 2906 1332 2291 87 2788 2205 2075 2318 1646 2398 1734 2485 769 743 61...
output:
No
result:
ok OK
Test #89:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
4720 3 1580 1891 2632 220 1187 2923 256 3729 4375 280 853 759 203 1667 1917 1193 1593 1759 1909 3926 1147 664 1414 545 4043 2143 1673 4099 3571 1464 4311 3703 2276 54 785 376 3545 814 197 4693 3010 2103 193 1898 853 2966 2682 4483 338 1341 228 1012 3351 4447 2854 2967 1838 647 2992 439 1679 533 2634...
output:
No
result:
ok OK
Test #90:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
7243 2 3640 4536 4481 3816 3709 5541 6963 2936 5362 3210 784 6744 4768 6852 1058 2722 1569 1053 4838 6714 5941 388 7131 2510 2320 2770 7141 1168 4057 7174 408 1374 2907 6478 4955 6688 3430 3156 1974 1276 3743 1611 6874 1047 6509 6536 7097 1114 1273 1870 824 5375 5877 5260 249 85 3622 6817 3336 489 5...
output:
No
result:
ok OK
Test #91:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
5812 1 5812 1089 2606 317 1652 4286 1929 2450 2482 55 4085 1125 4262 160 630 2623 4559 3309 2923 4957 13 5691 4087 5233 137 36 3548 1858 1005 4213 3513 641 76 5770 4239 4239 2037 4159 3275 4255 690 2409 159 4167 1333 1023 5034 2114 4861 4735 2289 1866 4905 5577 5105 5108 408 3710 5443 5419 4629 3040...
output:
No
result:
ok OK
Test #92:
score: 0
Accepted
time: 2ms
memory: 3716kb
input:
9971 2 5023 6467 1291 1550 7080 761 3641 4308 8686 633 7494 2314 2387 6946 2905 9467 7328 1942 8357 1210 5131 9122 8473 2963 5750 1393 9816 7262 6230 6306 2032 5643 2125 7831 2082 4337 3696 7312 1465 5304 1771 2789 3454 8405 3320 7573 7074 469 5288 4048 7807 5962 6714 1874 7691 7030 2252 6377 1797 9...
output:
Yes 0 1
result:
ok OK
Test #93:
score: 0
Accepted
time: 2ms
memory: 3716kb
input:
9975 3 3270 4016 2888 757 4561 486 6092 5412 5247 9371 7897 5463 9345 4525 3063 3268 3884 9936 2263 5193 6930 8683 9659 652 6631 4823 9664 4938 2778 6458 1234 4704 4638 6794 3538 7467 2854 8518 9904 242 4138 5110 2026 7601 4400 2853 7651 9326 5545 291 1759 9228 4793 17 7265 3798 1782 2948 7106 6474 ...
output:
Yes -1 3 1
result:
ok OK
Test #94:
score: 0
Accepted
time: 2ms
memory: 3804kb
input:
9971 2 4941 6333 4438 9459 8962 1765 6576 8321 8715 3329 8988 183 7107 6628 6853 1515 312 9059 4419 4518 917 3305 9707 5766 5418 7063 1513 7028 7108 5607 2799 2622 6826 53 6606 2088 5793 2236 446 5808 3357 335 1419 3687 4869 5286 7707 2886 9879 3015 9854 468 5220 2228 5164 4437 8304 9458 827 5212 48...
output:
Yes 0 1
result:
ok OK
Test #95:
score: 0
Accepted
time: 2ms
memory: 3708kb
input:
9983 3 3379 3718 8606 3004 1261 202 4214 8896 8311 7858 4305 9628 2243 5253 1175 3270 3291 7879 8747 163 3640 5836 9322 8115 255 1289 1901 8353 9165 7414 5541 498 355 4146 7144 7575 5323 6825 4904 3275 5768 2569 7919 5082 9767 9002 8872 8887 204 5054 9145 3292 1927 5840 3305 2159 9417 9432 2661 4443...
output:
Yes 0 -3 -1
result:
ok OK
Test #96:
score: 0
Accepted
time: 2ms
memory: 3776kb
input:
9977 3 3302 2223 5733 2370 7601 1771 4355 7974 2613 1076 3139 8142 4704 7447 1009 8540 8545 8527 7856 3845 3787 5894 9786 4319 2335 7803 585 9779 906 5500 7495 3017 9893 192 363 6720 8753 9715 6721 3491 7982 8407 5107 7537 5760 4840 1251 5403 3496 2997 3114 8110 3140 2728 6815 4958 6377 6111 9065 73...
output:
Yes 1 -1 3
result:
ok OK
Test #97:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
410 2 224 90 263 65 150 77 30 85 374 261 257 251 155 221 141 117 273 324 213 282 8 372 381 176 311 294 343 353 398 166 222 48 5 305 315 32 206 348 107 118 152 185 15 36 270 310 401 177 211 148 299 122 265 284 307 303 371 164 54 16 91 56 316 252 165 217 370 280 162 151 173 365 62 143 198 55 274 399 2...
output:
Yes 2 0
result:
ok OK
Test #98:
score: 0
Accepted
time: 2ms
memory: 3716kb
input:
9966 2 5032 7839 6425 3512 6964 1467 3289 7334 2987 411 7612 4860 3214 3787 5987 7299 2195 2984 6395 7329 13 7881 4249 567 5073 5402 9461 6632 7975 3720 7797 8283 1290 2755 7042 9713 8379 4203 3015 6344 1354 7228 1023 8819 5051 2407 9486 6989 2231 8251 5712 4289 6000 5755 2189 7009 9791 2729 1768 84...
output:
Yes 0 1
result:
ok OK
Test #99:
score: 0
Accepted
time: 2ms
memory: 3704kb
input:
9999 3 3392 1128 5087 2959 8511 7368 6475 8360 1484 2484 3963 7795 7287 4673 2903 1852 2988 1757 4934 4633 6870 5274 8191 8278 597 7387 2501 1869 8518 4104 9719 7099 2142 5068 3485 2546 9770 4340 384 2817 6109 4173 6874 424 6746 5771 1912 8299 1248 172 3627 1617 2941 4575 6491 5599 6668 5737 7819 30...
output:
Yes -2 1 -3
result:
ok OK
Test #100:
score: 0
Accepted
time: 2ms
memory: 3756kb
input:
9974 1 9974 5255 6833 5872 4348 8411 2937 7554 3999 7728 5353 8393 3636 2427 3833 8868 8691 2759 1837 3654 5634 1269 5355 4199 2248 411 9349 1471 8379 6036 5710 8812 6537 6277 1152 4552 1017 6407 5199 4369 8815 489 3602 2151 5754 3550 848 9463 6094 4012 4711 9957 1503 8686 3510 6491 8409 3400 9783 3...
output:
Yes 0
result:
ok OK
Test #101:
score: 0
Accepted
time: 2ms
memory: 3788kb
input:
9976 3 3263 690 4608 836 3676 5591 4935 13 7693 7948 7464 997 3661 5704 8307 32 3357 6811 4409 3963 7557 6091 397 519 1665 4125 2927 5225 4382 8446 8449 800 7292 7189 7860 8259 7328 5853 7709 573 8316 35 1256 9301 9584 3084 1617 6154 7422 9294 9121 946 3360 9942 275 5543 2686 218 1251 473 6344 5406 ...
output:
Yes 0 0 0
result:
ok OK
Test #102:
score: 0
Accepted
time: 2ms
memory: 3716kb
input:
9997 3 3349 1570 550 6478 3251 2948 6924 9377 1053 8863 1179 4645 8366 8683 2271 2234 8836 7250 240 2171 3517 3330 3752 4252 4736 6370 3371 563 7857 1959 3193 3658 4436 582 2221 9144 211 5666 6410 3159 5574 2443 9378 4599 2083 8394 9802 507 9811 1464 5908 2297 161 3679 2621 6348 1251 1105 3122 1095 ...
output:
Yes 0 4 -1
result:
ok OK
Test #103:
score: 0
Accepted
time: 2ms
memory: 3788kb
input:
9997 2 4928 3947 8710 4040 6797 5465 6877 2976 1824 3847 3942 2011 8248 7093 1537 3009 6145 1315 5998 743 4886 1782 487 7132 1085 8532 1697 629 355 9222 5425 6201 2913 207 805 5907 2621 9186 5560 6016 4565 8411 1959 2216 3941 1635 255 4051 6450 5716 4351 9197 5272 1 9674 8582 9623 250 5096 9320 2940...
output:
No
result:
ok OK
Test #104:
score: 0
Accepted
time: 2ms
memory: 3708kb
input:
9998 3 3430 8203 4047 8640 5173 3491 1688 5188 2691 6956 3342 2794 3749 2683 3032 3488 5683 1206 6685 6633 5831 5688 9004 6857 7111 7054 8264 6136 7191 334 8267 6413 9683 3173 1808 5724 3559 7713 9307 328 6352 6215 2083 3098 7247 5184 5532 7968 1534 9737 2532 1001 1487 9500 122 732 1752 4772 587 166...
output:
No
result:
ok OK
Test #105:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
9960 3 3333 4935 4516 8719 6040 8566 7596 3342 7670 8349 8291 513 9903 6332 8609 7365 5913 4756 3273 7383 507 9782 6787 6631 779 9551 688 3750 1680 5120 7710 3173 8480 3706 1330 3756 286 6778 9311 2965 4453 2363 3234 1612 8188 4337 9425 9608 7198 9248 9141 90 2045 4821 2835 5505 5642 5997 7354 2355 ...
output:
No
result:
ok OK
Test #106:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
9965 2 4959 5393 913 7314 388 5397 6755 5746 1407 8262 8173 8238 4367 2380 464 4291 8371 4207 2422 4885 4188 4091 3020 818 405 5105 2858 4007 3141 7533 8944 3848 4064 2258 9695 7782 9175 2432 5283 8339 9379 4835 3055 4670 9072 1125 5244 2950 8742 1043 1215 8185 4932 3023 6888 8097 9445 7809 6276 620...
output:
No
result:
ok OK
Test #107:
score: 0
Accepted
time: 2ms
memory: 3700kb
input:
10000 3 1001 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 56...
output:
Yes -5637 -5524 2297
result:
ok OK
Test #108:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
5234 2 2624 4043 723 1537 58 605 987 2329 2061 890 242 3945 1654 2372 258 4392 3528 2332 2597 300 5179 4305 1434 844 591 315 2911 3426 3833 2638 594 2169 4341 3765 2759 4386 3677 4938 1309 2008 3800 1906 519 1673 4170 1780 402 3189 4870 1287 2986 1236 2639 3690 4285 5149 207 2735 412 64 2424 1965 17...
output:
Yes 0 1
result:
ok OK
Test #109:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
1251 1 1251 1175 950 575 1069 633 331 1112 491 884 904 1105 75 801 432 1080 12 1078 563 245 811 271 1183 926 1140 819 648 921 45 939 1002 419 456 912 583 1196 135 1177 441 167 48 754 1062 462 129 108 719 902 767 389 1035 657 388 898 240 743 824 930 850 945 1145 1212 872 1079 969 128 1100 566 101 483...
output:
Yes 0
result:
ok OK
Test #110:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
1828 2 903 1273 357 572 1757 787 941 872 31 882 381 35 36 1373 1434 1580 1603 1646 1637 842 576 1388 1340 175 1817 1097 520 276 1787 1035 1162 1581 1347 206 1824 450 948 57 198 1707 172 1523 575 43 782 1093 1051 1349 1112 1534 1790 1289 7 529 1645 1722 1076 1086 662 683 165 1126 1605 763 296 1518 61...
output:
Yes 1 0
result:
ok OK
Test #111:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
3081 1 3081 1679 2345 1684 2568 676 641 2894 2281 1566 2532 1817 646 466 311 782 1438 1524 1742 1894 156 166 409 200 833 1836 505 932 1677 2981 32 2405 2376 1410 2266 2471 894 1372 2582 880 207 329 2437 2259 3061 1804 2046 2787 526 2460 1794 2429 2234 705 298 1793 90 1974 1035 1184 1349 2678 339 792...
output:
Yes 0
result:
ok OK
Test #112:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
2660 3 919 500 779 2427 76 1776 913 2129 735 622 1707 321 410 583 136 754 1503 1193 34 2643 1829 1909 1493 1746 2042 2031 2465 1612 1572 1618 1697 2603 1889 2605 598 1870 2381 1007 23 824 2255 1401 1887 1511 399 694 1015 1364 2354 204 527 2450 335 330 912 2595 1119 77 2575 2080 207 2150 360 605 2550...
output:
Yes 0 0 -1
result:
ok OK
Test #113:
score: 0
Accepted
time: 2ms
memory: 3684kb
input:
8554 1 8554 2472 5350 4281 493 2291 581 1889 6756 1463 104 6404 3865 1904 149 4716 2919 3467 4019 4527 5618 3723 7543 7335 8506 4524 7563 8309 2943 5962 5082 731 360 518 1289 7927 6822 2326 2047 8114 5193 5264 4660 5636 7705 681 6065 5902 4025 7114 265 1034 912 129 6945 5789 2268 2464 3650 6916 3351...
output:
Yes 0
result:
ok OK
Test #114:
score: 0
Accepted
time: 1ms
memory: 3692kb
input:
6210 3 1980 2089 4734 4799 6065 5742 3990 670 6026 4677 1207 2317 413 5933 3613 6202 3847 1535 166 5197 67 2408 1202 5544 2892 2007 726 1945 1536 3183 1534 836 1644 3351 3244 673 313 330 64 1912 4146 4957 1481 220 3434 4182 5067 2745 5848 2169 3864 285 1919 2562 4937 4288 2341 4865 1227 5490 1275 58...
output:
Yes 0 -1 0
result:
ok OK
Subtask #5:
score: 10
Accepted
Test #115:
score: 10
Accepted
time: 2ms
memory: 3704kb
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: 3596kb
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 0 0
result:
ok OK
Test #117:
score: 0
Accepted
time: 2ms
memory: 3712kb
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: 1ms
memory: 3676kb
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: 1ms
memory: 3680kb
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: 1ms
memory: 3620kb
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: 2ms
memory: 3740kb
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 -1384 6321 -3650 114 261
result:
ok OK
Test #122:
score: 0
Accepted
time: 2ms
memory: 3700kb
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: 3744kb
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: 3656kb
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: 2ms
memory: 3792kb
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: 0ms
memory: 3604kb
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: 2ms
memory: 3716kb
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: 3740kb
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 -304 6477 6037 0
result:
ok OK
Test #129:
score: 0
Accepted
time: 2ms
memory: 3732kb
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 0 0
result:
ok OK
Test #130:
score: 0
Accepted
time: 2ms
memory: 3684kb
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 -1 -2807 3272
result:
ok OK
Test #131:
score: 0
Accepted
time: 2ms
memory: 3696kb
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: 2ms
memory: 3788kb
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: 3784kb
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: 3712kb
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 -1 -440 2580
result:
ok OK
Test #135:
score: 0
Accepted
time: 2ms
memory: 3720kb
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: 2ms
memory: 3692kb
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: 1ms
memory: 3644kb
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: 1ms
memory: 3564kb
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 -1 0
result:
ok OK
Test #139:
score: 0
Accepted
time: 1ms
memory: 3676kb
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 0 1
result:
ok OK
Test #140:
score: 0
Accepted
time: 0ms
memory: 3624kb
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: 2ms
memory: 3712kb
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: 0ms
memory: 3568kb
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: 10
Accepted
Test #143:
score: 10
Accepted
time: 0ms
memory: 3568kb
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 0 0
result:
ok OK
Test #144:
score: 0
Accepted
time: 1ms
memory: 3748kb
input:
5726 1 5726 4742 4990 3794 4131 5409 3383 576 173 5346 5587 660 3255 2358 5550 989 5047 3872 4287 832 1949 3854 3305 2255 918 974 2433 4873 1427 247 4807 1512 1802 3423 4766 2972 720 2986 4601 3728 3855 4432 4176 5116 202 4094 4907 4270 412 4521 2158 3705 3487 2808 2004 2802 4080 5120 5487 2361 2241...
output:
Yes 0
result:
ok OK
Test #145:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
8917 1 8917 692 5328 1064 7865 1215 2141 2161 2459 6059 5889 7993 2827 8687 427 2955 6492 1614 2508 1795 5757 5760 5644 6388 2878 2921 6641 1119 7955 5897 2993 6324 8006 821 7428 5760 1493 3566 2331 1950 8386 8063 8526 7287 5677 6567 1204 288 7247 6747 4942 7088 6444 5147 5865 8641 2647 2121 2324 18...
output:
No
result:
ok OK
Test #146:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
3143 4 780 1820 2064 2932 1422 1977 1728 381 3094 1132 27 2020 1543 1283 1362 680 1932 1038 2010 3134 3044 1461 2839 3055 167 1127 868 3013 1137 425 2477 1477 3077 938 2805 1136 1540 2050 2255 2875 2126 2679 162 3078 292 1798 1586 524 2703 377 78 2380 1726 838 963 2605 1540 1056 1832 1336 388 415 30...
output:
No
result:
ok OK
Test #147:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
8280 4 2146 2515 438 495 3470 7793 3063 1605 5457 5841 8112 3292 1498 4749 7359 7238 7671 4966 5966 6661 2346 458 6901 3 1998 6057 1643 1455 97 1728 4882 7616 5930 7699 3136 5685 1566 8197 5907 714 3472 856 1608 7980 4693 7892 4609 3234 3405 2952 5050 308 2585 6276 3968 3699 6299 7628 4127 5106 3236...
output:
No
result:
ok OK
Test #148:
score: 0
Accepted
time: 2ms
memory: 3672kb
input:
8146 4 2067 1403 4446 1708 5116 6707 6013 5469 719 2278 3575 8081 1594 2586 379 3126 6083 5303 7888 5369 5373 4483 4212 1923 7711 5682 1916 3516 2235 6814 276 4532 1605 1158 4193 3178 6897 712 2557 1891 5142 4991 669 3549 2143 4879 1035 288 1222 3614 4788 7305 4545 128 7526 4265 5314 1684 2179 1651 ...
output:
No
result:
ok OK
Test #149:
score: 0
Accepted
time: 2ms
memory: 3676kb
input:
9984 5 1979 6831 1908 8803 2021 2584 2938 6444 4356 9589 6406 3551 7515 2740 4838 7707 3714 7477 6099 4462 7824 6237 8542 9615 3045 2269 3827 1311 4321 6766 1034 9490 2813 5308 1692 1361 8935 2953 2081 9630 9332 9657 4513 3945 6461 5047 4982 7547 4050 3041 7956 889 1469 820 3415 7176 5739 3814 7908 ...
output:
Yes -2 0 2 2 1
result:
ok OK
Test #150:
score: 0
Accepted
time: 2ms
memory: 3740kb
input:
9981 1 9981 1323 2226 1830 982 5908 4416 5786 7225 4601 5642 3720 6247 3072 7958 4011 704 9724 7964 2645 6764 2759 413 9883 7374 7422 7771 6707 2304 3709 9152 7458 3262 4394 6325 1316 5057 8625 1874 5733 9734 8109 3704 1691 4835 5846 76 668 131 5684 2870 65 1958 3749 8266 4560 3540 3052 2869 4525 86...
output:
Yes 0
result:
ok OK
Test #151:
score: 0
Accepted
time: 2ms
memory: 3768kb
input:
9981 5 2062 275 2232 579 1911 2368 3666 4219 9751 1674 1590 9074 2769 240 3400 343 7486 2212 7324 4681 955 7711 5835 2968 331 4790 5426 7407 8377 10 7576 1519 9750 151 9637 1653 78 9834 5791 932 5958 7987 6878 5176 5479 2436 9797 1808 8414 5994 6505 3272 3891 9786 8487 4918 5314 2015 4448 6520 4637 ...
output:
Yes -2 0 3 1 0
result:
ok OK
Test #152:
score: 0
Accepted
time: 2ms
memory: 3744kb
input:
9971 1 9971 6993 934 3006 2327 1413 2052 45 729 9490 4377 874 2399 7812 3641 7183 9917 5898 5299 6406 5859 1379 8038 1481 2155 388 8887 7816 7709 6291 2172 4591 2179 2584 2202 8295 620 6221 1954 9420 2686 1423 6273 7838 7444 9349 8284 8993 2200 225 6243 1662 3405 457 8352 7218 4771 9128 4412 6239 30...
output:
Yes 0
result:
ok OK
Test #153:
score: 0
Accepted
time: 2ms
memory: 3620kb
input:
9965 5 2008 7313 7758 2317 6915 9940 2010 6153 9130 9757 5047 8106 2711 8245 9030 9242 5291 5956 9797 7964 1928 6791 8611 5593 7063 8398 9824 4802 8719 6332 9937 1543 1573 1841 8237 360 5300 6064 6634 2602 5131 8192 5367 460 2084 2721 8677 5863 5152 7575 2009 8190 1864 9737 3972 6986 6392 9396 6086 ...
output:
Yes -1 2 3 1 -3
result:
ok OK
Test #154:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
3676 4 905 3035 893 1773 1908 3213 928 3655 856 2893 3488 1249 3433 288 1378 3143 2089 442 3318 464 3659 2295 1279 3599 2273 2502 1748 1024 970 2754 1895 2686 540 2470 1050 201 2122 1151 141 1618 368 3532 3640 345 516 3067 1985 496 1791 191 617 955 765 2309 1212 1788 243 264 759 3308 3079 3165 3391 ...
output:
Yes -1 1 2 3
result:
ok OK
Test #155:
score: 0
Accepted
time: 2ms
memory: 3688kb
input:
9977 3 3396 1670 8542 6962 4332 2373 1419 8715 9081 3011 643 9022 1451 6852 5265 6166 9686 8368 4154 2903 9176 4037 3543 3745 6479 956 1515 8166 7345 4532 160 8653 9765 8774 9972 8346 8147 4667 1542 7961 6676 2131 2249 9136 4586 2493 1976 8452 3895 4481 9181 9601 813 5650 7175 5607 503 6263 2123 470...
output:
Yes -1 1 1
result:
ok OK
Test #156:
score: 0
Accepted
time: 2ms
memory: 3696kb
input:
9973 3 3273 6291 4969 4565 4104 3193 8865 3238 6399 9357 462 2933 6298 6077 7419 6222 2893 5372 9628 4980 8867 2309 1807 829 62 8783 8531 7977 7091 6168 312 2420 2707 1980 1294 2976 8049 1694 6508 5902 9600 1522 6489 7032 7395 3938 3151 8247 788 1212 9650 2742 4081 560 7503 3414 5347 7278 1867 4557 ...
output:
Yes 1 -2 1
result:
ok OK
Test #157:
score: 0
Accepted
time: 2ms
memory: 3636kb
input:
9986 3 3371 6596 3853 7488 3014 2329 1825 7662 5989 7346 1270 586 8402 8995 1304 5656 7680 5356 7859 6380 9279 5451 8947 1414 1786 1377 891 7297 6342 8473 8435 5404 2925 7218 4478 9193 3065 7142 7875 221 314 7337 6541 3032 5448 4233 1182 4032 4945 7417 2521 2454 681 503 4484 5241 480 799 4905 5874 4...
output:
Yes 2 -1 1
result:
ok OK
Test #158:
score: 0
Accepted
time: 2ms
memory: 3700kb
input:
9991 3 3323 9071 4090 2566 6825 861 4327 4153 8087 2804 4414 9224 5192 9707 3419 8205 1150 5116 1544 9230 2110 9362 3194 3290 1420 9696 9418 6585 7491 5910 9881 7515 1716 1297 8119 7159 1076 7548 3661 1255 1867 1105 3941 6116 758 6858 6119 4640 2468 3914 6258 9749 3399 7304 1085 5649 5231 2614 728 8...
output:
Yes 0 1 -1
result:
ok OK
Test #159:
score: 0
Accepted
time: 2ms
memory: 3696kb
input:
9985 3 3321 3742 880 6170 5434 4685 7940 3347 8047 277 3953 8678 9258 8612 1273 6507 9286 5188 8970 5650 5229 871 150 3932 7321 3150 7990 3669 2468 4234 2276 8809 3067 2492 4092 2018 3762 5115 9202 3509 3815 1879 9686 1545 2503 7269 3415 8834 4769 6102 6137 5195 7737 9890 9350 5849 5914 4526 4648 15...
output:
Yes -1 2 1
result:
ok OK
Test #160:
score: 0
Accepted
time: 2ms
memory: 3772kb
input:
9980 3 3304 1729 2047 3642 2406 9468 4788 4492 4349 988 9283 1455 4694 4462 2627 8196 9468 6580 7959 2020 8105 3452 6 5662 9109 192 4302 3038 5150 1449 8731 7633 985 4140 9763 134 2870 3378 1956 7774 5306 3823 8421 5840 9269 943 6053 1652 7082 1808 8680 237 7612 7036 2725 763 4210 777 682 4080 6745 ...
output:
No
result:
ok OK
Test #161:
score: 0
Accepted
time: 2ms
memory: 3708kb
input:
9981 4 2486 8209 8875 4137 3613 2237 1491 3832 8048 3684 2452 4141 7245 2977 459 6976 5747 8684 2793 3971 4571 9750 2790 5949 9619 5294 4046 7676 1253 6117 2319 9474 2882 945 8719 9768 8757 5877 5348 2489 9441 8126 1344 8196 1637 8685 6055 4728 3366 6901 3175 5227 7722 4653 3650 4525 4199 9237 2510 ...
output:
No
result:
ok OK
Test #162:
score: 0
Accepted
time: 2ms
memory: 3784kb
input:
9975 3 3345 9337 2578 8280 8952 8380 293 1747 331 4067 264 3935 5328 5815 6403 9782 2339 2057 8377 2352 2908 287 8640 3667 6507 7680 5519 4042 8853 1467 7826 7851 6677 4790 1235 9873 7532 7669 5417 676 7778 2055 1496 5208 7379 9555 6434 2803 1168 9531 5089 6947 8087 7460 6807 5343 9866 2182 1750 990...
output:
No
result:
ok OK
Test #163:
score: 0
Accepted
time: 2ms
memory: 3760kb
input:
9970 1 9970 135 1651 5615 9405 2317 1040 2414 8702 1817 1481 9400 4202 2056 3407 6706 6849 6784 549 3221 6130 2316 6969 7221 1662 2329 4174 6301 1616 1292 2926 4970 6785 9366 1558 8619 6944 4784 5657 5193 2494 7006 8888 6661 5640 7023 7203 7681 7468 9088 950 4346 30 2780 2413 6863 2457 7329 5415 811...
output:
No
result:
ok OK
Test #164:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
11 5 2 11 5 3 5 4 10 2 5 11 2 11 5 2 9 3
output:
Yes -4 1 -3 -2 1
result:
ok OK
Test #165:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
9636 3 3194 6575 8530 3354 2611 9161 8442 624 98 7946 4404 5554 9016 4771 3874 980 9597 5639 7834 2593 2279 3307 6896 3634 8446 7786 1387 830 4171 8866 8892 4528 6225 3376 5483 7965 3708 1588 7484 3436 7105 6720 6179 2545 1050 3398 2717 8046 8588 6253 3545 4311 36 9284 30 37 2177 1763 9289 127 5397 ...
output:
Yes 0 1 2
result:
ok OK
Test #166:
score: 0
Accepted
time: 1ms
memory: 3588kb
input:
3030 3 1046 236 2362 655 2802 2329 2644 1045 722 1084 2139 2167 453 2818 2640 1342 2209 37 617 2214 2928 864 265 1246 1863 2917 2658 968 1825 2332 2804 2785 2265 1219 73 696 1817 2251 2319 162 1029 2029 1546 1627 1484 330 3025 2120 1625 295 2515 1201 1726 706 2991 3023 571 2096 2062 1713 144 366 301...
output:
Yes 0 2 0
result:
ok OK
Test #167:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
3871 4 953 3172 2526 1825 3712 2288 3 1350 1028 200 1415 2096 1689 1979 1411 2270 3860 3693 2128 1008 1951 1623 3546 2341 786 1236 2984 2951 482 104 383 641 3463 1814 3339 300 3685 369 3003 1339 3215 1164 1667 180 1941 1856 1118 2452 3338 2741 3089 3109 2552 2382 2791 3421 745 1948 2068 2857 473 302...
output:
Yes 0 1 1 -3
result:
ok OK
Test #168:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
1162 5 238 182 1108 326 431 865 622 808 214 966 772 405 331 325 15 620 144 1140 318 797 442 1148 349 631 885 369 781 969 1119 1040 255 834 168 81 931 1 484 796 499 992 422 595 669 642 99 1055 1038 694 1149 712 1112 418 553 1022 533 893 232 638 268 11 946 701 142 370 444 354 957 1102 319 585 645 146 ...
output:
Yes 1 -2 -4 0 0
result:
ok OK
Test #169:
score: 0
Accepted
time: 2ms
memory: 3688kb
input:
6928 3 2337 3390 5278 463 6460 2288 2972 4915 6150 4323 6843 3367 6606 4882 663 5014 5079 3427 5816 2638 3915 3895 4153 5222 5838 4222 3588 5633 2568 4806 6747 6780 4811 179 1391 6008 1924 5882 5513 5959 6625 3519 5931 3361 1984 1846 3035 2626 6825 1543 3890 744 5776 3871 4528 6668 3006 2308 3058 40...
output:
Yes -1 1 2
result:
ok OK
Test #170:
score: 0
Accepted
time: 2ms
memory: 3616kb
input:
7923 3 2657 168 530 161 137 5129 7637 6279 660 5230 6705 7159 4466 329 4037 1017 2550 6167 1123 898 6028 3194 7568 2415 5351 5391 6297 5171 4837 6859 7256 2950 7245 1166 3612 6233 1312 566 6963 5856 7314 2217 2172 5014 4290 4079 4366 6284 5711 6479 5460 3089 4964 7337 6693 1477 2877 2132 5073 1642 2...
output:
Yes 2 -2 1
result:
ok OK
Test #171:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
8788 4 2194 3366 1847 1943 5061 4895 8324 3169 1231 1948 5957 2764 7085 639 4484 4574 2485 4728 506 205 405 206 5052 7993 2229 4701 6033 4172 4911 3663 4748 8672 5478 6139 7855 4039 1257 2902 2146 8588 1132 5023 5368 774 8701 4144 2683 2561 3763 6052 68 5126 556 1699 8513 6728 1315 232 1316 2774 481...
output:
Yes -1 2 -2 2
result:
ok OK
Subtask #7:
score: 10
Accepted
Test #172:
score: 10
Accepted
time: 0ms
memory: 3544kb
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 -2 0 -3 2 0
result:
ok OK
Test #173:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
11 2 4 3 8 4 1 7 9 10 7 5 6 2 11
output:
Yes 0 0
result:
ok OK
Test #174:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
2 1 2 1 2
output:
Yes 0
result:
ok OK
Test #175:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
23 2 10 2 17 1 11 6 19 16 16 23 14 13 16 4 22 2 23 20 10 3 13 20 21 17 23
output:
No
result:
ok OK
Test #176:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
30 3 9 16 20 6 22 30 2 3 4 14 12 27 19 1 24 10 23 3 21 11 21 20 29 9 15 1 25 22 3 28 5 16 26
output:
No
result:
ok OK
Test #177:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
21 4 3 11 6 4 5 18 6 20 19 18 8 2 5 5 2 5 18 18 7 5 21 20 7 7 13
output:
No
result:
ok OK
Test #178:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
21 1 21 12 18 13 3 19 10 1 20 11 4 14 8 17 2 6 7 15 5 21 9 16
output:
Yes 0
result:
ok OK
Test #179:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
10 4 2 3 2 4 5 4 10 6 3 5 4 10 1 9
output:
Yes 6 -3 0 -3
result:
ok OK
Test #180:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
14 4 1 13 5 7 6 5 11 10 5 14 1 12 8 11 3 13 7 3
output:
Yes -11 -1 0 0
result:
ok OK
Test #181:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
13 2 6 8 2 6 11 5 7 7 3 11 6 5 2 1 12
output:
Yes 2 0
result:
ok OK
Test #182:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
14 5 3 9 14 8 2 10 2 2 4 5 3 14 5 3 4 7 5 2 10
output:
Yes -1 0 0 -2 4
result:
ok OK
Test #183:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
17 1 17 5 10 4 6 12 16 13 1 2 3 15 9 17 7 14 11 8
output:
Yes 0
result:
ok OK
Test #184:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
27 5 6 23 22 4 24 25 21 6 1 27 17 14 5 10 5 16 12 7 5 15 6 22 21 11 3 12 7 4 16 3 15 5
output:
Yes -1 0 -3 4 3
result:
ok OK
Test #185:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
19 1 19 14 2 18 15 1 8 10 3 19 5 6 17 16 11 12 13 9 7 4
output:
Yes 0
result:
ok OK
Test #186:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
15 2 7 12 15 6 2 13 1 9 8 14 4 11 5 8 10 3 7
output:
Yes 0 0
result:
ok OK
Test #187:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
28 5 5 14 20 28 4 21 12 2 12 28 24 11 18 15 1 22 8 17 6 1 7 3 19 21 1 7 6 9 25 3 20 8 15
output:
Yes -1 0 7 4 1
result:
ok OK
Test #188:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
8 2 5 7 2 5 8 3 3 7 2 4
output:
Yes -1 1
result:
ok OK
Test #189:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
14 4 1 8 3 6 7 4 6 2 3 4 9 8 12 4 10 8 10 9
output:
No
result:
ok OK
Test #190:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
2 1 2 1 2
output:
Yes 0
result:
ok OK
Test #191:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
23 2 7 12 12 9 15 9 12 13 16 16 17 18 16 2 7 16 12 12 9 3 15 7 3 13 3
output:
No
result:
ok OK
Test #192:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
9 5 2 7 9 3 8 5 7 1 9 2 1 3 1 7
output:
Yes -6 -3 -3 6 1
result:
ok OK
Test #193:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
9 3 4 6 1 4 3 1 3 4 9 2 1 7
output:
Yes 2 1 0
result:
ok OK
Test #194:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
26 1 26 18 12 23 5 21 15 13 9 7 17 10 2 20 26 24 6 11 1 16 14 3 4 8 25 19 22
output:
Yes 0
result:
ok OK
Test #195:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
22 5 4 11 17 1 7 4 7 15 13 2 7 14 7 1 15 18 2 4 3 4 2 9 4 12 21 10 18
output:
Yes 5 6 0 1 -1
result:
ok OK
Test #196:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
28 3 11 24 2 17 10 13 23 12 3 26 11 27 13 8 22 25 4 23 17 10 28 9 19 11 21 3 4 20 14 8 3
output:
Yes 1 -2 2
result:
ok OK
Test #197:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
10 2 6 2 1 7 10 4 6 4 6 1 3 7
output:
Yes 0 2
result:
ok OK
Test #198:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
10 1 10 5 3 9 4 1 8 6 10 7 2
output:
Yes 0
result:
ok OK
Test #199:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
5 2 2 1 2 3 1 2 5
output:
Yes 2 0
result:
ok OK
Subtask #8:
score: 17
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Dependency #5:
100%
Accepted
Dependency #6:
100%
Accepted
Dependency #7:
100%
Accepted
Test #200:
score: 17
Accepted
time: 1ms
memory: 3612kb
input:
5221 2 2551 5025 1312 964 3518 1983 2992 3578 185 3650 5043 4430 4133 2398 1357 2427 2356 3355 213 760 5123 2160 3413 4548 4628 135 4420 1025 2732 597 1258 1717 5124 839 921 1365 1344 5173 637 3833 3482 2209 4635 2450 768 2711 2891 4823 3743 2720 1359 2005 3374 5055 2294 3312 263 3063 2170 1095 1513...
output:
Yes 0 -3
result:
ok OK
Test #201:
score: 0
Accepted
time: 1ms
memory: 3748kb
input:
5294 2 2670 1280 1904 5240 2132 3620 4146 1299 3351 2735 2154 4422 4145 1675 3953 346 3302 1554 610 278 3534 1881 1458 2120 3566 1077 4077 1494 5081 1670 2918 4022 2395 1451 4921 4050 4257 409 604 1683 332 914 4570 4742 4409 4305 3668 2935 3339 3577 1790 147 3827 798 1697 5135 3738 1274 3900 4039 15...
output:
Yes -1 4
result:
ok OK
Test #202:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
4171 5 844 781 643 3774 2129 2657 2482 2391 1537 3843 1664 3947 3926 979 1832 3632 1988 653 1498 261 2486 965 1158 2330 3356 991 2380 1562 975 2565 692 3290 1646 3392 2636 283 1597 4041 1751 2214 2770 931 1299 3942 1574 3555 3178 3929 40 779 659 2982 1436 3712 70 3003 2186 1845 474 1081 138 1304 196...
output:
No
result:
ok OK
Test #203:
score: 0
Accepted
time: 2ms
memory: 3780kb
input:
8696 2 4338 1159 5797 753 8322 391 6312 8126 2921 7769 4056 4918 2183 4690 6955 2906 414 2692 6739 6037 258 5756 3357 7191 5944 3130 3347 8251 1838 7007 7366 3007 3458 8249 4163 4237 3560 3904 6475 3418 8406 1404 4556 4157 6573 4123 6088 3989 6382 5016 4504 7563 2285 2423 3034 5694 1330 7616 3599 35...
output:
No
result:
ok OK
Test #204:
score: 0
Accepted
time: 2ms
memory: 3692kb
input:
8702 4 2126 6000 7076 5381 3078 8043 7178 739 7990 3108 7097 7084 719 2598 4106 2261 6849 6931 3892 15 1782 888 7259 870 1307 4318 1966 393 5231 5952 5960 3938 7612 7571 1162 4126 5819 6735 8021 8067 1439 6756 6362 389 7793 3067 7486 5005 5846 6527 2321 1847 8260 3552 5632 1294 7345 6519 8209 2683 8...
output:
No
result:
ok OK
Test #205:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
8074 3 2701 3634 7672 3423 7755 2999 637 984 1772 6651 741 6463 6244 5991 3245 795 4394 3775 217 3445 5934 5454 3413 7486 4300 909 3559 7317 5220 7909 6054 7564 4558 3020 1712 4780 4023 994 23 7281 6072 7832 4414 7902 5024 481 122 3180 7492 2535 6104 840 48 3712 2528 5609 872 4433 1185 3297 2360 520...
output:
No
result:
ok OK
Test #206:
score: 0
Accepted
time: 3ms
memory: 3672kb
input:
9984 2 5011 8047 8319 8390 731 6492 6271 5649 351 8816 6143 8833 3317 3612 8155 689 1432 1500 7914 5752 582 9206 8609 1315 3227 2761 2487 8128 5907 8786 4214 1192 6409 3566 440 8872 9169 9541 1437 60 7504 4652 3220 4594 6411 5514 3230 3815 515 9924 6281 2684 7780 6302 2690 9130 4258 6738 3656 6573 7...
output:
Yes 0 0
result:
ok OK
Test #207:
score: 0
Accepted
time: 2ms
memory: 3808kb
input:
9985 1 9985 8948 539 9161 2351 6972 8340 6533 3392 4882 7751 3003 5687 3536 8284 4390 8911 4210 9405 4699 8301 4266 3615 1611 9570 8875 6626 9317 3332 5696 8078 2135 5838 2467 884 895 864 4289 4730 2936 7593 1727 8300 8258 8720 5127 1827 6016 292 5175 5058 2718 9636 932 8649 5354 2963 8549 6095 2001...
output:
Yes 0
result:
ok OK
Test #208:
score: 0
Accepted
time: 2ms
memory: 3700kb
input:
9976 3 3336 9764 9703 1553 3269 6533 1839 8950 4954 721 3160 9732 7941 3995 7772 8566 5862 5379 8537 6061 1160 3612 6065 2812 6013 2007 5893 8473 9753 774 5860 894 8616 6521 161 4651 2543 6106 1433 8111 5559 3978 8210 8904 1202 9011 2491 2371 6203 9774 2059 4771 5640 604 3118 233 7729 7986 3994 795 ...
output:
Yes 0 -3 2
result:
ok OK
Test #209:
score: 0
Accepted
time: 2ms
memory: 3700kb
input:
9982 3 3273 1982 4085 6257 7636 7014 2971 4685 3588 8428 6935 8037 5972 4170 4168 5003 1798 4088 8219 3915 5811 5420 1775 8719 3371 8729 9437 6292 5104 9471 8231 8911 9626 4934 1746 5769 3433 2695 6602 8552 8472 7135 5521 8717 7709 5754 7639 6587 654 7832 7537 3262 6536 6903 3698 2954 4781 7921 408 ...
output:
Yes 0 -1 -1
result:
ok OK
Test #210:
score: 0
Accepted
time: 2ms
memory: 3736kb
input:
9975 1 9975 9507 5981 9255 4994 4248 9100 9243 7034 9412 4896 7930 2130 7515 3885 2751 1796 7989 9634 8307 6374 7336 6002 8769 8340 9601 5367 5484 8028 4626 1536 5062 9968 4134 3749 774 6334 274 3875 4042 1540 1966 4303 1603 990 5295 2160 4200 7598 7534 9826 706 8400 9843 2610 81 5196 7360 3806 3053...
output:
Yes 0
result:
ok OK
Test #211:
score: 0
Accepted
time: 2ms
memory: 3648kb
input:
8711 3 2875 213 1514 4972 1920 249 4105 690 8214 7080 6330 6464 3658 4263 5546 4225 2271 4161 3459 6517 2546 4593 2637 3251 6087 100 3712 6506 1159 2330 1825 1363 2847 8018 8512 6743 7987 4250 1000 7867 4701 5741 6026 2714 6751 4186 494 8189 3443 1657 8188 2067 8080 8680 5176 13 6403 4092 512 2777 7...
output:
Yes 2 0 0
result:
ok OK
Test #212:
score: 0
Accepted
time: 2ms
memory: 3700kb
input:
9962 3 3339 4049 2778 8683 4345 2170 5929 9716 5026 5178 8984 726 4112 2397 1704 8881 4157 8062 1622 8597 3129 21 7621 4318 6515 9291 2486 5965 2017 4048 2872 3732 212 6089 8167 2476 6834 5283 3890 4363 6164 4108 5141 2843 2282 8906 7748 4900 7927 2505 1180 7422 2886 3521 7867 4919 644 4257 1509 423...
output:
Yes 4 -3 -1
result:
ok OK
Test #213:
score: 0
Accepted
time: 2ms
memory: 3716kb
input:
9999 4 2510 5431 8894 7303 231 4139 1667 899 1411 2398 2925 7388 9331 9303 6292 7626 6966 8921 1486 3722 6326 3020 734 6752 7665 7714 4437 306 4818 4977 9646 9898 4501 9643 5883 4624 222 9558 2365 3994 1228 1276 2563 4091 3098 4018 9042 6210 4066 7849 9757 1009 5121 1671 9985 2777 4340 1364 3021 507...
output:
Yes 2 0 1 -1
result:
ok OK
Test #214:
score: 0
Accepted
time: 2ms
memory: 3644kb
input:
9973 3 3452 8504 3204 666 9861 183 3205 1501 8463 6800 770 1815 4219 7979 2336 2624 1457 145 8665 1648 2534 3522 3530 1253 1711 8902 6052 353 5845 3086 6377 5049 6864 9447 7950 8860 1669 779 3408 2686 9289 4452 4269 3180 4635 8405 4481 7250 221 2262 1026 5645 1774 5730 1748 516 5048 4019 9895 6611 1...
output:
Yes -2 1 -1
result:
ok OK
Test #215:
score: 0
Accepted
time: 2ms
memory: 3712kb
input:
9977 3 3248 6138 7827 872 8951 5201 8995 2641 979 5913 318 6164 2039 8893 5246 587 197 3709 3454 5829 581 1433 3651 1707 2387 1918 4604 4015 3937 6103 9973 5501 5999 8806 2078 1925 2107 1026 9021 748 3525 8802 5409 1254 6077 5080 9409 5660 3293 1145 3755 3888 5324 6353 6259 5135 5164 3012 5429 787 5...
output:
Yes 0 2 1
result:
ok OK
Test #216:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
10000 1 10000 6958 4078 4204 3150 643 9231 3520 2937 7621 6935 6853 2129 2112 4140 3172 9327 1513 2808 661 3989 7777 9708 5448 1294 1889 484 8764 6725 2921 8715 9587 9665 143 4844 5066 2404 9465 5814 7693 25 9284 1499 3466 7897 7993 9451 6960 7988 5466 6497 8387 6901 9951 1711 3144 8257 8657 4888 40...
output:
Yes 0
result:
ok OK
Test #217:
score: 0
Accepted
time: 2ms
memory: 3724kb
input:
9998 2 5004 7300 5768 8910 9725 545 2148 5402 2332 7118 4297 8048 9070 263 5175 8600 2100 7382 9635 7086 9378 3548 4421 7332 3189 2553 1786 4683 9403 7992 5053 6235 9535 3562 3678 3701 2203 3071 5580 8716 2574 6407 6412 8533 4315 6774 6784 6503 6700 1834 3908 2102 4906 7505 705 1905 4736 9020 8477 9...
output:
No
result:
ok OK
Test #218:
score: 0
Accepted
time: 2ms
memory: 3688kb
input:
9995 5 1968 3544 407 3984 2182 5621 3011 4127 7604 1001 2794 4560 9195 7145 1332 9176 5276 3232 4089 9017 6506 5440 1345 8185 7550 5894 9795 9425 4701 7212 9391 6024 8770 1241 6076 938 8896 1818 6860 6851 8755 6245 3574 8939 8384 3957 6370 2452 6707 6052 6176 3984 5860 7720 1321 3497 3988 3681 7347 ...
output:
No
result:
ok OK
Test #219:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
9960 4 2536 5361 5423 6260 3446 2022 964 5975 8666 4779 7582 2090 3487 3531 1752 4107 7480 9647 6116 1238 4474 4855 4336 8292 2813 2816 5925 5720 8219 5281 8723 1537 1482 5735 6754 8592 6486 1003 4645 5785 8179 7170 1449 826 5225 8238 3848 3015 2799 7418 7144 8328 8813 7656 5599 8048 1117 2351 7539 ...
output:
No
result:
ok OK
Test #220:
score: 0
Accepted
time: 2ms
memory: 3728kb
input:
9971 1 9971 6314 5446 1602 4772 846 3544 7050 2454 2142 8189 9139 5775 3596 3901 1393 6048 5284 8598 5231 7668 6478 1112 838 4181 3145 6325 2587 8905 7570 7468 3212 5711 4169 8017 2819 6655 244 8458 5488 2819 9099 1148 5548 6041 4546 3468 8332 6002 9806 2421 900 7014 5346 8237 2197 9853 9047 5906 40...
output:
No
result:
ok OK
Test #221:
score: 0
Accepted
time: 2ms
memory: 3652kb
input:
10000 4 1611 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 41...
output:
Yes -4140 -1543 5274 4593
result:
ok OK
Test #222:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
3462 1 3462 2510 1762 787 1726 3114 3249 2118 3267 449 2348 2765 3230 3061 2103 1052 2114 3078 1651 624 2360 2107 1272 2302 143 1268 3260 59 117 2887 2543 1301 1402 2097 874 2398 318 240 2165 111 1266 949 1384 760 3320 244 2830 3156 270 548 1233 2666 2786 1472 3408 1438 958 3280 794 2936 316 1869 98...
output:
Yes 0
result:
ok OK
Test #223:
score: 0
Accepted
time: 2ms
memory: 3636kb
input:
10000 5 708 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 760...
output:
Yes -7550 -3855 -3294 -846 5653
result:
ok OK
Test #224:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
1139 1 1139 400 828 738 20 280 365 262 308 860 796 119 780 352 96 456 32 38 52 910 555 717 412 1078 781 857 905 470 1000 877 649 1134 161 186 431 966 297 556 758 374 582 949 853 772 1089 703 951 212 61 545 876 661 502 881 1114 614 904 345 495 795 288 875 842 695 606 901 178 1006 618 394 1122 375 505...
output:
Yes 0
result:
ok OK
Test #225:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
4805 4 1175 707 967 3090 3207 4649 3399 3733 1108 2943 2494 252 494 536 3063 3245 474 3571 1164 1706 2725 3393 4180 606 2859 918 3533 2697 3483 293 3854 161 4476 788 4197 1703 740 1641 1674 1206 701 2913 3797 623 2730 3736 4780 4503 233 3820 605 3631 562 2818 876 999 3309 971 550 924 3376 2226 69 22...
output:
Yes 1 -1 1 -3
result:
ok OK
Test #226:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
1525 4 370 1409 422 1177 276 317 1524 180 271 1156 496 828 1516 329 114 540 269 458 784 511 1396 649 837 1312 955 1494 470 1063 1327 1009 362 490 904 1305 112 111 1019 578 466 696 577 1438 853 379 506 977 1067 1048 299 1234 1045 1178 595 814 444 75 388 675 1499 934 1281 846 1432 779 1430 729 169 106...
output:
Yes -3 1 0 2
result:
ok OK
Test #227:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
1649 2 821 997 52 161 523 599 193 1583 170 625 159 541 417 1366 1303 363 1042 171 177 805 717 207 169 613 1413 815 865 738 364 165 1521 379 447 1044 713 1193 357 1614 854 296 1045 1308 886 27 519 1493 960 242 121 1361 615 288 15 959 1256 1546 1539 917 175 399 142 273 1528 1641 1397 359 266 1540 1566...
output:
Yes 2 -2
result:
ok OK
Test #228:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
9136 2 4585 6789 47 7156 6564 6675 8535 593 1149 2896 3530 3723 3992 7802 7080 3913 5623 1991 682 5696 7132 6258 3948 7133 8823 7159 6766 788 2026 1384 7282 7452 6533 5521 4518 1808 8081 6718 6472 783 8552 828 2691 2764 532 1968 4860 59 41 1520 2862 4679 8940 5503 5392 378 3917 2080 6555 6088 4569 6...
output:
Yes 0 -1
result:
ok OK
Test #229:
score: 0
Accepted
time: 1ms
memory: 3692kb
input:
6380 2 3138 2459 1573 1452 2539 5167 3981 5040 1239 5969 5094 4666 4428 2109 314 84 1812 2769 3782 1823 4327 2253 4859 6286 1420 5354 3240 3993 4140 3134 653 3775 1840 4861 3358 3567 3918 2867 3333 157 851 4429 2796 2176 1332 162 3858 5668 2212 3887 5121 108 2383 3907 2307 3663 490 3256 1520 3376 17...
output:
Yes 0 0
result:
ok OK
Extra Test:
score: 0
Extra Test Passed