QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#250154#7680. Subwayucup-team1565#AC ✓8ms4484kbC++203.2kb2023-11-12 22:04:322023-11-12 22:04:33

详细

Test #1:

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

input:

3
1 2 1
2 1 2
3 3 2

output:

2
11 0 -10000 1 2 0 -10001 -99999 -10001 1 -10002 2 1 1 -10005 -99999 -10005 2 -10006 3 3 2 -10009 
8 -100000 -10001 1 -10003 2 1 1 -10004 -100000 -10005 2 -10007 3 3 2 -10008 

result:

ok ok Sum L = 19

Test #2:

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

input:

1
1 1 1

output:

1
3 0 -10000 1 1 0 -10001 

result:

ok ok Sum L = 3

Test #3:

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

input:

1
1 1 50

output:

50
3 0 -10000 1 1 0 -10099 
3 0 -10001 1 1 0 -10098 
3 0 -10002 1 1 0 -10097 
3 0 -10003 1 1 0 -10096 
3 0 -10004 1 1 0 -10095 
3 0 -10005 1 1 0 -10094 
3 0 -10006 1 1 0 -10093 
3 0 -10007 1 1 0 -10092 
3 0 -10008 1 1 0 -10091 
3 0 -10009 1 1 0 -10090 
3 0 -10010 1 1 0 -10089 
3 0 -10011 1 1 0 -1008...

result:

ok ok Sum L = 150

Test #4:

score: 0
Accepted
time: 5ms
memory: 4048kb

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
199 -982 -10000 -981 -193 -982 -10041 -99951 -10041 -946 -10042 -945 382 -946 -10077 -99951 -10077 -927 -10078 -926 671 -927 -10103 -99951 -10103 -889 -10104 -888 -667 -889 -10131 -99951 -10131 -886 -10132 -885 -775 -886 -10173 -99951 -10173 -871 -10174 -870 -697 -871 -10273 -99951 -10273 -826 -1...

result:

ok ok Sum L = 6029

Test #5:

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

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
199 -773 -10000 -772 697 -773 -10001 -100000 -10001 -757 -10002 -756 -909 -757 -10003 -100000 -10003 -681 -10004 -680 -67 -681 -10005 -100000 -10005 -667 -10006 -666 -82 -667 -10007 -100000 -10007 -659 -10008 -658 -229 -659 -10009 -100000 -10009 -596 -10010 -595 -470 -596 -10011 -100000 -10011 -57...

result:

ok ok Sum L = 199

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
199 -1000 -10000 -999 330 -1000 -10005 -99996 -10005 -974 -10006 -973 100 -974 -10015 -99996 -10015 -963 -10016 -962 -540 -963 -10019 -99996 -10019 -889 -10020 -888 -613 -889 -10023 -99996 -10023 -843 -10024 -842 381 -843 -10027 -99996 -10027 -793 -10028 -792 -625 -793 -10035 -99996 -10035 -638 -1...

result:

ok ok Sum L = 668

Test #7:

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

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
199 -983 -10000 -982 -212 -983 -10005 -99991 -10005 -981 -10006 -980 753 -981 -10019 -99991 -10019 -973 -10020 -972 -312 -973 -10029 -99991 -10029 -894 -10030 -893 -204 -894 -10035 -99991 -10035 -814 -10036 -813 -921 -814 -10041 -99991 -10041 -806 -10042 -805 -304 -806 -10055 -99991 -10055 -768 -...

result:

ok ok Sum L = 1333

Test #8:

score: 0
Accepted
time: 8ms
memory: 4332kb

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
199 -999 -10000 -998 343 -999 -10085 -99951 -10085 -959 -10086 -958 -511 -959 -10183 -99951 -10183 -913 -10184 -912 466 -913 -10283 -99951 -10283 -888 -10284 -887 151 -888 -10373 -99951 -10373 -869 -10374 -868 -114 -869 -10473 -99951 -10473 -787 -10474 -786 -384 -787 -10567 -99951 -10567 -750 -10...

result:

ok ok Sum L = 9254

Test #9:

score: 0
Accepted
time: 8ms
memory: 4484kb

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
199 -883 -10000 -882 -602 -883 -10099 -99951 -10099 -852 -10100 -851 279 -852 -10199 -99951 -10199 -847 -10200 -846 729 -847 -10299 -99951 -10299 -842 -10300 -841 601 -842 -10399 -99951 -10399 -605 -10400 -604 -168 -605 -10499 -99951 -10499 -572 -10500 -571 104 -572 -10599 -99951 -10599 -545 -106...

result:

ok ok Sum L = 9950

Test #10:

score: 0
Accepted
time: 6ms
memory: 4100kb

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
199 -6 -10000 -5 1 -6 -10021 -99951 -10021 -6 -10022 -5 0 -6 -10039 -99951 -10039 -6 -10040 -5 -3 -6 -10113 -99951 -10113 -6 -10114 -5 -4 -6 -10123 -99951 -10123 -5 -10124 -4 1 -5 -10127 -99951 -10127 -5 -10128 -4 -3 -5 -10211 -99951 -10211 -5 -10212 -4 -4 -5 -10275 -99951 -10275 -4 -10276 -3 5 -...

result:

ok ok Sum L = 6722

Test #11:

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

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
199 -6 -10000 -5 5 -6 -10003 -99999 -10003 -6 -10004 -5 1 -6 -10007 -99999 -10007 -6 -10008 -5 -1 -6 -10011 -99999 -10011 -6 -10012 -5 -3 -6 -10015 -99999 -10015 -6 -10016 -5 -5 -6 -10019 -99999 -10019 -5 -10020 -4 5 -5 -10023 -99999 -10023 -5 -10024 -4 4 -5 -10025 -99999 -10025 -5 -10026 -4 1 -5 ...

result:

ok ok Sum L = 356

Test #12:

score: 0
Accepted
time: 8ms
memory: 4432kb

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
199 -6 -10000 -5 5 -6 -10097 -99951 -10097 -6 -10098 -5 4 -6 -10197 -99951 -10197 -6 -10198 -5 -1 -6 -10297 -99951 -10297 -6 -10298 -5 -3 -6 -10395 -99951 -10395 -6 -10396 -5 -5 -6 -10495 -99951 -10495 -5 -10496 -4 4 -5 -10595 -99951 -10595 -5 -10596 -4 1 -5 -10695 -99951 -10695 -5 -10696 -4 -5 -...

result:

ok ok Sum L = 9881

Test #13:

score: 0
Accepted
time: 5ms
memory: 4024kb

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
199 113 -10000 114 514 113 -10059 -99952 -10059 114 -10060 115 514 114 -10141 -99952 -10141 115 -10142 116 514 115 -10153 -99952 -10153 116 -10154 117 514 116 -10251 -99952 -10251 117 -10252 118 514 117 -10271 -99952 -10271 118 -10272 119 514 118 -10369 -99952 -10369 119 -10370 120 514 119 -10371...

result:

ok ok Sum L = 5857

Test #14:

score: 0
Accepted
time: 5ms
memory: 4104kb

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
199 190 -10000 191 981 190 -10037 -99952 -10037 190 -10038 191 980 190 -10119 -99952 -10119 190 -10120 191 979 190 -10159 -99952 -10159 190 -10160 191 978 190 -10187 -99952 -10187 190 -10188 191 977 190 -10191 -99952 -10191 190 -10192 191 976 190 -10289 -99952 -10289 190 -10290 191 975 190 -10369...

result:

ok ok Sum L = 5857

Test #15:

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

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
199 -124 -10000 -123 456 -124 -10093 -99951 -10093 -123 -10094 -122 457 -123 -10163 -99951 -10163 -122 -10164 -121 458 -122 -10213 -99951 -10213 -121 -10214 -120 459 -121 -10283 -99951 -10283 -120 -10284 -119 460 -120 -10343 -99951 -10343 -119 -10344 -118 461 -119 -10409 -99951 -10409 -118 -10410...

result:

ok ok Sum L = 6068

Test #16:

score: 0
Accepted
time: 5ms
memory: 4056kb

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
199 320 -10000 321 -525 320 -10091 -99951 -10091 321 -10092 322 -526 321 -10119 -99951 -10119 322 -10120 323 -527 322 -10151 -99951 -10151 323 -10152 324 -528 323 -10227 -99951 -10227 324 -10228 325 -529 324 -10271 -99951 -10271 325 -10272 326 -530 325 -10319 -99951 -10319 326 -10320 327 -531 326...

result:

ok ok Sum L = 6086

Test #17:

score: 0
Accepted
time: 5ms
memory: 4156kb

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
199 -494 -10000 -493 -604 -494 -10013 -99951 -10013 -493 -10014 -492 -603 -493 -10037 -99951 -10037 -492 -10038 -491 -602 -492 -10125 -99951 -10125 -491 -10126 -490 -601 -491 -10137 -99951 -10137 -490 -10138 -489 -600 -490 -10203 -99951 -10203 -489 -10204 -488 -599 -489 -10303 -99951 -10303 -488 ...

result:

ok ok Sum L = 5933

Test #18:

score: 0
Accepted
time: 6ms
memory: 4140kb

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
199 -192 -10000 -191 49 -192 -10067 -99951 -10067 -191 -10068 -190 48 -191 -10135 -99951 -10135 -190 -10136 -189 47 -190 -10235 -99951 -10235 -189 -10236 -188 46 -189 -10305 -99951 -10305 -188 -10306 -187 45 -188 -10401 -99951 -10401 -187 -10402 -186 44 -187 -10427 -99951 -10427 -186 -10428 -185 ...

result:

ok ok Sum L = 6383

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
47 -1001 -10000 -1000 1000 -1001 -10099 -99951 -10099 -1001 -10100 -1000 999 -1001 -10199 -99951 -10199 -1001 -10200 -1000 -999 -1001 -10299 -99951 -10299 -1001 -10300 -1000 -1000 -1001 -10399 -99951 -10399 -1000 -10400 -999 1000 -1000 -10499 -99951 -10499 -1000 -10500 -999 -1000 -1000 -10599 -99...

result:

ok ok Sum L = 2350

Test #20:

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

input:

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

output:

50
15 -1001 -10000 -1000 1000 -1001 -10099 -99951 -10099 -1001 -10100 -1000 -1000 -1001 -10199 -99951 -10199 999 -10200 1000 1000 999 -10299 -99951 -10299 999 -10300 1000 -1000 999 -10399 
15 -1001 -10001 -1000 1000 -1001 -10098 -99952 -10099 -1001 -10101 -1000 -1000 -1001 -10198 -99952 -10199 999 -...

result:

ok ok Sum L = 750

Extra Test:

score: 0
Extra Test Passed