QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#238064#7680. Subwayucup-team1005#AC ✓1ms3704kbC++174.0kb2023-11-04 15:41:452023-11-04 15:41:46

详细

Test #1:

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

input:

3
1 2 1
2 1 2
3 3 2

output:

2
11 -1000000000 -999999999 -12 -999999999 1 2 -11 -999999999 -10 -999999999 2 1 -7 -999999999 -6 -999999999 3 3 -3 -999999999 1000000000 -999999999
8 -1000000000 -1000000000 -9 -1000000000 2 1 -8 -1000000000 -5 -1000000000 3 3 -4 -1000000000 1000000000 -1000000000

result:

ok ok Sum L = 19

Test #2:

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

input:

1
1 1 1

output:

1
5 -1000000000 -1000000000 -2 -1000000000 1 1 -1 -1000000000 1000000000 -1000000000

result:

ok ok Sum L = 5

Test #3:

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

input:

1
1 1 50

output:

50
5 -1000000000 -999999951 -100 -999999951 1 1 -1 -999999951 1000000000 -999999951
5 -1000000000 -999999952 -99 -999999952 1 1 -2 -999999952 1000000000 -999999952
5 -1000000000 -999999953 -98 -999999953 1 1 -3 -999999953 1000000000 -999999953
5 -1000000000 -999999954 -97 -999999954 1 1 -4 -99999995...

result:

ok ok Sum L = 250

Test #4:

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

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
152 -1000000000 -999999951 -5982 -999999951 -981 -193 -5941 -999999951 -5940 -999999951 -945 382 -5905 -999999951 -5904 -999999951 -926 671 -5879 -999999951 -5878 -999999951 -888 -667 -5851 -999999951 -5850 -999999951 -885 -775 -5809 -999999951 -5808 -999999951 -870 -697 -5709 -999999951 -5708 -9...

result:

ok ok Sum L = 3679

Test #5:

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

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
152 -1000000000 -1000000000 -873 -1000000000 -772 697 -872 -1000000000 -871 -1000000000 -756 -909 -870 -1000000000 -869 -1000000000 -680 -67 -868 -1000000000 -867 -1000000000 -666 -82 -866 -1000000000 -865 -1000000000 -658 -229 -864 -1000000000 -863 -1000000000 -595 -470 -862 -1000000000 -861 -100...

result:

ok ok Sum L = 152

Test #6:

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

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
152 -1000000000 -999999996 -1500 -999999996 -999 330 -1495 -999999996 -1494 -999999996 -973 100 -1485 -999999996 -1484 -999999996 -962 -540 -1481 -999999996 -1480 -999999996 -888 -613 -1477 -999999996 -1476 -999999996 -842 381 -1473 -999999996 -1472 -999999996 -792 -625 -1465 -999999996 -1464 -999...

result:

ok ok Sum L = 433

Test #7:

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

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
152 -1000000000 -999999991 -1983 -999999991 -982 -212 -1978 -999999991 -1977 -999999991 -980 753 -1964 -999999991 -1963 -999999991 -972 -312 -1954 -999999991 -1953 -999999991 -893 -204 -1948 -999999991 -1947 -999999991 -813 -921 -1942 -999999991 -1941 -999999991 -805 -304 -1928 -999999991 -1927 -...

result:

ok ok Sum L = 863

Test #8:

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

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
152 -1000000000 -999999951 -5999 -999999951 -998 343 -5914 -999999951 -5913 -999999951 -958 -511 -5816 -999999951 -5815 -999999951 -912 466 -5716 -999999951 -5715 -999999951 -887 151 -5626 -999999951 -5625 -999999951 -868 -114 -5526 -999999951 -5525 -999999951 -786 -384 -5432 -999999951 -5431 -99...

result:

ok ok Sum L = 6904

Test #9:

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

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
152 -1000000000 -999999951 -5883 -999999951 -882 -602 -5784 -999999951 -5783 -999999951 -851 279 -5684 -999999951 -5683 -999999951 -846 729 -5584 -999999951 -5583 -999999951 -841 601 -5484 -999999951 -5483 -999999951 -604 -168 -5384 -999999951 -5383 -999999951 -571 104 -5284 -999999951 -5283 -999...

result:

ok ok Sum L = 7600

Test #10:

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

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
152 -1000000000 -999999951 -5006 -999999951 -5 1 -4985 -999999951 -4984 -999999951 -5 0 -4967 -999999951 -4966 -999999951 -5 -3 -4893 -999999951 -4892 -999999951 -5 -4 -4883 -999999951 -4882 -999999951 -4 1 -4879 -999999951 -4878 -999999951 -4 -3 -4795 -999999951 -4794 -999999951 -4 -4 -4731 -999...

result:

ok ok Sum L = 4372

Test #11:

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

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
152 -1000000000 -999999999 -206 -999999999 -5 5 -203 -999999999 -202 -999999999 -5 1 -199 -999999999 -198 -999999999 -5 -1 -195 -999999999 -194 -999999999 -5 -3 -191 -999999999 -190 -999999999 -5 -5 -187 -999999999 -186 -999999999 -4 5 -183 -999999999 -182 -999999999 -4 4 -181 -999999999 -180 -999...

result:

ok ok Sum L = 262

Test #12:

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

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
152 -1000000000 -999999951 -5006 -999999951 -5 5 -4909 -999999951 -4908 -999999951 -5 4 -4809 -999999951 -4808 -999999951 -5 -1 -4709 -999999951 -4708 -999999951 -5 -3 -4611 -999999951 -4610 -999999951 -5 -5 -4511 -999999951 -4510 -999999951 -4 4 -4411 -999999951 -4410 -999999951 -4 1 -4311 -9999...

result:

ok ok Sum L = 7531

Test #13:

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

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
152 -1000000000 -999999952 -4787 -999999952 114 514 -4728 -999999952 -4727 -999999952 115 514 -4646 -999999952 -4645 -999999952 116 514 -4634 -999999952 -4633 -999999952 117 514 -4536 -999999952 -4535 -999999952 118 514 -4516 -999999952 -4515 -999999952 119 514 -4418 -999999952 -4417 -999999952 1...

result:

ok ok Sum L = 3554

Test #14:

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

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
152 -1000000000 -999999952 -4710 -999999952 191 981 -4673 -999999952 -4672 -999999952 191 980 -4591 -999999952 -4590 -999999952 191 979 -4551 -999999952 -4550 -999999952 191 978 -4523 -999999952 -4522 -999999952 191 977 -4519 -999999952 -4518 -999999952 191 976 -4421 -999999952 -4420 -999999952 1...

result:

ok ok Sum L = 3554

Test #15:

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

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
152 -1000000000 -999999951 -5124 -999999951 -123 456 -5031 -999999951 -5030 -999999951 -122 457 -4961 -999999951 -4960 -999999951 -121 458 -4911 -999999951 -4910 -999999951 -120 459 -4841 -999999951 -4840 -999999951 -119 460 -4781 -999999951 -4780 -999999951 -118 461 -4715 -999999951 -4714 -99999...

result:

ok ok Sum L = 3718

Test #16:

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

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
152 -1000000000 -999999951 -4680 -999999951 321 -525 -4589 -999999951 -4588 -999999951 322 -526 -4561 -999999951 -4560 -999999951 323 -527 -4529 -999999951 -4528 -999999951 324 -528 -4453 -999999951 -4452 -999999951 325 -529 -4409 -999999951 -4408 -999999951 326 -530 -4361 -999999951 -4360 -99999...

result:

ok ok Sum L = 3736

Test #17:

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

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
152 -1000000000 -999999951 -5494 -999999951 -493 -604 -5481 -999999951 -5480 -999999951 -492 -603 -5457 -999999951 -5456 -999999951 -491 -602 -5369 -999999951 -5368 -999999951 -490 -601 -5357 -999999951 -5356 -999999951 -489 -600 -5291 -999999951 -5290 -999999951 -488 -599 -5191 -999999951 -5190 ...

result:

ok ok Sum L = 3583

Test #18:

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

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
152 -1000000000 -999999951 -5192 -999999951 -191 49 -5125 -999999951 -5124 -999999951 -190 48 -5057 -999999951 -5056 -999999951 -189 47 -4957 -999999951 -4956 -999999951 -188 46 -4887 -999999951 -4886 -999999951 -187 45 -4791 -999999951 -4790 -999999951 -186 44 -4765 -999999951 -4764 -999999951 -...

result:

ok ok Sum L = 4033

Test #19:

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

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
38 -1000000000 -999999951 -2201 -999999951 -1000 1000 -2102 -999999951 -2101 -999999951 -1000 999 -2002 -999999951 -2001 -999999951 -1000 -999 -1902 -999999951 -1901 -999999951 -1000 -1000 -1802 -999999951 -1801 -999999951 -999 1000 -1702 -999999951 -1701 -999999951 -999 -1000 -1602 -999999951 -1...

result:

ok ok Sum L = 1900

Test #20:

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

input:

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

output:

50
14 -1000000000 -999999951 -1401 -999999951 -1000 1000 -1302 -999999951 -1301 -999999951 -1000 -1000 -1202 -999999951 -1201 -999999951 1000 1000 -1102 -999999951 -1101 -999999951 1000 -1000 -1002 -999999951 1000000000 -999999951
14 -1000000000 -999999952 -1400 -999999952 -1000 1000 -1303 -99999995...

result:

ok ok Sum L = 700

Extra Test:

score: 0
Extra Test Passed