QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#431713 | #7680. Subway | ucup-team3057# | AC ✓ | 2ms | 3920kb | C++17 | 2.3kb | 2024-06-05 23:15:04 | 2024-06-05 23:15:04 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3488kb
input:
3 1 2 1 2 1 2 3 3 2
output:
2 9 3 -2003 1 2 -1 2007 4 -2004 2 1 0 2006 5 -2002 3 3 1 2008 9 6 -5010 4 -3005 2 -1000 7 -5011 2 1 3 -1001 8 -5009 3 3 4 -999
result:
ok ok Sum L = 18
Test #2:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
1 1 1 1
output:
1 3 3 -2004 1 1 -1 2006
result:
ok ok Sum L = 3
Test #3:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
1 1 1 50
output:
50 3 3 -2004 1 1 -1 2006 3 6 -5011 1 1 2 -1001 3 9 -8018 1 1 5 -4008 3 12 -11025 1 1 8 -7015 3 15 -14032 1 1 11 -10022 3 18 -17039 1 1 14 -13029 3 21 -20046 1 1 17 -16036 3 24 -23053 1 1 20 -19043 3 27 -26060 1 1 23 -22050 3 30 -29067 1 1 26 -25057 3 33 -32074 1 1 29 -28064 3 36 -35081 1 1 32 -31071...
result:
ok ok Sum L = 150
Test #4:
score: 0
Accepted
time: 1ms
memory: 3880kb
input:
50 662 -567 48 728 -120 7 307 669 27 -885 -775 21 100 242 9 -784 -537 41 940 198 46 736 -551 30 -449 456 16 -945 382 18 -182 810 49 213 187 44 853 245 48 617 -305 19 -81 261 3 617 208 8 -548 -652 6 -888 -667 14 -371 -812 43 202 -702 10 -668 -725 5 961 -919 33 -870 -697 50 428 810 29 560 405 7 348 -3...
output:
50 150 -979 -2198 -981 -193 -983 1812 -943 -1623 -945 382 -947 2387 -924 -1334 -926 671 -928 2676 -886 -2672 -888 -667 -890 1338 -883 -2780 -885 -775 -887 1230 -868 -2702 -870 -697 -872 1308 -823 -1624 -825 381 -827 2386 -782 -2542 -784 -537 -786 1468 -681 -1274 -683 731 -685 2736 -666 -2730 -668 -7...
result:
ok ok Sum L = 7500
Test #5:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
50 -772 697 1 -756 -909 1 659 923 1 850 471 1 260 -24 1 473 -639 1 -575 393 1 -466 197 1 333 -637 1 -192 -890 1 103 546 1 749 -723 1 -573 613 1 214 -138 1 277 928 1 266 291 1 911 275 1 -680 -67 1 69 190 1 -197 -795 1 684 618 1 729 -115 1 -658 -229 1 -595 -470 1 898 -172 1 401 81 1 133 685 1 223 400 ...
output:
1 150 -770 -1308 -772 697 -774 2702 -754 -2914 -756 -909 -758 1096 -678 -2072 -680 -67 -682 1938 -664 -2087 -666 -82 -668 1923 -656 -2234 -658 -229 -660 1776 -593 -2475 -595 -470 -597 1535 -573 -1612 -575 393 -577 2398 -571 -1392 -573 613 -575 2618 -569 -2721 -571 -716 -573 1289 -530 -1167 -532 838 ...
result:
ok ok Sum L = 150
Test #6:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
50 -56 747 3 993 -490 4 930 -139 1 -298 -330 1 938 -351 5 -973 100 5 -472 44 4 345 628 5 481 -91 4 789 581 5 457 -29 4 871 -799 1 692 994 4 699 854 2 893 -33 1 -483 256 3 -962 -540 2 846 -893 1 830 609 5 845 -383 2 -552 -966 1 -544 -51 1 564 186 4 -615 -675 1 618 -911 3 -561 -302 4 -293 667 3 -334 -...
output:
5 150 -997 -1675 -999 330 -1001 2335 -971 -1905 -973 100 -975 2105 -960 -2545 -962 -540 -964 1465 -886 -2618 -888 -613 -890 1392 -840 -1624 -842 381 -844 2386 -790 -2630 -792 -625 -794 1380 -635 -2806 -637 -801 -639 1204 -613 -2680 -615 -675 -617 1330 -559 -2307 -561 -302 -563 1703 -550 -2971 -552 -...
result:
ok ok Sum L = 750
Test #7:
score: 0
Accepted
time: 1ms
memory: 3780kb
input:
50 600 997 5 -893 -204 3 408 443 1 -560 -748 7 -647 161 6 -285 -980 1 87 -582 7 -48 -721 7 997 285 2 -189 -728 8 525 222 4 -324 816 9 760 317 3 753 -480 10 -813 -921 3 -325 -875 8 -747 816 10 -627 605 7 775 786 6 136 -54 2 274 948 10 216 -113 7 924 68 3 101 576 8 60 -501 2 898 801 8 -767 -974 10 -99...
output:
10 150 -980 -2217 -982 -212 -984 1793 -978 -1252 -980 753 -982 2758 -970 -2317 -972 -312 -974 1693 -891 -2209 -893 -204 -895 1801 -811 -2926 -813 -921 -815 1084 -803 -2309 -805 -304 -807 1701 -765 -2979 -767 -974 -769 1031 -745 -1189 -747 816 -749 2821 -658 -2340 -660 -335 -662 1670 -645 -1844 -647 ...
result:
ok ok Sum L = 1500
Test #8:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
50 24 -889 49 117 418 49 25 524 44 980 -416 43 -494 357 41 -287 -285 46 151 574 41 -289 68 49 -515 -540 41 -367 -178 47 -887 151 45 197 -272 47 714 724 45 -737 94 49 810 830 47 808 -695 41 537 -637 49 -142 -167 44 -749 -631 47 445 -444 42 801 910 43 59 363 42 -912 466 50 -649 -479 48 -958 -511 49 88...
output:
50 150 -996 -1662 -998 343 -1000 2348 -956 -2516 -958 -511 -960 1494 -910 -1539 -912 466 -914 2471 -885 -1854 -887 151 -889 2156 -866 -2119 -868 -114 -870 1891 -784 -2389 -786 -384 -788 1621 -747 -2636 -749 -631 -751 1374 -735 -1911 -737 94 -739 2099 -647 -2484 -649 -479 -651 1526 -613 -1196 -615 80...
result:
ok ok Sum L = 7500
Test #9:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
50 151 -171 50 -367 -951 50 808 569 50 150 -618 50 27 -476 50 -846 729 50 549 -456 50 50 646 50 294 -70 50 -571 104 50 128 -265 50 913 -700 50 267 -965 50 896 846 50 -2 713 50 21 679 50 -515 975 50 168 180 50 -369 -98 50 676 115 50 643 -779 50 920 -237 50 -324 450 50 149 -378 50 -882 -602 50 -126 -7...
output:
50 150 -880 -2607 -882 -602 -884 1403 -849 -1726 -851 279 -853 2284 -844 -1276 -846 729 -848 2734 -839 -1404 -841 601 -843 2606 -602 -2173 -604 -168 -606 1837 -569 -1901 -571 104 -573 2109 -542 -1698 -544 307 -546 2312 -513 -1030 -515 975 -517 2980 -499 -1078 -501 927 -503 2932 -472 -1225 -474 780 -...
result:
ok ok Sum L = 7500
Test #10:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
50 4 5 34 1 -5 24 -4 -4 32 -3 3 28 0 -1 21 1 -4 25 0 0 30 0 -4 42 -3 -2 44 -5 -3 37 4 -1 46 5 2 20 2 2 37 -2 5 35 -2 -1 39 2 4 32 -4 -3 42 0 3 32 3 5 47 -4 1 2 5 -1 17 -5 -4 5 -2 2 29 -5 1 11 2 -5 43 4 4 14 -5 0 9 0 -5 17 5 1 27 -3 0 24 -1 4 16 5 0 50 3 -2 18 1 -2 6 2 -1 29 -1 3 38 1 5 36 -3 1 28 -3...
output:
50 150 -3 -2009 -5 -4 -7 2001 -3 -2008 -5 -3 -7 2002 -3 -2005 -5 0 -7 2005 -3 -2004 -5 1 -7 2006 -2 -2009 -4 -4 -6 2001 -2 -2008 -4 -3 -6 2002 -2 -2004 -4 1 -6 2006 -1 -2008 -3 -3 -5 2002 -1 -2007 -3 -2 -5 2003 -1 -2006 -3 -1 -5 2004 -1 -2005 -3 0 -5 2005 -1 -2004 -3 1 -5 2006 -1 -2002 -3 3 -5 2008 ...
result:
ok ok Sum L = 7500
Test #11:
score: 0
Accepted
time: 1ms
memory: 3592kb
input:
50 2 0 2 2 -3 2 4 1 2 -3 -3 2 -5 1 2 5 3 2 -5 -3 2 -3 -2 2 2 -1 2 2 3 2 4 4 1 1 -4 1 5 -1 2 -4 1 2 3 -2 1 -1 2 2 5 -5 2 -2 1 2 -5 -1 2 -2 -1 2 -1 -2 2 5 5 1 0 -2 2 1 1 1 2 2 2 3 5 2 -2 -4 1 -3 5 1 4 2 2 -4 -4 2 -3 2 1 5 0 2 -2 -2 2 -4 4 1 -2 5 2 2 5 1 3 -5 2 -4 5 2 -5 5 2 -2 4 2 -5 -5 2 -2 2 2 -3 -4...
output:
2 150 -3 -2010 -5 -5 -7 2000 -3 -2008 -5 -3 -7 2002 -3 -2006 -5 -1 -7 2004 -3 -2004 -5 1 -7 2006 -3 -2000 -5 5 -7 2010 -2 -2009 -4 -4 -6 2001 -2 -2004 -4 1 -6 2006 -2 -2001 -4 4 -6 2009 -2 -2000 -4 5 -6 2010 -1 -2009 -3 -4 -5 2001 -1 -2008 -3 -3 -5 2002 -1 -2007 -3 -2 -5 2003 -1 -2005 -3 0 -5 2005 -...
result:
ok ok Sum L = 300
Test #12:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
50 4 3 49 -5 -3 49 0 -3 50 -2 -4 49 -5 -5 50 4 0 49 -1 -2 49 -2 0 49 1 2 50 -1 -5 50 -5 -1 50 -5 5 49 2 0 50 -2 -3 50 -4 -5 50 0 -2 50 -5 4 50 -1 1 49 -1 -4 49 -3 -1 49 1 -3 50 -4 1 50 0 5 50 1 -2 50 -1 5 50 4 2 50 4 -3 49 1 -4 49 -1 -1 49 -3 -5 50 4 -4 50 3 2 49 3 -3 49 0 2 50 -3 -4 49 5 -1 49 -3 5...
output:
50 150 -3 -2010 -5 -5 -7 2000 -3 -2008 -5 -3 -7 2002 -3 -2006 -5 -1 -7 2004 -3 -2001 -5 4 -7 2009 -3 -2000 -5 5 -7 2010 -2 -2010 -4 -5 -6 2000 -2 -2004 -4 1 -6 2006 -2 -2001 -4 4 -6 2009 -1 -2010 -3 -5 -5 2000 -1 -2009 -3 -4 -5 2001 -1 -2006 -3 -1 -5 2004 -1 -2000 -3 5 -5 2010 0 -2009 -2 -4 -4 2001 ...
result:
ok ok Sum L = 7500
Test #13:
score: 0
Accepted
time: 2ms
memory: 3920kb
input:
50 114 514 30 115 514 41 116 514 6 117 514 49 118 514 10 119 514 49 120 514 1 121 514 7 122 514 3 123 514 4 124 514 1 125 514 12 126 514 15 127 514 16 128 514 34 129 514 24 130 514 49 131 514 43 132 514 25 133 514 12 134 514 26 135 514 13 136 514 12 137 514 15 138 514 7 139 514 25 140 514 5 141 514 ...
output:
49 150 116 -1491 114 514 112 2519 117 -1491 115 514 113 2519 118 -1491 116 514 114 2519 119 -1491 117 514 115 2519 120 -1491 118 514 116 2519 121 -1491 119 514 117 2519 122 -1491 120 514 118 2519 123 -1491 121 514 119 2519 124 -1491 122 514 120 2519 125 -1491 123 514 121 2519 126 -1491 124 514 122 2...
result:
ok ok Sum L = 7350
Test #14:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
50 191 981 19 191 980 41 191 979 20 191 978 14 191 977 2 191 976 49 191 975 40 191 974 3 191 973 20 191 972 6 191 971 13 191 970 4 191 969 4 191 968 47 191 967 32 191 966 11 191 965 34 191 964 30 191 963 3 191 962 16 191 961 24 191 960 30 191 959 34 191 958 31 191 957 24 191 956 29 191 955 42 191 95...
output:
49 150 193 -1073 191 932 189 2937 193 -1072 191 933 189 2938 193 -1071 191 934 189 2939 193 -1070 191 935 189 2940 193 -1069 191 936 189 2941 193 -1068 191 937 189 2942 193 -1067 191 938 189 2943 193 -1066 191 939 189 2944 193 -1065 191 940 189 2945 193 -1064 191 941 189 2946 193 -1063 191 942 189 2...
result:
ok ok Sum L = 7350
Test #15:
score: 0
Accepted
time: 2ms
memory: 3656kb
input:
50 -123 456 47 -122 457 35 -121 458 25 -120 459 35 -119 460 30 -118 461 33 -117 462 21 -116 463 31 -115 464 21 -114 465 35 -113 466 20 -112 467 17 -111 468 25 -110 469 3 -109 470 29 -108 471 35 -107 472 4 -106 473 44 -105 474 4 -104 475 28 -103 476 49 -102 477 9 -101 478 39 -100 479 9 -99 480 21 -98...
output:
50 150 -121 -1549 -123 456 -125 2461 -120 -1548 -122 457 -124 2462 -119 -1547 -121 458 -123 2463 -118 -1546 -120 459 -122 2464 -117 -1545 -119 460 -121 2465 -116 -1544 -118 461 -120 2466 -115 -1543 -117 462 -119 2467 -114 -1542 -116 463 -118 2468 -113 -1541 -115 464 -117 2469 -112 -1540 -114 465 -11...
result:
ok ok Sum L = 7500
Test #16:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
50 321 -525 46 322 -526 14 323 -527 16 324 -528 38 325 -529 22 326 -530 24 327 -531 48 328 -532 5 329 -533 7 330 -534 30 331 -535 25 332 -536 2 333 -537 13 334 -538 1 335 -539 33 336 -540 8 337 -541 9 338 -542 2 339 -543 29 340 -544 17 341 -545 41 342 -546 39 343 -547 9 344 -548 47 345 -549 47 346 -...
output:
50 150 323 -2530 321 -525 319 1480 324 -2531 322 -526 320 1479 325 -2532 323 -527 321 1478 326 -2533 324 -528 322 1477 327 -2534 325 -529 323 1476 328 -2535 326 -530 324 1475 329 -2536 327 -531 325 1474 330 -2537 328 -532 326 1473 331 -2538 329 -533 327 1472 332 -2539 330 -534 328 1471 333 -2540 331...
result:
ok ok Sum L = 7500
Test #17:
score: 0
Accepted
time: 2ms
memory: 3748kb
input:
50 -444 -555 23 -445 -556 32 -446 -557 36 -447 -558 29 -448 -559 4 -449 -560 25 -450 -561 29 -451 -562 5 -452 -563 9 -453 -564 28 -454 -565 35 -455 -566 26 -456 -567 22 -457 -568 39 -458 -569 13 -459 -570 50 -460 -571 37 -461 -572 14 -462 -573 26 -463 -574 49 -464 -575 23 -465 -576 44 -466 -577 2 -4...
output:
50 150 -491 -2609 -493 -604 -495 1401 -490 -2608 -492 -603 -494 1402 -489 -2607 -491 -602 -493 1403 -488 -2606 -490 -601 -492 1404 -487 -2605 -489 -600 -491 1405 -486 -2604 -488 -599 -490 1406 -485 -2603 -487 -598 -489 1407 -484 -2602 -486 -597 -488 1408 -483 -2601 -485 -596 -487 1409 -482 -2600 -48...
result:
ok ok Sum L = 7500
Test #18:
score: 0
Accepted
time: 2ms
memory: 3632kb
input:
50 -142 0 48 -143 1 22 -144 2 45 -145 3 9 -146 4 36 -147 5 46 -148 6 26 -149 7 26 -150 8 9 -151 9 19 -152 10 22 -153 11 14 -154 12 8 -155 13 20 -156 14 41 -157 15 47 -158 16 22 -159 17 50 -160 18 3 -161 19 12 -162 20 15 -163 21 32 -164 22 46 -165 23 45 -166 24 3 -167 25 27 -168 26 33 -169 27 17 -170...
output:
50 150 -189 -1956 -191 49 -193 2054 -188 -1957 -190 48 -192 2053 -187 -1958 -189 47 -191 2052 -186 -1959 -188 46 -190 2051 -185 -1960 -187 45 -189 2050 -184 -1961 -186 44 -188 2049 -183 -1962 -185 43 -187 2048 -182 -1963 -184 42 -186 2047 -181 -1964 -183 41 -185 2046 -180 -1965 -182 40 -184 2045 -17...
result:
ok ok Sum L = 7500
Test #19:
score: 0
Accepted
time: 1ms
memory: 3484kb
input:
12 1000 1000 50 1000 -1000 50 1000 999 50 999 1000 50 999 -1000 50 -999 1000 50 1000 -999 50 -999 -1000 50 -1000 1000 50 -1000 -1000 50 -1000 -999 50 -1000 999 50
output:
50 36 -998 -3005 -1000 -1000 -1002 1005 -998 -3004 -1000 -999 -1002 1006 -997 -3005 -999 -1000 -1001 1005 -998 -1006 -1000 999 -1002 3004 -998 -1005 -1000 1000 -1002 3005 -997 -1005 -999 1000 -1001 3005 1001 -3005 999 -1000 997 1005 1002 -3005 1000 -1000 998 1005 1002 -3004 1000 -999 998 1006 1001 -...
result:
ok ok Sum L = 1800
Test #20:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
4 1000 1000 50 1000 -1000 50 -1000 1000 50 -1000 -1000 50
output:
50 12 -998 -3005 -1000 -1000 -1002 1005 -998 -1005 -1000 1000 -1002 3005 1002 -3005 1000 -1000 998 1005 1002 -1005 1000 1000 998 3005 12 -995 -6012 -1000 -1000 -999 -2002 -995 -4012 -1000 1000 -999 -2 1005 -6012 1000 -1000 1001 -2002 1005 -4012 1000 1000 1001 -2 12 -992 -9019 -1000 -1000 -996 -5009 ...
result:
ok ok Sum L = 600
Extra Test:
score: 0
Extra Test Passed