QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#253861#7680. Subwayucup-team138AC ✓3ms3820kbC++142.0kb2023-11-17 17:44:142023-11-17 17:44:14

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3616kb

input:

3
1 2 1
2 1 2
3 3 2

output:

2
5 1 2 2520 -6280 2 1 2521 -6281 3 3 
5 4389 -10941 6908 -17223 2 1 6909 -17224 3 3 

result:

ok ok Sum L = 10

Test #2:

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

input:

1
1 1 1

output:

1
2 3000 3002 1 1

result:

ok ok Sum L = 2

Test #3:

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

input:

1
1 1 50

output:

50
2 3000 3002 1 1
2 3000 3003 1 1
2 3000 3004 1 1
2 3000 3005 1 1
2 3000 3006 1 1
2 3000 3007 1 1
2 3000 3008 1 1
2 3000 3009 1 1
2 3000 3010 1 1
2 3000 3011 1 1
2 3000 3012 1 1
2 3000 3013 1 1
2 3000 3014 1 1
2 3000 3015 1 1
2 3000 3016 1 1
2 3000 3017 1 1
2 3000 3018 1 1
2 3000 3019 1 1
2 3000 30...

result:

ok ok Sum L = 100

Test #4:

score: 0
Accepted
time: 3ms
memory: 3768kb

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
99 -885 -775 160550218 -240825327 -870 -697 152875852 -229313778 -888 -667 152646748 -228970122 -668 -725 131876504 -197814756 -784 -537 130807320 -196210980 -981 -193 127103566 -190655349 -548 -652 112557038 -168835557 -462 -719 107822680 -161734020 -371 -812 104501024 -156751536 -306 -897 10354...

result:

ok ok Sum L = 4950

Test #5:

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

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
99 -756 -909 156006808 -234010212 -571 -716 120078672 -180118008 -595 -470 104042628 -156063942 -658 -229 92855532 -139283298 -162 -959 91786960 -137680440 -192 -890 89954242 -134931363 -197 -795 83272562 -124908843 -680 -67 83004812 -124507218 -273 -672 82585228 -123877842 -666 -82 82546654 -1238...

result:

ok ok Sum L = 99

Test #6:

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

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
99 -962 -540 151424882 -227137323 -888 -613 148523200 -222784800 -792 -625 138443512 -207665268 -552 -966 136992874 -205489311 -637 -801 134129214 -201193821 -615 -675 121987678 -182981517 -973 100 103813164 -155719746 -999 330 89227996 -133841994 -561 -302 87319384 -130979076 -334 -535 79110696 -...

result:

ok ok Sum L = 495

Test #7:

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

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
99 -813 -921 163452046 -245178069 -767 -974 162230300 -243345450 -972 -312 135159766 -202739649 -982 -212 128668986 -193003479 -560 -748 121262294 -181893441 -893 -204 117863852 -176795778 -805 -304 115420356 -173130534 -313 -996 111908196 -167862294 -285 -980 107479228 -161218842 -325 -875 10404...

result:

ok ok Sum L = 990

Test #8:

score: 0
Accepted
time: 3ms
memory: 3704kb

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
99 -958 -511 148752216 -223128324 -749 -631 133976378 -200964567 -786 -384 119353018 -179029527 -649 -479 110915154 -166372731 -868 -114 108127722 -162191583 -282 -917 102324796 -153487194 -515 -540 100224608 -150336912 -887 151 90068090 -135102135 -998 343 88120748 -132181122 -588 -138 77888650 ...

result:

ok ok Sum L = 4950

Test #9:

score: 0
Accepted
time: 3ms
memory: 3716kb

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
99 -882 -602 146995966 -220493949 -367 -951 114657174 -171985761 -302 -989 110113700 -165170550 -604 -168 82012182 -123018273 -851 279 76170242 -114255363 -126 -799 75445528 -113168292 -571 104 57461832 -86192748 -841 601 50436258 -75654387 -193 -370 50360544 -75540816 -369 -98 49749472 -74624208...

result:

ok ok Sum L = 4950

Test #10:

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

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
99 -5 -4 135065154 -336831826 -5 -3 126863982 -316379358 -4 -4 114612687 -285826503 -4 -3 106411515 -265374035 -5 0 102260466 -255021954 -5 1 94059294 -234569486 -3 -3 85959048 -214368712 -2 -5 81908925 -204268325 -3 -2 77757876 -193916244 -4 1 73606827 -183564163 -3 -1 69556704 -173463776 -3 0 6...

result:

ok ok Sum L = 4950

Test #11:

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

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
99 -5 -5 143266326 -357284294 -5 -3 126863982 -316379358 -4 -4 114612687 -285826503 -5 -1 110461638 -275474422 -3 -4 94160220 -234821180 -5 1 94059294 -234569486 -3 -3 85959048 -214368712 -3 -2 77757876 -193916244 -2 -4 73707753 -183815857 -4 1 73606827 -183564163 -3 0 61355532 -153011308 -5 5 612...

result:

ok ok Sum L = 198

Test #12:

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

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
99 -5 -5 143266326 -357284294 -5 -3 126863982 -316379358 -4 -5 122813859 -306278971 -5 -1 110461638 -275474422 -3 -5 102361392 -255273648 -3 -4 94160220 -234821180 -2 -4 73707753 -183815857 -4 1 73606827 -183564163 -3 -1 69556704 -173463776 -5 4 69455778 -173212082 -2 -3 65506581 -163363389 -1 -5...

result:

ok ok Sum L = 4950

Test #13:

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

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
99 114 514 2633 -5768 115 514 2634 -5768 116 514 2635 -5768 117 514 2636 -5768 118 514 2637 -5768 119 514 2638 -5768 120 514 2639 -5768 121 514 2640 -5768 122 514 2641 -5768 123 514 2642 -5768 124 514 2643 -5768 125 514 2644 -5768 126 514 2645 -5768 127 514 2646 -5768 128 514 2647 -5768 129 514 2...

result:

ok ok Sum L = 4851

Test #14:

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

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
99 191 932 2710 -5350 191 933 2710 -5349 191 934 2710 -5348 191 935 2710 -5347 191 936 2710 -5346 191 937 2710 -5345 191 938 2710 -5344 191 939 2710 -5343 191 940 2710 -5342 191 941 2710 -5341 191 942 2710 -5340 191 943 2710 -5339 191 944 2710 -5338 191 945 2710 -5337 191 946 2710 -5336 191 947 2...

result:

ok ok Sum L = 4851

Test #15:

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

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
99 -123 456 2396 -5826 -122 457 2397 -5825 -121 458 2398 -5824 -120 459 2399 -5823 -119 460 2400 -5822 -118 461 2401 -5821 -117 462 2402 -5820 -116 463 2403 -5819 -115 464 2404 -5818 -114 465 2405 -5817 -113 466 2406 -5816 -112 467 2407 -5815 -111 468 2408 -5814 -110 469 2409 -5813 -109 470 2410 ...

result:

ok ok Sum L = 4950

Test #16:

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

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
99 321 -525 2840 -6807 322 -526 2841 -6808 323 -527 2842 -6809 324 -528 2843 -6810 325 -529 2844 -6811 326 -530 2845 -6812 327 -531 2846 -6813 328 -532 2847 -6814 329 -533 2848 -6815 330 -534 2849 -6816 331 -535 2850 -6817 332 -536 2851 -6818 333 -537 2852 -6819 334 -538 2853 -6820 335 -539 2854 ...

result:

ok ok Sum L = 4950

Test #17:

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

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
99 -493 -604 27 -10613 -492 -603 28 -10612 -491 -602 29 -10611 -490 -601 30 -10610 -489 -600 31 -10609 -488 -599 32 -10608 -487 -598 33 -10607 -486 -597 34 -10606 -485 -596 35 -10605 -484 -595 36 -10604 -483 -594 37 -10603 -482 -593 38 -10602 -481 -592 39 -10601 -480 -591 40 -10600 -479 -590 41 -...

result:

ok ok Sum L = 4950

Test #18:

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

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
99 -191 49 329 -9960 -190 48 330 -9961 -189 47 331 -9962 -188 46 332 -9963 -187 45 333 -9964 -186 44 334 -9965 -185 43 335 -9966 -184 42 336 -9967 -183 41 337 -9968 -182 40 338 -9969 -181 39 339 -9970 -180 38 340 -9971 -179 37 341 -9972 -178 36 342 -9973 -177 35 343 -9974 -176 34 344 -9975 -175 3...

result:

ok ok Sum L = 4950

Test #19:

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

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
23 -1000 -1000 190903998 -286355997 -1000 -999 190827636 -286241454 -999 -1000 190789456 -286184184 -1000 999 38256360 -57384540 -1000 1000 38179998 -57269997 -999 1000 38065456 -57098184 999 -1000 997 -997 1000 -1000 998 -997 1000 -999 998 -996 999 1000 997 1003 1000 999 998 1002 1000 1000 
23 -...

result:

ok ok Sum L = 1150

Test #20:

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

input:

4
1000 1000 50
1000 -1000 50
-1000 1000 50
-1000 -1000 50

output:

50
7 -1000 -1000 -381 -1553 1000 -1000 1619 -1553 -1000 1000 467345619 -417515553 1000 1000 
7 -1000 -1000 6700 -7879 1000 -1000 8700 -7879 -1000 1000 467352700 -417521879 1000 1000 
7 -1000 -1000 13781 -14205 1000 -1000 15781 -14205 -1000 1000 467359781 -417528205 1000 1000 
7 -1000 -1000 20862 -20...

result:

ok ok Sum L = 350

Extra Test:

score: 0
Extra Test Passed