QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#249992#4786. Balancehouzhiyuan#AC ✓1ms3556kbC++141.5kb2023-11-12 19:18:182023-11-12 19:18:18

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3424kb

input:

4
1 1 1 1
1 1 1 1
1 1 1 0
1 1 1 1

output:

16
1 1 1 1 
1 1 1 1 
1 1 1 1 
1 1 1 1 

result:

ok correct plan, good job!

Test #2:

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

input:

24
20594 15420 1258 6283 18795 7007 20323 16605 27476 270 2082 5286 32911 30847 17237 14187 9258 26749 27575 8042 2690 25493 23540 30506
15252 21600 26878 32384 22641 12550 29190 28725 33837 7235 6316 1318 10773 4177 6535 33628 31431 19567 25294 22712 18861 16725 25214 12950
29777 22466 16743 2033 3...

output:

18759816
31216 30805 32998 30600 34673 35450 33444 31104 30091 32296 35259 31039 32911 32919 32740 31359 33625 32358 33745 28701 30559 32297 28701 32166 
34962 34551 36744 34346 38419 39196 37190 34850 33837 36042 39005 34785 36657 36665 36486 35105 37371 36104 37491 32447 34305 36043 32447 35912 
2...

result:

ok correct plan, good job!

Test #3:

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

input:

26
33843 4186 34463 31487 11691 21399 21812 3854 4528 13263 21833 19716 29022 10705 8168 8409 27934 3783 29849 24042 14065 15002 4843 6517 21734 12278
26338 1119 5487 14023 25 31245 22085 4572 1142 29790 5880 24200 27303 22103 33926 31608 28620 13493 34221 1937 3683 2232 26225 5911 29024 12063
1699 ...

output:

22604374
33843 32386 34463 32386 32386 32632 32386 33449 34725 36683 33717 34804 32386 37205 32386 35456 34443 35283 33080 33021 33953 36490 32386 32386 32386 33747 
35383 33926 36003 33926 33926 34172 33926 34989 36265 38223 35257 36344 33926 38745 33926 36996 35983 36823 34620 34561 35493 38030 33...

result:

ok correct plan, good job!

Test #4:

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

input:

18
23270 27030 2054 8583 23368 14462 14272 29654 6022 25600 28450 4197 17277 25975 14277 29321 31388 31080
1518 22875 18906 19655 8207 15611 33521 5465 27573 6108 10647 7821 14313 32320 7911 34480 10825 2182
2083 17392 22176 34917 29951 14131 32477 34599 1640 20762 13100 29612 27387 22275 31043 1947...

output:

10419318
32293 28412 33491 32711 30100 31487 29697 31291 28893 35583 31130 33289 30186 32801 30942 30656 31388 32647 
36117 32236 37315 36535 33924 35311 33521 35115 32717 39407 34954 37113 34010 36625 34766 34480 35212 36471 
35601 31720 36799 36019 33408 34795 33005 34599 32201 38891 34438 36597 3...

result:

ok correct plan, good job!

Test #5:

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

input:

44
15140 28131 21203 163 17542 29126 5041 11316 847 978 19798 5350 18220 12453 19900 34926 3993 18621 19511 21231 12595 2721 23644 9306 5608 31446 7952 12124 7209 21403 6117 19196 7370 5341 2312 7162 10213 13682 23667 24886 6377 19035 12989 17252
2619 8840 25090 2323 127 18180 34138 23228 28605 1677...

output:

64951392
34040 36165 32142 32454 31602 31446 33228 31700 31446 31446 32543 33233 31446 33303 33358 34926 33294 32526 32734 32970 32093 32847 34011 32961 31446 31446 31614 33819 31817 31701 32624 31867 34317 31446 34364 31446 31909 32730 32723 33177 32718 34095 32067 31446 
34950 37075 33052 33364 32...

result:

ok correct plan, good job!

Test #6:

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

input:

3
10563 8010 6959
11216 11399 13097
30720 30111 23171

output:

161313
10563 9954 9954 
13706 13097 13097 
30720 30111 30111 

result:

ok correct plan, good job!

Test #7:

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

input:

4
34584 6954 17306 11086
28520 28466 18108 10648
26437 15242 31334 23599
8251 32027 34767 30388

output:

499088
34584 34530 37270 32891 
28520 28466 31206 26827 
28648 28594 31334 26955 
32081 32027 34767 30388 

result:

ok correct plan, good job!

Test #8:

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

input:

20
17259 25284 1594 26730 18545 31186 1181 26771 18487 5574 21215 9070 6559 19266 1635 16994 944 8669 29722 9442
2975 6789 31414 32924 25636 7931 22773 19221 3881 33053 14346 21434 31779 14067 1318 27749 16783 31700 20821 23135
4427 20297 19889 32816 12284 26493 6994 10187 13211 8014 24806 24140 209...

output:

13009140
29695 29445 29277 30590 29002 31186 31442 33538 30632 31133 30557 30109 29445 29668 29002 29002 30500 31803 29722 29748 
32029 31779 31611 32924 31336 33520 33776 35872 32966 33467 32891 32443 31779 32002 31336 31336 32834 34137 32056 32082 
31921 31671 31503 32816 31228 33412 33668 35764 3...

result:

ok correct plan, good job!

Test #9:

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

input:

5
12838 3253 34754 12413 4646
12234 5306 25539 12888 17930
19531 17112 15299 16114 27633
1153 4829 9496 3835 29367
34413 19721 30834 14852 30496

output:

642670
24522 22103 34754 22103 32624 
15307 12888 25539 12888 23409 
19531 17112 29763 17112 27633 
21265 18846 31497 18846 29367 
34413 31994 44645 31994 42515 

result:

ok correct plan, good job!

Test #10:

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

input:

37
4779 26318 25075 18596 6171 9356 26569 16754 4333 14702 20811 18649 6722 3745 31882 14687 5527 9119 9968 31512 19943 24820 27630 25971 17947 30039 7531 18485 3828 30851 28646 21048 11348 18854 17931 26859 22542
21620 22048 20254 31762 26810 5871 24042 24540 10252 16159 29985 21989 7255 27785 1450...

output:

45795307
33353 30916 31697 30834 30068 29050 28522 29459 31282 29279 31777 33122 30284 30830 31882 32068 31299 33028 31880 31512 29980 31480 32804 27850 32119 30068 29872 32087 27850 30851 32190 30748 31209 31355 31189 27850 31085 
37441 35004 35785 34922 34156 33138 32610 33547 35370 33367 35865 37...

result:

ok correct plan, good job!

Test #11:

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

input:

14
15797 2485 15462 5532 30372 10650 16946 26173 32717 8732 15046 22759 3231 1660
3962 11099 10263 32811 8717 2003 29829 7304 27728 12879 18022 3211 33845 2676
18892 8424 31001 28706 23706 16267 33669 24464 1620 11599 193 12281 8923 19403
10922 18835 12397 9787 750 24428 8408 998 9349 21352 2198 264...

output:

6203022
29286 28821 25606 31709 33343 26480 28727 32218 32717 29741 30466 25606 32743 29270 
30388 29923 26708 32811 34445 27582 29829 33320 33819 30843 31568 26708 33845 30372 
34681 34216 31001 37104 38738 31875 34122 37613 38112 35136 35861 31001 38138 34665 
34787 34322 31107 37210 38844 31981 3...

result:

ok correct plan, good job!

Test #12:

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

input:

19
4383 31190 32888 26910 20319 12703 9773 30227 7217 14805 19936 5263 27575 18369 17343 16249 12279 27038 21983
19566 2025 3229 31436 971 9004 5753 14115 8411 15405 5094 17607 20262 20275 12128 247 16644 1457 30921
20349 27265 28750 24116 18742 2082 27413 14862 5394 9311 34185 5365 6428 32218 605 2...

output:

11957213
30528 31190 32888 29608 31744 29608 34913 32957 33308 32887 31437 33020 34427 29608 29608 33364 29647 29608 31009 
32356 33018 34716 31436 33572 31436 36741 34785 35136 34715 33265 34848 36255 31436 31436 35192 31475 31436 32837 
33276 33938 35636 32356 34492 32356 37661 35705 36056 35635 3...

result:

ok correct plan, good job!

Test #13:

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

input:

43
34875 26069 20783 2222 34599 30828 12262 27171 16052 28488 25466 29726 18716 15186 15635 31793 32767 12033 26828 21335 33596 23405 2682 3116 1902 25529 20689 34715 8696 29031 15039 8186 4662 3416 20409 33524 8728 11136 3500 20547 33269 11985 21031
28871 22276 32146 16059 28721 3843 33538 20044 29...

output:

62760693
34875 33657 33657 34855 34599 33812 33976 34374 34296 33657 33657 33657 34133 35197 33657 35519 33657 35377 34867 36106 34690 34500 33657 35660 34411 33657 34020 34715 33657 34710 34763 34220 34309 33657 33657 33657 33657 33657 33657 33657 33657 35200 33657 
34437 33219 33219 34417 34161 33...

result:

ok correct plan, good job!

Test #14:

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

input:

13
1434 25104 31831 19679 29070 6693 26505 18173 31840 15315 932 10718 2874
954 15189 20202 24599 30193 5467 3312 22174 20461 12179 34284 31146 19659
2015 12066 1523 23248 959 19755 4231 24913 28257 25905 30770 19504 33664
12151 15808 8142 21004 17511 6673 20789 4451 6912 978 24836 1357 20002
20221 ...

output:

5191342
25416 33014 31831 26720 29070 31772 26505 25416 31840 28150 31943 34127 25718 
27757 35355 34172 29061 31411 34113 28846 27757 34181 30491 34284 36468 28059 
33362 40960 39777 34666 37016 39718 34451 33362 39786 36096 39889 42073 33664 
19700 27298 26115 21004 23354 26056 20789 19700 26124 2...

result:

ok correct plan, good job!

Test #15:

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

input:

24
12166 14922 14224 586 32801 6849 32091 7613 19214 13703 20783 7745 25554 20694 26335 33285 20234 9384 27098 10976 22194 29861 7179 511
11190 23334 28732 24361 17886 8795 12964 30066 16419 20818 33699 22468 7573 25266 25016 12931 4427 34262 34276 32201 25000 32990 28106 19821
8021 29235 24678 1206...

output:

19053360
30772 32900 30772 35973 32831 33689 32091 33891 30772 30772 32973 31660 32148 32955 31554 33493 31817 33395 33409 31334 31735 33192 31674 30772 
31639 33767 31639 36840 33698 34556 32958 34758 31639 31639 33840 32527 33015 33822 32421 34360 32684 34262 34276 32201 32602 34059 32541 31639 
3...

result:

ok correct plan, good job!

Test #16:

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

input:

35
28294 30258 2364 12899 4237 31996 12796 31146 10043 30552 3721 22822 13276 23074 24945 28712 31445 24491 34462 26184 4641 2016 23923 28889 4190 18810 623 11025 21900 6340 15450 30109 8671 26797 24588
2144 28510 20209 3765 29399 12679 25221 4427 22790 34902 19160 21222 28059 14519 7172 28304 1836 ...

output:

40965610
31154 33625 32602 34976 34124 33601 28603 32928 34537 34746 33770 33612 31367 31203 34410 31841 34430 28861 34462 33295 34197 28603 33524 34326 32133 32873 30453 33468 33105 32283 33942 35453 32003 33580 34659 
32632 35103 34080 36454 35602 35079 30081 34406 36015 36224 35248 35090 32845 32...

result:

ok correct plan, good job!

Test #17:

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

input:

22
27324 21312 22989 4189 12745 17815 29667 688 3851 24067 625 28155 11636 3678 12056 26600 25555 25429 6908 7512 27194 24462
2999 14745 28980 12822 4948 24445 4732 22776 5714 29564 9463 16077 30644 14890 28987 19327 3112 31794 25348 31380 32213 33046
17959 9740 6199 15896 3474 13118 29494 33559 147...

output:

15811422
27324 25116 29080 27755 25116 29597 29667 29562 28731 28719 25116 28285 27739 25116 25291 27694 26177 26920 26949 31098 28918 26670 
33700 31492 35456 34131 31492 35973 36043 35938 35107 35095 31492 34661 34115 31492 31667 34070 32553 33296 33325 37474 35294 33046 
32513 30305 34269 32944 3...

result:

ok correct plan, good job!

Test #18:

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

input:

49
636 14777 21591 17404 30943 34889 27449 143 9950 29951 9311 34623 24649 25393 25541 27324 24370 2426 1505 24495 20626 13309 31223 8591 25036 992 28406 6365 4875 21745 23318 14272 22097 20959 11549 30774 13513 6900 21565 7707 26041 20758 32258 33530 7462 7034 26778 1584 34882
31748 31187 4900 2834...

output:

81340490
35651 33530 34778 32638 34207 34889 34753 34610 34093 34858 34718 34623 34537 32638 34375 35585 34566 35130 34677 34814 34787 33908 34133 33165 34956 34262 33889 33531 33771 32638 34605 35209 34470 34342 34801 34668 35061 33696 32638 34230 32749 35466 32638 33657 33847 33304 33411 34419 354...

result:

ok correct plan, good job!

Test #19:

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

input:

47
9183 29293 24720 7135 28724 9271 8117 30570 7041 12370 33306 1390 19979 8240 30087 26086 6670 24843 15498 19736 10826 7182 33916 22155 29101 34319 317 31306 11000 2124 19195 31200 28134 13376 11590 22433 11308 4104 1150 20039 23464 5844 31856 31850 4546 25020 26276
4025 33669 17988 34993 2791 920...

output:

74628762
34495 33341 32343 34201 34083 33156 32343 33897 33633 32343 33306 33794 32343 33229 33538 32343 33281 32345 32553 34218 32932 32552 33916 35801 33905 34319 32709 32343 33917 34696 33356 33398 32385 34559 32343 32343 33560 32343 33426 33806 33613 33461 33515 32683 32343 32877 33326 
35529 34...

result:

ok correct plan, good job!

Test #20:

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

input:

22
14453 31732 33814 5374 22916 9638 2254 30672 18129 10318 29738 20208 19396 25878 22764 6321 26748 11226 34916 24865 32453 30291
1557 9857 16371 33533 33949 15201 10337 22367 3671 23381 30770 30032 7570 29853 12678 14799 4561 592 6996 19219 1541 14116
25405 29716 19843 1697 22471 6267 17924 27315 ...

output:

15979722
32030 31732 33991 36058 36833 35931 30513 32476 33686 33939 33295 34877 35597 32378 29674 34495 32924 35022 34916 35800 32453 33324 
29505 29207 31466 33533 34308 33406 27988 29951 31161 31414 30770 32352 33072 29853 27149 31970 30399 32497 32391 33275 29928 30799 
32178 31880 34139 36206 3...

result:

ok correct plan, good job!

Test #21:

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

input:

50
29197 29962 30025 8386 9609 21545 25221 3331 7661 13361 22978 19917 20570 2280 12081 9657 22135 24037 14165 7741 2643 27027 6877 33478 23339 8173 943 957 12339 27854 32541 33260 3360 28334 18254 8346 19995 21291 26766 26766 28186 17892 25880 67 880 8731 6636 15873 5226 7744
2170 23973 24086 33957...

output:

84737200
31401 32873 31542 33616 32988 32097 33535 30823 34145 32866 29624 33056 33076 33086 31348 32493 30393 32302 30868 34420 33681 33657 33670 33478 34022 33150 33196 31601 32504 32602 33784 33260 32811 31259 32329 32509 34235 34370 33610 31684 33795 33007 33137 32361 32034 33173 33356 29940 321...

result:

ok correct plan, good job!

Test #22:

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

input:

41
29952 19058 23881 16062 22330 34663 20272 23976 17524 10929 22630 27101 3423 16243 3960 22207 23604 19703 29940 10240 34291 31680 29344 17693 6306 13521 31190 9409 28262 4447 21375 21556 5057 17221 12111 1510 24004 26933 20593 28812 10492
5499 1409 16985 28884 30796 6047 22407 5733 22504 12139 12...

output:

56732233
33861 31748 33449 32134 33543 34663 31748 33454 31748 34158 33450 34002 33398 34949 31748 33811 34248 33554 33865 31748 34291 34275 33850 34426 34138 37119 33964 33995 35281 32916 35071 31995 35057 34575 35243 33961 35375 33520 32747 35737 34971 
32756 30643 32344 31029 32438 33558 30643 32...

result:

ok correct plan, good job!

Test #23:

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

input:

8
12737 11169 12370 1315 19856 30794 19717 26962
28669 21497 8634 9821 19584 15757 13603 16126
25412 17596 28510 2135 27947 3510 12307 17197
3836 21522 14853 5451 6319 1199 27248 14806
207 1669 21766 28532 28810 27859 12866 15570
17042 32529 892 6950 29944 29192 2124 25999
1542 15932 28929 12814 953...

output:

1863320
32671 30794 35769 30794 35206 30794 30794 30794 
28669 26792 31767 26792 31204 26792 26792 26792 
25412 23535 28510 23535 27947 23535 23535 23535 
29125 27248 32223 27248 31660 27248 27248 27248 
30409 28532 33507 28532 32944 28532 28532 28532 
34406 32529 37504 32529 36941 32529 32529 32529...

result:

ok correct plan, good job!

Test #24:

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

input:

45
26823 20177 12837 31754 21315 27747 9780 25939 18396 1449 25379 16522 18137 18373 22549 15219 28865 33862 14644 16995 4106 12409 23365 12006 9329 23281 31945 29332 8057 6231 24539 33180 26574 20764 6849 18965 6684 17488 5435 6188 5067 10512 7221 12455 2106
22711 7226 8460 23677 25158 206 27829 12...

output:

68331375
33629 33878 33644 33129 34331 32042 33309 34869 34347 34860 31652 33406 33897 32957 33442 33744 35045 33862 33255 35183 34961 30315 34886 30315 34680 34173 31945 33472 31341 33918 34089 34551 33434 34990 33992 34744 33497 33394 34908 31981 34047 33152 34308 35369 34148 
35105 35354 35120 34...

result:

ok correct plan, good job!

Test #25:

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

input:

34
33593 22888 22260 14465 11760 21395 34903 26615 12817 18372 30285 9828 12558 22069 9208 29201 28304 30411 10265 2453 17850 8638 17161 28547 18275 20658 6755 18403 930 14649 2004 15830 10693 9506
11732 7068 28067 9132 13123 9059 20536 417 15350 4347 23479 28515 28028 7251 22330 21860 16373 13007 8...

output:

38613630
34966 31692 31692 32608 33300 33046 34903 32571 34508 32257 32750 31860 32726 32182 34661 33847 35539 35084 33558 33548 35933 32397 31692 33516 35926 33894 32278 31931 32250 32385 33376 35284 31692 34539 
32948 29674 29674 30590 31282 31028 32885 30553 32490 30239 30732 29842 30708 30164 32...

result:

ok correct plan, good job!

Test #26:

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

input:

8
26814 9111 19387 13500 26322 19796 33901 8883
24233 25319 33541 2508 11421 10716 22566 28843
19701 11284 24747 3752 17242 4282 7525 33133
22298 16725 25911 32755 12982 23290 7047 8718
20320 3300 19650 21306 7990 34779 9086 20097
28114 14506 17617 19071 8931 32154 21047 14540
23049 31828 873 5060 8...

output:

2034040
33901 33901 33901 33901 33901 37941 33901 33901 
33541 33541 33541 33541 33541 37581 33541 33541 
33133 33133 33133 33133 33133 37173 33133 33133 
32755 32755 32755 32755 32755 36795 32755 32755 
30739 30739 30739 30739 30739 34779 30739 30739 
28114 28114 28114 28114 28114 32154 28114 28114...

result:

ok correct plan, good job!

Test #27:

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

input:

17
32676 9314 10438 11210 29428 1596 26611 8207 17707 15564 2170 29930 7485 7208 16271 15456 23268
1745 13380 4551 27949 3743 15654 18140 4904 18860 15083 20624 15909 24802 3078 9861 20920 8154
13602 19074 18003 31494 7393 9923 8688 18673 15233 4393 21002 26838 8231 10359 17362 11433 10937
1787 1808...

output:

9008980
32676 30902 35463 39723 31789 32163 33238 30902 30902 30902 30902 35067 34784 34047 32500 30902 30902 
22694 20920 25481 29741 21807 22181 23256 20920 20920 20920 20920 25085 24802 24065 22518 20920 20920 
24447 22673 27234 31494 23560 23934 25009 22673 22673 22673 22673 26838 26555 25818 24...

result:

ok correct plan, good job!

Test #28:

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

input:

46
15782 10241 7208 14305 9001 9680 3657 2907 20300 25117 23165 13693 8101 5285 5056 2723 7756 31697 9298 15748 27028 5116 16501 11906 22556 28876 18131 6002 8112 2591 6645 16679 14614 16457 27317 30396 10322 18126 29927 23381 10783 26732 12842 13339 5151 3592
31499 2119 13387 18062 12448 29327 6482...

output:

70911070
33875 33099 32950 32283 32602 31876 29836 31249 29997 29836 32513 31679 31623 33692 32138 31593 29836 34586 31832 32851 30622 30250 32586 31446 33814 32696 31121 32274 33004 31406 29973 30581 30094 31112 30521 32475 31152 31313 29927 30999 32455 30915 32449 32094 30967 32130 
36492 35716 35...

result:

ok correct plan, good job!

Test #29:

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

input:

22
23125 5926 20563 4722 27509 32109 24277 15558 6423 20285 32789 16796 20185 3598 21262 33058 27604 21172 28801 5147 17246 34656
3286 23942 31298 28295 18144 27587 29613 22177 30082 20232 615 20790 4845 3953 31916 27090 6506 24275 12925 4287 8559 612
29060 15593 21349 18209 23770 25600 9151 2987 19...

output:

15899686
28807 30971 32666 34804 28807 32491 32233 29840 31450 32301 35036 31800 32567 33686 33284 33058 31013 31136 32299 31281 31998 34656 
27439 29603 31298 33436 27439 31123 30865 28472 30082 30933 33668 30432 31199 32318 31916 31690 29645 29768 30931 29913 30630 33288 
29827 31991 33686 35824 2...

result:

ok correct plan, good job!

Test #30:

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

input:

26
18793 12028 10696 26484 18849 11372 30877 25274 22561 34891 22203 24964 16097 21051 8900 29040 15661 20448 16191 4808 24004 20518 32137 4093 33606 12516
2575 8719 9770 9224 29799 9509 15228 8341 31478 14313 8619 34604 23290 31265 12031 5410 13596 20972 6753 13380 29196 21254 8624 6312 12591 16797...

output:

22279062
34289 35015 34783 33405 34195 30894 30894 34520 34326 34891 33444 34688 33859 32065 32136 32414 32805 34793 34840 30894 35615 31859 35028 30894 35368 34824 
34205 34931 34699 33321 34111 30810 30810 34436 34242 34807 33360 34604 33775 31981 32052 32330 32721 34709 34756 30810 35531 31775 34...

result:

ok correct plan, good job!

Test #31:

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

input:

9
7529 16707 23739 5127 19080 26873 2664 29087 18026
13313 18570 8680 30452 24441 20058 4815 6844 19847
11047 18640 29944 29626 21484 18569 18766 23045 25576
16265 14088 3818 9115 10685 7495 25710 30600 18493
18619 18121 15622 30932 24461 11695 27819 2644 31718
22504 16211 30300 25440 25291 15032 25...

output:

2201373
19681 16707 27477 28479 22468 26873 25366 29087 29265 
21654 18680 29450 30452 24441 28846 27339 31060 31238 
22148 19174 29944 30946 24935 29340 27833 31554 31732 
21194 18220 28990 29992 23981 28386 26879 30600 30778 
22134 19160 29930 30932 24921 29326 27819 31540 31718 
22504 19530 30300...

result:

ok correct plan, good job!

Test #32:

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

input:

31
12866 27462 28825 15726 3324 10124 4437 33897 8036 30991 30461 8929 460 6304 27160 7690 31572 28718 22175 28466 1623 23443 21752 31678 20389 31180 13150 34573 14370 27375 20109
163 26203 5524 12892 584 9488 6137 15862 34568 18737 9065 23032 4636 12636 657 10758 28832 1677 24196 14363 10033 8047 1...

output:

31875192
36306 37183 34573 37384 34573 35772 35486 35382 36345 35786 34573 36482 34573 35301 34573 36204 34573 34573 36356 34573 34573 36132 35249 34620 36343 34910 35651 34573 34924 36890 34684 
34529 35406 32796 35607 32796 33995 33709 33605 34568 34009 32796 34705 32796 33524 32796 34427 32796 32...

result:

ok correct plan, good job!

Test #33:

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

input:

21
13038 28608 32526 22507 31071 22179 10215 24104 20745 22950 27879 23848 8729 34923 4875 34866 15841 10544 11793 13030 5712
30686 18308 9288 1791 32813 20079 12021 25049 23836 32273 29428 13805 24923 13461 31038 8628 21588 65 28857 23371 13532
13552 13196 27342 32216 13340 7972 12135 24648 5503 17...

output:

14250978
36586 33820 34989 38851 39164 33173 35363 32873 35757 33326 30481 32023 34072 34982 35269 34866 30483 32595 36022 38369 32622 
35533 32767 33936 37798 38111 32120 34310 31820 34704 32273 29428 30970 33019 33929 34216 33813 29430 31542 34969 37316 31569 
29951 27185 28354 32216 32529 26538 2...

result:

ok correct plan, good job!

Test #34:

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

input:

27
30709 22198 8988 12496 1337 29747 949 18966 34977 25732 29528 2517 25784 24136 22104 13677 26147 3747 9606 1795 20473 16033 32945 18444 20476 14433 34961
28507 27236 21226 1879 15608 26324 33166 18783 33942 16562 1578 32152 3728 2989 15017 23706 17907 18271 25331 30505 18153 12751 23611 11033 197...

output:

24124095
31562 33980 33793 32385 32869 30626 34201 30626 34977 34131 31852 33274 31382 33606 33065 32051 34432 33383 30716 31540 34164 35100 34017 30626 30626 36625 35502 
30527 32945 32758 31350 31834 29591 33166 29591 33942 33096 30817 32239 30347 32571 32030 31016 33397 32348 29681 30505 33129 34...

result:

ok correct plan, good job!

Test #35:

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

input:

24
23721 6088 34623 28718 23572 30142 34419 26879 28014 19699 5972 3994 20360 18358 20379 8700 12182 29527 12247 6896 9356 11114 27637 23276
13163 28806 395 19548 815 10184 15445 20470 5763 31607 31165 4655 23834 28749 28008 16941 29272 11261 19899 5027 24359 24583 33485 4961
6173 10055 17515 19697 ...

output:

19316784
31519 31674 34623 31389 31410 31389 34419 37149 31583 32740 32672 31389 31389 32722 33349 33609 34282 33162 31389 31389 34372 31389 31389 32543 
33615 33770 36719 33485 33506 33485 36515 39245 33679 34836 34768 33485 33485 34818 35445 35705 36378 35258 33485 33485 36468 33485 33485 34639 
2...

result:

ok correct plan, good job!

Test #36:

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

input:

31
21247 14079 28247 8146 25572 24862 5221 20342 14356 8639 9471 26609 32383 31275 15231 28224 2963 22130 19417 18869 5198 18511 32541 16495 4330 24176 30732 6358 5927 32198 13934
14925 28124 4251 24481 30729 16786 33569 22020 14357 28590 26926 17649 27545 28861 19096 7016 4777 22828 1594 24460 3434...

output:

31757826
33871 30732 32497 34873 35783 31711 31875 33452 34319 33306 32266 33531 32859 33196 35056 32803 30732 31866 32028 32877 33294 30732 33594 32606 32993 31390 30732 31991 31234 33997 33487 
35565 32426 34191 36567 37477 33405 33569 35146 36013 35000 33960 35225 34553 34890 36750 34497 32426 33...

result:

ok correct plan, good job!

Test #37:

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

input:

17
2943 6971 4351 16346 33770 19903 30303 20911 33458 18824 15856 8084 13653 25802 32857 26641 16347
20985 5334 24594 6411 29372 13669 17541 25178 34775 3564 5674 3860 3863 23179 4544 10458 21892
14680 8652 5120 34993 2062 8970 21931 28187 30034 12243 8234 9726 26286 18204 8843 27458 27748
31156 844...

output:

9173234
31137 31137 36815 33928 33777 32718 33356 31137 36075 31205 31137 33454 31276 31137 32857 34383 35181 
29837 29837 35515 32628 32477 31418 32056 29837 34775 29905 29837 32154 29976 29837 31557 33083 33881 
32202 32202 37880 34993 34842 33783 34421 32202 37140 32270 32202 34519 32341 32202 33...

result:

ok correct plan, good job!

Test #38:

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

input:

14
2686 26937 19364 14912 31 22093 7787 23180 22292 14204 17385 30894 28885 3205
6390 25240 9099 20513 32063 26980 21654 561 27868 31751 14271 18357 16548 13148
16753 6006 17621 26538 5727 30973 16888 33807 22103 25945 6275 2747 13025 1807
1825 18035 34931 8617 19250 25401 23412 24196 31686 18151 85...

output:

6239464
27515 26937 30182 29385 27827 32543 28036 35377 26937 27515 31300 30894 28885 26937 
31751 31173 34418 33621 32063 36779 32272 39613 31173 31751 35536 35130 33121 31173 
25945 25367 28612 27815 26257 30973 26466 33807 25367 25945 29730 29324 27315 25367 
32264 31686 34931 34134 32576 37292 3...

result:

ok correct plan, good job!

Test #39:

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

input:

8
8730 19366 34056 17881 11791 3969 2797 28222
17768 16065 4316 17603 30811 4265 9164 2425
9177 15767 12377 18293 26808 29234 16591 31134
685 4111 10937 23148 24566 24537 6972 34665
5339 2405 15016 10078 8731 18804 24204 18919
28069 434 16804 7465 19700 4760 9618 10302
28809 15248 18148 15550 29404 ...

output:

1728080
40472 26911 34056 29118 41067 37844 43244 39744 
30216 16655 23800 18862 30811 27588 32988 29488 
31862 18301 25446 20508 32457 29234 34634 31134 
35393 21832 28977 24039 35988 32765 38165 34665 
21432 7871 15016 10078 22027 18804 24204 20704 
28069 14508 21653 16715 28664 25441 30841 27341 ...

result:

ok correct plan, good job!

Test #40:

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

input:

4
25902 27586 12942 17211
25738 12850 16921 5256
23053 11158 16316 29872
15607 27306 18255 325

output:

405804
25902 27586 18535 18535 
25738 27422 18371 18371 
37239 38923 29872 29872 
25622 27306 18255 18255 

result:

ok correct plan, good job!

Test #41:

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

input:

6
29710 11879 11907 18225 34338 11619
14494 21887 3523 33749 17033 6388
20564 11513 17419 21204 28236 2578
21828 13053 4268 25925 24009 18001
5982 29753 19416 1670 17454 14652
28374 8670 332 26950 15734 1826

output:

969804
29710 23521 23521 31445 34338 23521 
32014 25825 25825 33749 36642 25825 
23608 17419 17419 25343 28236 17419 
24190 18001 18001 25925 28818 18001 
35942 29753 29753 37677 40570 29753 
28374 22185 22185 30109 33002 22185 

result:

ok correct plan, good job!

Test #42:

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

input:

22
2688 10354 19852 18786 9226 233 23225 25920 25224 23903 32126 14423 12593 25946 6424 28964 23835 8381 25227 23785 15092 12304
18153 636 27368 544 29610 15724 10742 22056 6461 25387 2573 29046 12102 26583 27563 29054 16770 32196 29877 27208 31832 16087
25428 4529 12159 31250 34263 14964 27596 1017...

output:

15750438
32331 30884 28598 29734 32747 30358 29553 30040 27994 31650 32126 30644 30970 28369 27994 31230 30048 30385 27994 27994 28602 28506 
35561 34114 31828 32964 35977 33588 32783 33270 31224 34880 35356 33874 34200 31599 31224 34460 33278 33615 31224 31224 31832 31736 
33847 32400 30114 31250 3...

result:

ok correct plan, good job!

Test #43:

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

input:

29
25063 16710 16093 22503 28668 29700 17878 352 10332 25776 34849 31650 13356 31871 32369 10593 6752 24915 5822 13407 25445 2978 28529 12385 22748 12663 453 10032 18105
34416 28478 16123 11130 12569 17001 4960 34211 8917 33131 2447 10031 24559 19228 33325 16768 11417 894 6242 22040 31812 24836 2153...

output:

28539538
33952 31483 33221 31206 34899 31206 31206 33747 31206 32921 34849 31650 31421 31999 32861 33172 34230 33113 32850 33682 31348 34302 31206 32459 33097 33323 31206 33496 32847 
34416 31947 33685 31670 35363 31670 31670 34211 31670 33385 35313 32114 31885 32463 33325 33636 34694 33577 33314 34...

result:

ok correct plan, good job!

Test #44:

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

input:

21
1645 28611 18475 31597 104 31173 19538 20504 7406 25704 21183 18805 7788 23454 1174 29166 20030 3489 18923 21684 15838
29695 34725 28499 10966 254 33243 12857 34514 5897 6063 28068 9445 23603 25395 4183 34179 16083 20896 16232 7555 1936
23546 10631 14099 15789 4137 30779 29366 18095 26203 3207 13...

output:

14229537
30982 32964 29504 31597 28300 31173 28913 30844 26615 30563 29538 31564 30892 29612 31208 29792 31901 28121 29378 26615 30260 
35369 37351 33891 35984 32687 35560 33300 35231 31002 34950 33925 35951 35279 33999 35595 34179 36288 32508 33765 31002 34647 
32203 34185 30725 32818 29521 32394 3...

result:

ok correct plan, good job!

Test #45:

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

input:

35
19330 25913 9222 30373 14853 352 22423 10262 26735 331 16251 23333 26427 25372 11833 10056 881 14975 16281 17658 1444 33728 18534 25314 13238 4870 29086 16685 30089 30906 28749 8864 1780 16949 8579
18411 18103 25635 23885 17795 1767 15467 32441 20057 17423 34196 2082 33848 21339 26366 22506 23400...

output:

41057905
34204 33257 33044 34983 31100 33262 34107 32698 33236 34293 30452 33926 32567 34104 35685 32444 35229 35426 33664 35381 34334 33728 34169 34324 35047 34340 34374 34193 30324 34617 33878 35205 36523 34036 35014 
37948 37001 36788 38727 34844 37006 37851 36442 36980 38037 34196 37670 36311 37...

result:

ok correct plan, good job!

Test #46:

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

input:

41
11531 28291 17786 6146 7266 9064 17796 28837 4298 34001 24486 8636 23055 16191 24354 33392 34746 21129 22785 23159 9350 11723 14488 25558 24179 7368 19788 18056 857 25724 6188 2928 1064 8318 7042 31866 1963 7317 23938 5336 28164
23515 34974 3946 30060 30095 3292 31599 8703 23050 13985 21086 11066...

output:

56651586
37192 35103 35178 34685 36238 34981 35780 36784 35753 34647 35314 33755 34769 35517 36160 33392 34746 33125 35860 35454 36288 34168 36781 33104 35353 34685 36790 33104 36608 34937 35903 35180 35028 36427 35743 35197 36246 36661 34214 37088 36855 
37063 34974 35049 34556 36109 34852 35651 36...

result:

ok correct plan, good job!

Test #47:

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

input:

11
7029 18167 3723 7031 34703 13105 24622 23493 2894 17007 19616
2744 24187 20411 1496 1197 15728 30610 2649 12441 18673 29440
16579 11259 1718 29133 1653 30682 31436 8446 28492 4601 28861
9845 18706 13980 1959 25279 9837 9536 19316 10984 21908 31719
18257 19851 21570 24234 25742 27999 23127 8229 12...

output:

3742959
30643 31285 29885 30526 34703 34291 32829 29885 29885 31332 41143 
28424 29066 27666 28307 32484 32072 30610 27666 27666 29113 38924 
29250 29892 28492 29133 33310 32898 31436 28492 28492 29939 39750 
21219 21861 20461 21102 25279 24867 23405 20461 20461 21908 31719 
24351 24993 23593 24234 ...

result:

ok correct plan, good job!

Test #48:

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

input:

25
7258 8485 19069 17882 29179 34592 24365 21668 25360 20514 21458 5695 33467 30067 7627 32877 3443 19125 14582 1403 8663 13590 11576 28917 12719
3930 12269 7447 18459 2434 22743 32518 6135 14167 13443 13053 18619 14509 11700 6526 879 27653 5240 5746 24253 7762 26211 30624 23701 1447
12327 2386 4288...

output:

20400850
33345 34566 33894 33568 32389 34592 33620 32407 33319 35122 31860 34553 34299 32752 31817 32877 32266 31817 33926 33570 31817 35972 33929 31817 34980 
32243 33464 32792 32466 31287 33490 32518 31305 32217 34020 30758 33451 33197 31650 30715 31775 31164 30715 32824 32468 30715 34870 32827 30...

result:

ok correct plan, good job!

Test #49:

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

input:

18
26544 30315 33140 7539 30287 2241 13156 13039 9258 30826 5331 30096 34129 24214 332 6148 27742 14674
23106 1583 25407 18689 4959 8812 529 5130 8916 23893 8180 4561 13607 2716 17812 24312 5098 21049
3707 29920 2738 20649 14825 25563 18383 15317 24670 11719 29705 23660 11600 16407 2238 26392 16589 ...

output:

10306044
35078 36581 35047 34129 34129 35106 35264 38025 36151 35847 36309 34129 34129 37224 37265 36082 35437 38543 
25438 26941 25407 24489 24489 25466 25624 28385 26511 26207 26669 24489 24489 27584 27625 26442 25797 28903 
28474 29977 28443 27525 27525 28502 28660 31421 29547 29243 29705 27525 2...

result:

ok correct plan, good job!

Test #50:

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

input:

25
31685 1895 9774 34264 32301 30230 3837 505 14051 20343 21556 18695 27402 6170 6287 31694 1506 34949 22813 10387 14085 1460 31628 32644 14699
2235 867 15668 14126 33513 23449 29907 19594 23783 19021 9983 21033 29985 28629 10872 3107 5910 25317 30134 25767 23399 6029 8302 1467 11421
8312 5110 13227...

output:

20728050
33005 33933 35450 35563 35686 35401 34037 31554 32069 35163 34425 35486 32158 36160 35792 31694 36457 34949 34843 36414 33190 34676 32332 33007 31679 
30832 31760 33277 33390 33513 33228 31864 29381 29896 32990 32252 33313 29985 33987 33619 29521 34284 32776 32670 34241 31017 32503 30159 30...

result:

ok correct plan, good job!

Test #51:

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

input:

42
6676 8822 2397 22819 3396 7217 4562 10328 9381 26448 609 34308 14905 18415 22655 16887 9032 8059 4759 25479 146 30776 7949 5884 12496 23815 20741 17390 3536 7119 24257 28399 34988 18184 21369 25708 14611 15397 3361 4362 18218 11283
8421 8848 27179 20739 3359 8690 4450 34135 27163 29481 1510 27185...

output:

59181276
33018 35105 31917 32867 33959 32831 32628 34988 32418 32984 31766 34308 33404 34466 33888 33989 34898 32567 35978 31400 34942 35557 31572 35044 34446 33293 34337 35220 32377 31045 32703 34670 34988 32990 35719 34507 31045 32423 32864 34772 33748 34278 
32165 34252 31064 32014 33106 31978 31...

result:

ok correct plan, good job!

Test #52:

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

input:

5
31934 27308 33690 13767 23569
8432 29246 5303 33580 12995
8422 7703 19312 5110 15418
17106 30988 8954 34062 33390
25108 21485 5805 9171 17958

output:

698505
31934 28311 33690 30468 29796 
35046 31423 36802 33580 32908 
17556 13933 19312 16090 15418 
35528 31905 37284 34062 33390 
25108 21485 26864 23642 22970 

result:

ok correct plan, good job!

Test #53:

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

input:

20
2767 21911 26993 11037 33927 1356 997 7024 6524 14444 1519 15200 10218 32665 21131 870 13232 2254 18920 29040
9464 13765 16547 5147 27868 7991 23999 32590 12237 26654 17715 9271 12250 30760 25146 4816 20094 15320 30479 24514
3627 31961 9426 6969 20374 4773 31493 8720 19084 1396 5407 3682 3849 329...

output:

12653960
33323 32561 34356 26531 33927 24335 36344 32833 29399 30837 27590 29885 34873 32831 31599 32663 33625 32136 30722 33102 
33080 32318 34113 26288 33684 24092 36101 32590 29156 30594 27347 29642 34630 32588 31356 32420 33382 31893 30479 32859 
33425 32663 34458 26633 34029 24437 36446 32935 2...

result:

ok correct plan, good job!

Test #54:

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

input:

42
6927 21038 29889 24004 3319 19716 31380 30140 6078 33998 10263 22793 14382 12841 28973 18494 1969 1433 32852 19115 33065 26911 4668 20338 14213 963 15085 25646 21274 29426 30941 9352 373 34101 2939 2282 14388 8715 14096 27115 34200 3290
30226 30352 32445 1086 32696 17272 4655 18164 17713 7953 802...

output:

59077116
33760 33531 35541 35253 35615 35122 34821 32394 34336 33998 32926 31956 32596 33455 35547 32626 34757 35880 34029 36989 33398 32431 33777 31516 34527 33711 33985 33615 31032 34657 34287 33439 33857 34101 32244 35822 33975 34952 33773 33768 34200 35962 
32093 31864 33874 33586 33948 33455 33...

result:

ok correct plan, good job!

Test #55:

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

input:

7
14397 30245 3738 10124 17911 5383 15345
26145 12483 24925 28555 31926 27448 26499
23132 13910 1596 5503 4124 12389 21462
12597 7204 29876 26484 17204 34321 23969
14643 27137 25266 34071 16351 7935 14309
3542 27716 21488 29103 6277 22429 27792
15105 24979 7546 5401 17591 27702 14843

output:

1433208
28523 30245 28523 29834 28523 32968 28523 
31926 33648 31926 33237 31926 36371 31926 
23132 24854 23132 24443 23132 27577 23132 
29876 31598 29876 31187 29876 34321 29876 
32760 34482 32760 34071 32760 37205 32760 
27792 29514 27792 29103 27792 32237 27792 
23257 24979 23257 24568 23257 2770...

result:

ok correct plan, good job!

Test #56:

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

input:

25
3950 30978 19641 19221 23601 5549 10702 23347 29701 26174 34272 620 34320 906 8229 30463 20006 5425 10602 7384 12798 23535 11859 21997 2218
5616 2086 25287 27742 1137 8256 26038 34735 34380 22210 4623 18998 12814 25328 19427 31884 17400 14005 3883 4737 7342 7182 28819 15048 10696
8904 21433 14113...

output:

20445300
35449 33984 30007 34382 35416 31223 32911 34232 33877 32842 34272 35650 34837 34725 30885 32981 32408 29468 35045 33118 29468 29468 31453 34104 31887 
35952 34487 30510 34885 35919 31726 33414 34735 34380 33345 34775 36153 35340 35228 31388 33484 32911 29971 35548 33621 29971 29971 31956 34...

result:

ok correct plan, good job!

Test #57:

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

input:

41
10761 274 10096 18780 16967 311 27555 7298 8553 5297 10580 3798 28362 30961 20057 22400 8136 21065 27125 5356 15847 18740 4183 7191 33895 7322 23039 17006 11754 12153 31643 10246 28623 25022 8212 4073 29399 3800 14338 20683 16543
5975 20322 18537 30117 2405 23523 19333 23002 6847 12580 15579 2772...

output:

56503904
34894 32049 30896 33517 31757 30881 32852 33592 34256 34003 33389 35674 32194 33970 34109 34350 34137 30881 31593 32929 34839 34163 33377 34247 33895 32926 31308 30881 34024 33635 33280 34000 31889 32875 33738 33521 33259 34155 30881 33206 33795 
34224 31379 30226 32847 31087 30211 32182 32...

result:

ok correct plan, good job!

Test #58:

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

input:

47
25594 23058 14401 31348 18128 4519 16952 1445 33142 17618 13767 3053 9849 11869 27268 20742 34244 20494 4773 12607 33478 11750 30281 4681 29801 10927 453 18127 26440 28836 27112 4329 19175 17197 20396 18010 15657 22840 24059 3740 24239 9720 17908 11041 33426 4276 21372
15224 17707 438 31087 17406...

output:

74925896
32771 32705 32705 32803 32705 32705 33437 32980 33886 35127 32705 34501 34097 33087 32705 34405 34244 34138 32705 33361 33478 34140 32705 33779 32705 32900 34126 32705 33605 32705 32705 32705 32705 33998 33179 34063 32705 33312 32705 32705 35219 32705 34009 33159 33426 34052 36192 
33989 33...

result:

ok correct plan, good job!

Test #59:

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

input:

27
9613 31020 11487 6619 3741 932 20006 23115 11026 18330 4779 31422 2002 28538 25691 18499 34502 34367 27257 33389 19247 34352 33767 2121 10760 26435 6402
5837 19828 26660 8271 12790 30763 12719 23485 22203 23205 18903 4312 5223 6192 34547 29490 21002 20233 6725 12756 14996 12184 13749 457 22351 21...

output:

24557229
34729 34398 34485 35309 35693 34772 34398 34398 36348 36004 36753 37444 35490 34398 38556 35574 34502 35788 35630 34398 35298 34398 35796 34398 35962 35476 35157 
30720 30389 30476 31300 31684 30763 30389 30389 32339 31995 32744 33435 31481 30389 34547 31565 30493 31779 31621 30389 31289 30...

result:

ok correct plan, good job!

Test #60:

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

input:

26
33898 12178 17904 20905 15855 20243 27709 12429 13148 6177 34486 25060 22503 27395 28372 29002 12308 11713 22389 20666 14016 28930 155 5084 1829 16535
20213 23035 33795 19394 27830 8604 9201 8261 23596 1270 28756 21180 2127 26740 14346 16777 30407 18189 3296 26377 2457 6639 8924 11556 1052 2966
3...

output:

21914698
33898 34004 35333 34146 32600 32595 35654 32484 38972 31652 35100 35984 31652 34078 34529 31652 31945 31652 35339 35451 33424 31652 31986 36660 36057 34983 
32360 32466 33795 32608 31062 31057 34116 30946 37434 30114 33562 34446 30114 32540 32991 30114 30407 30114 33801 33913 31886 30114 30...

result:

ok correct plan, good job!

Test #61:

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

input:

26
17744 16920 13696 33676 27311 1766 21913 23566 4091 5912 4 31313 8895 223 3817 160 22748 13498 7607 4771 3468 9703 13258 10098 9768 24507
33648 25329 13046 33134 6735 19619 22112 32692 10957 25043 18494 19008 15387 12819 1866 31891 5423 32217 22143 19191 3714 29626 23352 30951 9720 20641
10976 12...

output:

22338108
32484 29454 28276 33676 29035 29348 32674 31528 28276 31430 28443 31313 29621 28927 28276 31473 29246 31053 29379 28276 31864 29280 32066 29795 29978 29491 
33648 30618 29440 34840 30199 30512 33838 32692 29440 32594 29607 32477 30785 30091 29440 32637 30410 32217 30543 29440 33028 30444 33...

result:

ok correct plan, good job!

Test #62:

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

input:

32
17219 24873 4322 11427 20707 10850 31376 323 28612 29414 24257 15282 23264 34152 10128 14834 9426 7359 31222 22068 3483 11457 4792 33624 25301 32059 31560 13185 18524 21982 32914 16289
12259 30084 13142 15636 2481 9000 28946 30085 18003 3622 23927 8570 31135 28285 28579 14989 7244 6123 6833 16837...

output:

34212576
33575 33758 31865 31456 34967 33664 34617 33759 31456 36103 33551 35072 35041 34152 36350 35819 32069 33879 34461 35118 35325 33403 32814 33624 31456 34536 34185 35413 34412 34477 34112 32129 
29901 30084 28191 27782 31293 29990 30943 30085 27782 32429 29877 31398 31367 30478 32676 32145 28...

result:

ok correct plan, good job!

Test #63:

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

input:

32
21184 17868 27635 16575 3349 14019 29666 27591 9337 1182 27616 32171 30653 12133 26287 5913 12320 24708 32589 21108 31205 14193 34831 7568 19147 20082 14339 3659 28331 19236 11163 8720
6614 29840 18895 29613 11541 34904 8001 21673 29281 21966 28973 7673 23636 26215 10131 33240 4906 2854 23854 326...

output:

34340544
35159 32439 30370 34039 33447 31923 33997 32806 37620 30063 32191 32171 31032 33458 28910 34384 35436 32847 34284 36115 34094 33424 34831 33529 28910 36324 35381 32475 36076 31832 36411 32058 
38140 35420 33351 37020 36428 34904 36978 35787 40601 33044 35172 35152 34013 36439 31891 37365 38...

result:

ok correct plan, good job!

Test #64:

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

input:

35
34886 33502 4783 34513 1405 20903 21371 442 16450 22068 16799 11996 14822 34382 30023 32816 30349 30144 18024 10330 31211 16366 26506 1178 2230 5859 3746 7645 22472 12354 8895 16163 30295 28468 1595
16351 18805 8718 19804 18993 13704 20899 8401 11666 4879 12982 21590 27815 9127 4114 742 21902 303...

output:

41047650
34886 35601 34137 35364 32546 33281 32090 32914 31372 34437 29960 33486 35029 35718 33735 33276 35465 33584 35053 33200 33253 35196 34286 32628 34658 36799 31730 32402 34986 32007 34211 33768 33296 34055 33554 
35490 36205 34741 35968 33150 33885 32694 33518 31976 35041 30564 34090 35633 36...

result:

ok correct plan, good job!

Test #65:

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

input:

21
4363 3923 4869 21422 20847 25332 27257 24051 1241 22812 7649 1533 26364 22430 21497 8042 28618 24736 15707 11858 6992
975 23769 30201 24328 21244 16391 19279 27235 25341 28514 5115 14388 8576 24452 24673 21224 6262 17492 18224 21913 9972
27033 3029 26281 29632 31754 4809 10146 1022 1940 19415 121...

output:

13943538
24130 23930 25061 22908 28434 25332 28278 26868 25740 23374 25318 24022 26543 25368 24599 24508 28618 25506 22908 25062 22908 
29270 29070 30201 28048 33574 30472 33418 32008 30880 28514 30458 29162 31683 30508 29739 29648 33758 30646 28048 30202 28048 
30854 30654 31785 29632 35158 32056 3...

result:

ok correct plan, good job!

Test #66:

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

input:

4
26869 2955 28956 8497
18704 7661 23045 15634
28868 5599 30064 3622
21 17416 13557 30368

output:

383412
26869 13572 28956 21545 
20958 7661 23045 15634 
28868 15571 30955 23544 
35692 22395 37779 30368 

result:

ok correct plan, good job!

Test #67:

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

input:

45
33666 31854 3131 681 335 4413 30971 32926 32374 25249 7787 22923 33741 18834 11227 20259 964 32703 23835 9810 10914 22597 29654 13190 11771 7565 33694 3256 23074 2742 706 2565 11709 32350 8103 14506 2925 23616 25846 12158 16771 20913 29957 4854 7455
22702 5016 29740 11256 18754 14496 14499 14329 ...

output:

68394555
33666 34234 33831 35076 33837 33369 32560 36411 35030 34909 34462 36669 34567 35126 36995 35232 34510 33679 33972 33944 36230 35796 34593 36032 35041 34776 33694 36212 33867 34678 34562 33929 33735 33469 34535 35330 37156 33578 34710 33971 33301 34854 35108 34867 35410 
33522 34090 33687 34...

result:

ok correct plan, good job!

Test #68:

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

input:

34
11854 27821 7720 27877 27962 9259 11363 11318 33379 27473 14904 33313 27039 19235 11651 24795 12141 29173 15840 4792 24881 4872 20419 26111 18064 2596 11142 20205 14413 12157 25177 27193 18832 20855
23656 1149 14106 17269 7018 9200 1405 4351 25588 21465 27465 21352 5024 28729 33002 34088 21127 10...

output:

38766902
33423 29791 33728 32654 32723 34117 33452 32091 33379 33595 29271 33313 30032 30025 30731 31817 31777 31919 29372 30947 32509 31822 31708 32346 30910 29300 29271 31231 32939 31922 33018 30378 33034 31276 
35694 32062 35999 34925 34994 36388 35723 34362 35650 35866 31542 35584 32303 32296 33...

result:

ok correct plan, good job!

Test #69:

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

input:

4
26103 4140 5682 23053
8522 3926 16266 29011
2100 22202 19893 1649
25027 14632 32630 8314

output:

439784
26103 26103 26103 26103 
29011 29011 29011 29011 
22202 22202 22202 22202 
32630 32630 32630 32630 

result:

ok correct plan, good job!

Test #70:

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

input:

48
1125 29114 9479 6689 18767 10968 25173 18260 11183 30041 3232 27091 16190 5699 19991 26663 14785 8381 14092 21913 20976 31869 9203 7115 6281 26845 30881 17110 28977 800 29967 12553 27661 21428 6613 28954 23135 26532 8741 26015 17966 8869 26105 29086 30771 34992 22001 16029
5880 9283 21367 20044 1...

output:

78234528
31914 32186 31507 31507 32128 31507 33039 33280 34085 33051 33088 32661 33501 33183 33093 31507 31507 31507 31507 32884 32483 32389 31718 33248 31507 32054 31958 31507 32970 31803 32149 32469 31507 32228 31507 32987 31507 31922 32954 32836 31507 32246 33722 31507 32549 34992 32615 34279 
35...

result:

ok correct plan, good job!

Test #71:

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

input:

9
24266 22264 34254 23613 31773 16117 3420 18296 2838
14302 13923 7157 33411 19718 11472 12906 2640 16688
34209 30776 8263 9353 19786 26229 27839 29207 19561
12577 29927 17013 20038 13759 13035 20497 19707 25002
26475 1044 31945 4024 18969 8204 12492 33022 16327
478 13345 7090 4503 14650 17173 31130...

output:

2518767
27340 26219 34254 35239 31773 26219 32050 27466 34874 
25512 24391 32426 33411 29945 24391 30222 25638 33046 
34209 33088 41123 42108 38642 33088 38919 34335 41743 
31048 29927 37962 38947 35481 29927 35758 31174 38582 
32896 31775 39810 40795 37329 31775 37606 33022 40430 
26420 25299 33334...

result:

ok correct plan, good job!

Test #72:

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

input:

22
14430 21055 20469 11909 4931 17296 19857 25613 23041 25187 4699 9505 5639 23774 24061 8014 25068 26066 19413 21292 247 7953
26727 21932 4646 21840 14946 23913 15596 572 682 13896 5109 2434 1351 31315 8397 30900 15811 22049 2126 17966 7668 2757
6495 24478 33947 33116 948 1811 26116 32706 2410 3458...

output:

15773406
23342 24674 25272 28613 23342 25868 25640 26108 23342 25594 23342 25161 24719 24049 24061 26035 26354 26066 23683 24272 27326 25938 
30608 31940 32538 35879 30608 33134 32906 33374 30608 32860 30608 32427 31985 31315 31327 33301 33620 33332 30949 31538 34592 33204 
32336 33668 34266 37607 3...

result:

ok correct plan, good job!

Test #73:

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

input:

28
18350 25435 23110 341 23265 17141 2731 14937 30354 5797 21484 33269 27520 22564 8570 6252 5635 24472 30959 30082 7307 8509 29746 24784 15707 3121 8819 841
29073 29671 8482 18295 13056 2013 28189 11507 9407 17645 1722 7748 14242 8996 17096 17036 690 9839 33595 14659 18189 30133 33246 101 15670 355...

output:

26085080
32093 33132 32093 32229 34468 34840 32093 33601 33257 32093 33652 33269 33581 34359 34422 32093 33957 32093 34896 33848 32206 32093 34547 35177 35159 33868 32093 35164 
30792 31831 30792 30928 33167 33539 30792 32300 31956 30792 32351 31968 32280 33058 33121 30792 32656 30792 33595 32547 30...

result:

ok correct plan, good job!

Test #74:

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

input:

8
3389 7406 33204 11727 11168 17131 34633 8651
6270 24211 17884 603 11449 13078 6584 8530
19868 12901 25714 33606 14676 6844 16829 25445
15425 25520 15829 17817 4755 6394 20950 29950
16899 10721 29588 25090 31655 30877 321 11253
33088 23278 5981 29392 707 25661 14327 17152
33876 15134 28283 24563 51...

output:

1960808
40226 34633 34633 36530 34633 34633 34633 37885 
29804 24211 24211 26108 24211 24211 24211 27463 
37302 31709 31709 33606 31709 31709 31709 34961 
32291 26698 26698 28595 26698 26698 26698 29950 
37248 31655 31655 33552 31655 31655 31655 34907 
33088 27495 27495 29392 27495 27495 27495 30747...

result:

ok correct plan, good job!

Test #75:

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

input:

31
11056 19846 21128 13628 29847 14510 21019 30482 21021 3080 22893 32545 20880 11840 6059 21263 31240 30860 23688 10818 27711 2191 4417 30292 14280 10700 9755 9397 20781 4438 21864
18695 1077 12983 1096 17039 14394 14543 23738 14869 14984 24324 15652 11520 25324 4682 34314 20588 32867 31358 20329 2...

output:

31781076
30532 34417 34990 34851 35005 31363 35101 37835 30532 35892 34540 32545 32691 38084 34787 34868 35761 33421 32464 34428 31630 33932 33261 35259 34120 34180 33107 35792 34661 33212 30532 
29978 33863 34436 34297 34451 30809 34547 37281 29978 35338 33986 31991 32137 37530 34233 34314 35207 32...

result:

ok correct plan, good job!

Test #76:

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

input:

43
32860 1684 14943 16190 17407 30048 26535 34413 14725 15575 11663 9610 32441 23734 31855 18673 13753 4806 7632 16304 30656 22354 26717 14566 11195 25723 31599 32408 33212 10143 19492 24100 19355 19178 13554 11566 18630 405 26790 6702 20133 234 24536
29342 16231 964 6460 11334 1616 29949 13427 2904...

output:

62022297
33062 35616 35754 35546 33250 35214 36300 34413 32327 33203 33439 34680 34438 32476 33846 35527 32618 35447 33904 32267 31378 34645 34537 32609 32064 33966 34242 35434 33212 35426 34533 34685 33554 34015 31378 32308 33634 32001 34021 34271 35187 33526 32994 
34153 36707 36845 36637 34341 36...

result:

ok correct plan, good job!

Test #77:

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

input:

25
21475 25676 8060 9483 27525 30161 7467 12681 10394 30108 17780 4880 21978 8973 19515 19751 34376 13221 19748 32657 11462 20514 24798 32440 27984
1946 23371 14280 26373 17700 14780 28653 33239 12064 30969 32101 6445 25609 28714 30091 1813 5028 2697 8226 34816 18072 25286 32551 14940 12633
33066 41...

output:

20700875
33486 33394 30654 34579 32765 31961 29583 33259 32803 32899 32932 32813 29583 29583 31368 32202 34376 31258 31966 32682 33928 32070 30828 32440 33010 
35620 35528 32788 36713 34899 34095 31717 35393 34937 35033 35066 34947 31717 31717 33502 34336 36510 33392 34100 34816 36062 34204 32962 34...

result:

ok correct plan, good job!

Test #78:

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

input:

15
30739 9099 19915 9072 27982 20391 18483 34920 10998 488 5653 15693 34838 9212 34499
8055 10445 27605 9095 6240 12708 19323 25108 24694 8102 26524 8760 32569 10174 17422
21745 14791 32187 657 30271 28617 28063 4589 32715 17761 1894 23287 32602 17338 8261
1059 12199 19133 8612 12675 12590 31508 151...

output:

7244730
37306 32204 36328 32204 36810 37066 32204 34920 36856 33996 34722 32237 36743 38341 34499 
33132 28030 32154 28030 32636 32892 28030 30746 32682 29822 30548 28063 32569 34167 30325 
33165 28063 32187 28063 32669 32925 28063 30779 32715 29855 30581 28096 32602 34200 30358 
37805 32703 36827 3...

result:

ok correct plan, good job!

Test #79:

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

input:

24
4396 20668 23640 19541 10976 17281 29767 6797 15893 1527 28562 23728 33866 18028 4329 1247 24036 32469 17854 25380 17851 22009 618 7760
9201 17872 6778 18312 9340 32147 2324 4105 22226 27365 17193 14634 10304 18732 12372 33337 19844 1769 22568 18699 10677 15639 15613 19703
2893 19277 13512 31663 ...

output:

19201896
32738 32112 29378 32555 34570 34547 34375 31206 29234 29879 30501 32146 33866 33445 29234 35737 35971 32966 30456 33148 30575 29234 29943 29234 
30338 29712 26978 30155 32170 32147 31975 28806 26834 27479 28101 29746 31466 31045 26834 33337 33571 30566 28056 30748 28175 26834 27543 26834 
3...

result:

ok correct plan, good job!

Test #80:

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

input:

48
21630 15876 29414 175 17074 26171 15839 14360 18276 9103 11699 21162 15872 396 3903 18079 31820 32185 19550 25861 8645 1508 3580 34058 18252 31360 11963 33857 10066 5935 992 34012 10570 8009 20643 13644 15736 29145 27217 7520 32504 16655 23709 1060 21607 6512 8370 3309
26972 11115 22960 24092 198...

output:

78024048
33365 33649 32072 35711 34421 33513 31283 33008 32929 35257 34273 34083 34091 33951 33751 32801 35822 33532 31554 34492 33766 33003 33765 34084 34736 33176 34641 33857 30791 34202 33523 34012 31206 32815 30791 32921 32139 33806 34548 32535 33992 31429 32675 33760 33665 34134 34244 34972 
34...

result:

ok correct plan, good job!

Test #81:

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

input:

40
19997 28891 12113 17333 11750 1135 27679 26884 5085 19932 32044 32321 19344 29283 19489 9892 24316 31214 5653 7085 3495 19402 23372 18045 12100 9652 18034 31488 2645 30548 18747 22747 24905 9213 11351 2193 5162 9238 16164 5167
27622 29540 11512 21992 17978 13132 991 6501 6761 21635 5568 591 20900...

output:

53412520
32180 29348 31993 31686 30507 30807 29351 32072 29312 32004 32460 32321 32991 32785 31696 33473 32281 33435 32982 32143 29486 31449 31703 30104 31920 31803 29428 31518 32512 30548 32698 27683 31552 32283 28282 30281 31203 32976 31058 32288 
34582 31750 34395 34088 32909 33209 31753 34474 31...

result:

ok correct plan, good job!

Test #82:

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

input:

36
33237 4011 26196 24150 21787 14396 19501 34768 33894 29503 16989 18917 20598 19537 13843 7972 26750 3856 14782 14185 7705 23129 6359 10438 26049 31941 11674 18704 20236 16777 25642 29986 15819 3898 161 1083
17314 28448 34404 32207 24922 19703 21097 11583 10599 20099 19444 7566 9088 30256 21998 22...

output:

43180956
35076 32721 35670 33262 33547 33908 32334 34768 33894 35202 34196 33694 34080 31382 32481 34529 36929 35582 33881 35961 34535 33830 33504 32889 32069 31941 35175 33926 35065 34947 34062 34336 31382 33634 34491 31382 
35115 32760 35709 33301 33586 33947 32373 34807 33933 35241 34235 33733 34...

result:

ok correct plan, good job!

Test #83:

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

input:

22
8710 23954 12115 19378 30598 20664 1364 13462 18761 12303 3573 21118 32761 25454 9843 21227 18752 15952 22355 6011 30603 26132
32864 25521 33117 10798 24319 34426 2916 3862 33250 4020 20059 33509 13113 8730 33295 19800 30730 31788 8783 1537 16168 29907
3395 8538 579 11115 22665 1358 4191 33200 30...

output:

15821564
32655 30744 32908 33656 33130 34217 37211 34790 33041 32351 31427 33300 32761 30603 33395 30603 31521 33301 34589 31454 30603 31297 
32864 30953 33117 33865 33339 34426 37420 34999 33250 32560 31636 33509 32970 30812 33604 30812 31730 33510 34798 31663 30812 31506 
31065 29154 31318 32066 3...

result:

ok correct plan, good job!

Test #84:

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

input:

31
17765 2636 9779 33844 11521 16448 6713 3132 6569 3852 19998 33778 16367 31937 32387 15038 13209 19459 4198 14515 4150 21047 28787 22605 30749 34186 24591 2712 6954 21196 7372
3864 11947 22890 32260 8980 5193 11715 7346 10722 13033 16396 9026 24392 6003 17178 34605 1045 16235 32599 30016 31675 188...

output:

31903836
31264 31613 32955 34196 32258 33049 32907 32432 31264 34422 31264 33778 32994 32167 32439 34194 31264 33578 33005 34448 31264 34043 34640 32597 31264 34186 33017 31264 32601 31614 31264 
31675 32024 33366 34607 32669 33460 33318 32843 31675 34833 31675 34189 33405 32578 32850 34605 31675 33...

result:

ok correct plan, good job!

Test #85:

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

input:

31
34053 4372 759 1276 2746 24908 4506 13025 15918 6142 5290 12651 16644 22773 23367 10752 27880 29471 25726 3904 28235 23372 1401 10268 28278 34421 1969 19180 19632 11574 19111
25900 5749 12982 22197 34150 16129 12155 28008 24306 23856 12298 27590 33996 11071 20144 18101 14630 13452 27511 32453 228...

output:

32079668
34053 33061 33324 33909 31387 33217 31837 32340 33786 31946 31107 31279 33077 31649 33110 32428 32266 33484 31219 31712 31576 31107 31718 32389 33687 34421 33212 31268 33087 32567 31506 
36816 35824 36087 36672 34150 35980 34600 35103 36549 34709 33870 34042 35840 34412 35873 35191 35029 36...

result:

ok correct plan, good job!

Test #86:

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

input:

50
5533 19265 20730 13475 34812 32703 9713 34129 31403 29318 4671 33294 31880 33644 33725 22731 829 26866 28924 25807 28663 4049 21413 1038 2023 311 6060 27453 19359 31418 13568 8063 25116 21749 6117 7368 26935 27898 24708 15175 29985 32987 31482 18798 10440 17761 27176 24419 29993 16047
3028 23042 ...

output:

84542750
33607 32833 32831 33851 34812 33982 34856 34695 35734 33392 33674 33719 34725 34876 33741 35087 34908 34798 33563 32740 33558 32998 34981 32561 33530 34564 35096 34471 33032 34935 32585 34539 34566 34812 33759 32561 32561 33619 34340 34923 33015 32987 34507 33185 32561 32971 34266 32561 355...

result:

ok correct plan, good job!

Test #87:

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

input:

50
6129 1217 14893 26488 13412 33942 14340 8583 34947 3292 21855 14067 7514 32170 16034 32356 25443 17852 12843 6704 11391 20537 2321 30140 18524 31200 28496 19285 11862 9741 14162 22076 18496 18882 17415 16080 30868 19401 10961 25501 3096 11469 32045 17778 5189 34460 5352 16611 14017 14227
12310 33...

output:

85450500
35417 36047 33942 36172 35375 33942 35615 34941 35711 36087 34210 35118 35069 35497 33942 35315 34113 33942 34692 36479 35881 35523 33942 35630 35842 35932 34568 35020 34022 33942 35664 35005 35463 35409 34564 36785 35535 34121 35454 35524 34070 37182 35190 35555 34742 35795 35001 35225 353...

result:

ok correct plan, good job!

Test #88:

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

input:

50
10951 8465 24200 8637 24663 22369 24817 33700 23520 29814 5556 25819 16269 26210 1635 18671 3870 29168 13987 7504 20910 30328 5257 33086 10949 31024 20627 18369 8113 15595 20523 22360 15395 12013 4053 38 7587 5114 7435 28657 8335 28422 9165 20899 14490 857 19520 15940 16604 24858
30178 6206 21337...

output:

84986150
31031 33393 32480 31003 31109 33319 32506 33700 32667 30837 31762 30809 31780 34070 32477 31907 32794 33199 31780 33319 31576 33921 34196 33086 32360 31782 32965 33642 30969 34311 34190 32367 34039 34298 31270 32921 32937 32768 30763 32817 33629 32778 32821 34937 32878 33277 32733 32916 334...

result:

ok correct plan, good job!

Test #89:

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

input:

50
28755 24649 2446 28515 34925 17762 28445 13697 1329 6416 29472 32960 15529 33992 17762 16974 10319 25859 29971 33549 21717 31705 6076 18406 24852 14526 21577 12950 34459 31829 819 10097 5347 8806 8484 301 1498 4315 901 30625 31932 7188 27187 34679 11794 32342 33371 31641 27448 14173
28849 9863 34...

output:

84451850
36029 36117 34580 34851 34925 35365 34250 35731 35095 35818 37064 33502 34890 34397 34400 36315 36290 36163 37032 34107 36216 34860 35177 34760 34260 37570 36539 33472 34742 38858 36091 34861 32684 32684 32761 36985 36503 35428 35623 33462 34548 35642 33763 35167 37354 33721 35189 36372 335...

result:

ok correct plan, good job!

Test #90:

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

input:

50
15870 17450 9148 30271 14439 33593 31508 30776 236 16160 33886 9460 8923 27838 16386 17837 11351 26263 31785 285 16778 14567 16567 15850 16261 1819 2233 4611 13304 32475 648 8680 7599 15881 26161 27193 8637 20182 18336 18239 7816 23938 33544 29961 29136 3662 318 12392 21650 15670
24861 6716 15674...

output:

85100100
34915 35602 35436 34605 35547 36147 34120 35079 35881 35077 35397 34380 34912 33207 35283 35754 33115 34904 35025 34571 35637 34435 33552 33216 35190 35422 35998 33818 35454 33272 35069 35797 35432 34745 33115 33290 34898 34958 33115 34034 35568 34448 33544 36592 35698 35558 34222 33974 356...

result:

ok correct plan, good job!

Test #91:

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

input:

50
31557 6122 1303 27854 5280 28000 34960 8279 27880 30945 12569 29748 21400 24491 10493 25828 26481 322 24783 10850 23841 18504 5471 30819 15786 19006 17495 28255 19105 18044 5687 31799 8426 185 29003 14056 31106 33039 3847 31325 174 5747 33692 12468 994 23008 2321 7387 1507 23676
23141 11659 7821 ...

output:

85093750
34937 33028 35169 36076 34150 34067 35123 34213 33549 35311 32353 35545 35582 34348 34658 35809 32328 33425 34959 33980 34112 32705 34945 33947 32701 34394 32990 35300 33512 35301 34016 34802 32328 35011 35273 34072 32328 34456 33888 33571 35511 32328 33692 34466 32515 34484 32328 34859 356...

result:

ok correct plan, good job!

Test #92:

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

input:

50
24119 1243 10873 23825 5460 31156 24333 11718 28247 19717 32895 22770 10118 8454 26409 21366 14986 20745 12865 29369 28564 21619 30366 34505 14449 34591 13953 30601 10995 7916 22009 5907 28481 21766 31199 21902 34607 16077 15207 19324 19801 30721 30968 9848 22347 29142 4670 20592 25421 9780
13119...

output:

84418100
35808 36829 34774 34588 34935 33809 34544 34881 36271 33809 34860 36861 36465 34428 34490 35214 36443 34471 34601 33809 35748 35478 33809 34505 34214 36718 37128 35368 36253 35641 36596 35894 36218 36436 36718 36320 35090 33809 34842 34362 33809 34222 35383 36123 34586 36498 35139 34211 358...

result:

ok correct plan, good job!

Test #93:

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

input:

50
22028 16570 32007 6053 7540 6438 5814 6182 3299 7970 30154 20570 20667 21362 10216 27106 6148 12610 27528 27118 7611 4055 25145 8748 1157 15544 13748 25941 32299 1270 1999 16843 25824 24600 17417 20548 24786 16993 16993 22132 30338 20154 5749 13116 3209 21725 27330 32291 25426 30902
27913 28961 2...

output:

84609200
30639 32551 32007 31243 29883 31204 30134 32539 31573 31415 32369 31698 31506 31422 30683 31851 31195 30634 30694 31268 32964 30932 30905 33112 31671 31977 29883 31561 32299 29883 32037 30482 31734 31834 30887 30066 30118 29883 30470 31280 31843 32416 32010 31915 29883 30144 30393 32291 313...

result:

ok correct plan, good job!

Test #94:

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

input:

50
21009 17090 21945 22058 682 10161 26890 11031 15968 27671 3682 12348 2602 17567 29291 7949 22712 17975 4637 34951 15395 16731 3085 32470 19668 12964 16828 1658 3106 20122 32533 34726 3635 30744 28662 6549 9749 9377 12715 5075 27091 24711 14654 31010 6865 3103 25844 17815 9353 14752
6248 22015 118...

output:

84731500
33556 35581 35726 36222 34398 33381 35037 34911 35713 35144 35171 36623 36209 34305 34674 35794 33411 35348 34139 35029 33598 33195 35034 33195 35991 33579 35239 35290 34608 35917 35947 34726 36178 36506 35087 33336 35761 34409 36238 34921 35987 36457 34772 35602 34569 34974 36702 35799 353...

result:

ok correct plan, good job!

Test #95:

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

input:

50
0 1 0 2 2 1 2 2 0 2 1 1 2 1 0 1 2 0 0 0 0 2 1 0 0 1 2 2 2 2 2 0 2 2 1 2 2 1 1 2 2 0 1 0 0 0 2 2 0 1
0 2 0 1 1 2 0 0 0 1 0 0 0 2 2 2 1 0 2 2 2 0 1 1 0 1 2 0 0 0 1 2 2 2 1 2 2 2 2 0 0 0 0 0 2 2 1 2 2 0
1 1 1 0 1 1 0 0 2 0 0 1 2 2 2 1 1 1 1 1 2 1 0 1 2 1 2 0 2 2 2 0 1 0 2 2 1 2 0 2 1 1 0 2 1 0 1 0 1...

output:

5000
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2...

result:

ok correct plan, good job!

Test #96:

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

input:

8
3231 4 0 4 4 7 33090 27114
8 28950 12573 8953 6 3 10 26397
32867 4904 0 2950 4 8 2 4
28423 13121 0 8 0 0 22369 9
28365 2915 9 30989 5 27616 0 1
2007 1 2 6 10 28111 9253 7
29841 3 1184 7 9 897 22208 9
10256 22745 8 4 30565 6 10 3

output:

1617192
46548 29667 17891 17891 17891 17891 38915 27114 
45831 28950 17174 17174 17174 17174 38198 26397 
32867 15986 4210 4210 4210 4210 25234 13433 
30002 13121 1345 1345 1345 1345 22369 10568 
59646 42765 30989 30989 30989 30989 52013 40212 
56768 39887 28111 28111 28111 28111 49135 37334 
29841 ...

result:

ok correct plan, good job!

Test #97:

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

input:

8
10 18673 0 4 19099 7 32656 6
10 3 6 3 5 6 0 32604
5 0 24559 0 7 4 6261 8
9 2913 10 2 12394 2 28742 19505
8 2 17745 18367 5 10 4 0
3 25022 4 2 4 3 6 6
5 28561 4 4 6 5 6 17133
10 1 0 7 18298 0 7 5

output:

1240456
3923 28942 3924 3923 19099 3923 32656 23419 
13108 38127 13109 13108 28284 13108 41841 32604 
24558 49577 24559 24558 39734 24558 53291 44054 
9 25028 10 9 15185 9 28742 19505 
18367 43386 18368 18367 33543 18367 47100 37863 
3 25022 4 3 15179 3 28736 19499 
3542 28561 3543 3542 18718 3542 3...

result:

ok correct plan, good job!

Test #98:

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

input:

8
19051 5 3 7 29489 7 6 4
19808 10094 1 11030 0 2265 6 8806
21747 9 0 6 29041 1 6 1
9770 17152 16524 12887 29925 3877 7 1
34644 10598 4 15531 34076 9 9 5
9547 20024 5 29275 19009 21405 7 2
7 1 8 30664 5 4 2 20853
23068 7 468 32774 6 4 9 19378

output:

1326312
22195 1082 454 10265 29489 454 454 454 
31207 10094 9466 19277 38501 9466 9466 9466 
21747 634 6 9817 29041 6 6 6 
38265 17152 16524 26335 45559 16524 16524 16524 
34644 13531 12903 22714 41938 12903 12903 12903 
43146 22033 21405 31216 50440 21405 21405 21405 
42594 21481 20853 30664 49888 ...

result:

ok correct plan, good job!

Test #99:

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

input:

8
2972 0 1 2 7 10 23194 8
17658 0 6 4 32190 0 4 2509
5 6 3 4 5 7 6 10
9 10 17951 9 13194 5 0 23038
0 5 25699 7527 8 2 6 9
6 11699 10 3 2 9 1 6
19974 8 5 6 1 23398 1 9
5 23583 5 25168 5 7925 1 0

output:

1315128
23193 23194 23193 23193 23193 23195 23194 23198 
32190 32191 32190 32190 32190 32192 32191 32195 
5 6 5 5 5 7 6 10 
23033 23034 23033 23033 23033 23035 23034 23038 
25699 25700 25699 25699 25699 25701 25700 25704 
11698 11699 11698 11698 11698 11700 11699 11703 
23396 23397 23396 23396 23396...

result:

ok correct plan, good job!

Test #100:

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

input:

8
0 25437 1 4 1 25317 7 10579
6 10 5 10 8 14579 8 13517
7899 8 5 5 7 9 0 1
8 2 6 10 21543 24353 30217 4
8753 29096 4 2182 23858 2 1917 2
8 11680 2 24468 5 4073 5 26018
7 3 0 20801 28373 10884 5 7
4 11924 9379 10 2 33823 4 1

output:

1346128
5094 25437 873 12627 20199 25317 873 14177 
4434 24777 213 11967 19539 24657 213 13517 
7899 28242 3678 15432 23004 28122 3678 16982 
34438 54781 30217 41971 49543 54661 30217 43521 
8753 29096 4532 16286 23858 28976 4532 17836 
16935 37278 12714 24468 32040 37158 12714 26018 
13268 33611 90...

result:

ok correct plan, good job!

Test #101:

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

input:

8
21312 9 10 1 5 33433 3 20461
2 15400 23259 2 0 2 6 7
2730 8 6 6921 5 3 5 6
1 10 26858 9 3 3 4 3
2732 9 8 10 1 10 6 20026
26933 34860 29042 7 1 5 6 7
4 2 7 5 5 23157 5 10
28000 9 8 5403 3 2 22000 2

output:

1241072
21312 29239 37098 13841 13839 33433 13845 20461 
7473 15400 23259 2 0 19594 6 6622 
14392 22319 30178 6921 6919 26513 6925 13541 
11072 18999 26858 3601 3599 23193 3605 10221 
20877 28804 36663 13406 13404 32998 13410 20026 
26933 34860 42719 19462 19460 39054 19466 26082 
11036 18963 26822 ...

result:

ok correct plan, good job!

Test #102:

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

input:

8
6 1 12372 2 3 15010 8 0
15735 8 19602 17276 3 6 6 6
3 7 5350 4 20798 21693 6 4368
10 4 21606 6 9 32185 4 26445
8 10 5 8 7 4 4 7
7 1 9 6 25386 0 3 3743
0 6 4 29046 6 6 5 33636
18001 3 7 9 7 12495 0 10

output:

1121528
8505 8 12372 10046 19481 20376 8 14636 
15735 7238 19602 17276 26711 27606 7238 21866 
9822 1325 13689 11363 20798 21693 1325 15953 
20314 11817 24181 21855 31290 32185 11817 26445 
8507 10 12374 10048 19483 20378 10 14638 
14410 5913 18277 15951 25386 26281 5913 20541 
27505 19008 31372 290...

result:

ok correct plan, good job!

Test #103:

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

input:

8
18907 4 10 6 6 6 6 1
5 10 19112 4 5 6 8 6
3032 6 9 3 26239 9 28706 4
12580 1 33899 8 14839 1 7150 0
4430 6 16663 8 10 5 9 7
34726 4818 7 9 7 9 3 6
26077 7376 3 34127 18142 7 0 5
10117 0 8 3 2 5443 0 3

output:

1095712
18907 4 19067 6 7 6 6 4 
18952 49 19112 51 52 51 51 49 
47607 28704 47767 28706 28707 28706 28706 28704 
33739 14836 33899 14838 14839 14838 14838 14836 
18910 7 19070 9 10 9 9 7 
34726 15823 34886 15825 15826 15825 15825 15823 
53028 34125 53188 34127 34128 34127 34127 34125 
24344 5441 245...

result:

ok correct plan, good job!

Test #104:

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

input:

8
1 8 9 9 28374 2 33183 3
9 6 5 6 10030 6 26935 19640
0 10 25938 10 0 5 8 13676
8 32122 33570 4 34314 1 5 7617
5747 9 26550 7277 9 10 5463 11660
0 4 3 27095 7 8 8 17125
9 0 2467 16812 14775 10 6 5
3 30537 11569 0 28684 12828 8839 7788

output:

1411712
17347 29920 38150 34149 32112 17347 33183 25888 
11099 23672 31902 27901 25864 11099 26935 19640 
5135 17708 25938 21937 19900 5135 20971 13676 
19549 32122 40352 36351 34314 19549 35385 28090 
5747 18320 26550 22549 20512 5747 21583 14288 
10293 22866 31096 27095 25058 10293 26129 18834 
10...

result:

ok correct plan, good job!

Test #105:

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

input:

8
8834 17019 2 6 6 29586 8 26029
1 2 7 2 4 7005 5377 9
3 2 18412 6 10 3 24453 7
5 1295 12366 2 19055 1 9 0
3 19063 24021 10 5 7 1 6
8 8 25818 31772 3 0 8930 10
6 4 7 7 0 5276 6 1
4249 1 1 5 7 10 2 9

output:

1092704
26031 26029 26032 26032 26029 31301 29673 26029 
1735 1733 1736 1736 1733 7005 5377 1733 
20811 20809 20812 20812 20809 26081 24453 20809 
19057 19055 19058 19058 19055 24327 22699 19055 
24020 24018 24021 24021 24018 29290 27662 24018 
31771 31769 31772 31772 31769 37041 35413 31769 
6 4 7 ...

result:

ok correct plan, good job!

Test #106:

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

input:

33
7 3 6 10 21424 8 10 1 702 34929 5 9796 3 0 14113 3 23409 2 20831 10 6 8040 5 10854 27994 4 1 12183 13861 3 9668 7 5
6 33055 10 16180 2 7 19576 10 28284 0 10 8 0 3 13318 3 7 32050 8 0 9 8 9 29243 5 16819 6 23102 0 10 1 5 8
13920 22987 16165 32712 2 5 4 16018 1160 7 5 8 10 1534 16805 1 6 6 17186 2 ...

output:

33147411
39476 35282 38322 37241 35730 34277 36736 34277 37359 34929 34277 34277 34277 34277 39021 37547 42409 34277 35021 34277 34277 35373 38379 35299 38733 34362 35063 34277 37887 34277 41818 37713 35165 
37249 33055 36095 35014 33503 32050 34509 32050 35132 32702 32050 32050 32050 32050 36794 35...

result:

ok correct plan, good job!

Test #107:

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

input:

43
8495 0 1 8600 2 7 4 2131 3 4464 5 4 6 6 10 4 3593 8 2 10 2 10262 9 10 3 26142 0 2 5 8 1 7 4 3 2 3 29903 10 17829 7 1162 22385 5
10 0 5 2 5 6 1 8 15766 3 0 23303 26270 1 7 7 21666 10582 8 3105 10 10 1 0 9 5 12939 6 17504 25369 2467 8 5 26239 33465 19591 5 10 29869 10 5 9 0
14565 6 7 2811 2546 6 6 ...

output:

57720921
24306 28576 26362 26164 27056 24306 24306 26987 25550 28248 30716 29804 32675 29346 26838 26887 24891 24306 27157 27007 28989 33710 30015 27304 24306 26142 27010 24306 28304 30791 31542 31242 24306 29752 29157 29020 29903 24306 28063 32294 28200 30409 24306 
28614 32884 30670 30472 31364 28...

result:

ok correct plan, good job!

Test #108:

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

input:

42
10553 12279 3971 10 1 9 34784 5 30485 1 29997 31719 18240 2 0 4 8660 8910 9 15723 10 3 19084 1 8 3 3 1 8 32225 0 8 9 0 29840 3 25838 25525 5 6 6 8
6 7 14687 24167 3 25090 5 0 29337 1 8 22509 2 16444 4 14539 9 7 3217 8 25375 3 4 14705 12809 33371 2 8 30563 8583 8 4 5951 0 11192 10 5 20469 1 4 7 3
...

output:

56521206
38859 33460 33840 31167 31068 32814 34784 32450 32760 32161 29997 33864 34935 34811 29997 33115 33046 34874 29997 32282 29997 29997 29997 29997 33171 35437 31195 29997 35746 34312 31873 34037 32532 33344 29997 29997 34839 33042 34575 34956 29997 29997 
36793 31394 31774 29101 29002 30748 32...

result:

ok correct plan, good job!

Test #109:

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

input:

23
7 19772 0 7 9 9 21129 6111 4 27866 6 8 10 32344 33236 3 25985 5 0 34327 24974 9 33025
8 22559 10404 24556 13375 2 3 24195 12482 1 1 7 1114 9 1 2818 33231 486 9 9894 4 10 34132
2 29036 8 3966 4 10229 21366 1 5 1 9 5 6 7 8 10 24823 10 6 1 5 11613 1
2 2993 7 3 34059 4 23631 2 7 4 9 0 2069 31352 4 4 ...

output:

15502368
37879 43361 36081 37254 45079 39244 35904 34327 34327 37024 41459 36366 42628 42372 39503 44818 43363 35808 34327 34327 44783 37931 44264 
27747 33229 25949 27122 34947 29112 25772 24195 24195 26892 31327 26234 32496 32240 29371 34686 33231 25676 24195 24195 34651 27799 34132 
23554 29036 2...

result:

ok correct plan, good job!

Test #110:

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

input:

27
8088 30132 8054 8 0 10 9 2 10034 10 10 4 8 24437 0 8 8 6 33683 18730 0 31860 15266 1 7 3 4
5037 4 2110 6 4372 9 4 26931 4 20541 5 25885 1 30672 9 25931 5 4 8838 28675 27707 5 18516 2573 10 11284 1238
7 4 9 0 25095 5 3 26741 8 1031 1 25523 19051 9 10 2 7 2 2 34818 18381 0 0 5 1 24192 5
0 11692 284...

output:

21650355
19952 30132 25777 30872 30405 25198 26161 24519 28953 31364 20769 23473 19952 28470 32634 25096 27471 29014 33683 32596 31053 31860 19952 33465 24276 26107 29452 
22364 32544 28189 33284 32817 27610 28573 26931 31365 33776 23181 25885 22364 30882 35046 27508 29883 31426 36095 35008 33465 34...

result:

ok correct plan, good job!

Test #111:

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

input:

32
1 32313 0 2 29225 2 8 7 5 5818 7 2 3 16824 24041 9 9 10 5 1 8 4 0 6 7 3 1 32834 2 7 32308 9
13063 5837 5 1 10 5 10 4 25282 5 5 3 15961 20110 2 6 4 3 5 29340 545 4 7 2 7 8 1 9095 7 4 7 19896
1 27920 9 8 4 10 33243 6 8 28377 6 8540 7785 27821 27062 33929 26978 2 0 4 3 0 12531 5 8 0 3 93 1 26883 8 7...

output:

30822144
36055 32988 37778 35737 29225 34786 38311 41121 34483 38427 33934 30502 36593 34662 39703 38997 37037 29225 37662 34917 35475 36044 35027 41772 31240 36450 33458 33445 35613 31951 35994 29840 
30478 27411 32201 30160 23648 29209 32734 35544 28906 32850 28357 24925 31016 29085 34126 33420 31...

result:

ok correct plan, good job!

Test #112:

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

input:

45
0 1505 6 4 4 7 8 30486 2 10 0 14308 7 1 11403 9666 10 31027 29984 6 8 9 0 30617 9 7 33559 9 5 5 4 7 24609 29218 0 0 7 4 2 1996 3 5 10 12601 6
10 7 0 12929 5 1 3 0 5 3 3 18965 4610 0 33233 10 10414 9 2 5 8081 5 1 33398 9 3 5 10 3 8 3 7 10 4 10 976 5 4 5 8 7 0 6187 32388 0
15435 6 31305 2 0 4 17656...

output:

62358030
33611 33097 34320 30312 35311 33170 40020 36870 35848 33664 34917 32899 33819 33692 39573 32745 36766 31027 35858 30312 33936 30312 33722 30617 33051 36136 33559 30312 37289 35686 30312 33955 30312 30880 39127 30312 30312 33828 30523 38297 34553 35386 34390 33862 32554 
36392 35878 37101 33...

result:

ok correct plan, good job!

Test #113:

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

input:

17
0 8 5 3409 6 33539 7521 31795 2 2 21932 31510 7 0 3739 4 9
1 34588 2 2 34242 6 5 8 21514 2 5 13906 7 4 17834 20573 18653
6 6 32372 5 1 2 3 0 8 2 4 18774 2 10 0 5 27625
9 2 9 3 8 6 10 5 9 25012 2 32809 15815 4331 8394 1 5
3 10548 34396 9 31617 10 10 0 1 7 8 14418 32101 6997 1 9 8078
4 24872 7 2422...

output:

7625741
45966 46918 48496 46269 45717 33539 34695 43216 39518 33539 33541 38028 46201 33539 42032 33539 37855 
34491 35443 37021 34794 34242 22064 23220 31741 28043 22064 22066 26553 34726 22064 30557 22064 26380 
35736 36688 38266 36039 35487 23309 24465 32986 29288 23309 23311 27798 35971 23309 31...

result:

ok correct plan, good job!

Test #114:

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

input:

43
9 19819 1 6 1518 22696 6 1 2 8 0 18779 6 4 3 5 2 0 1 2 1647 1231 9 0 11803 1077 4 4 6 25213 4 3 12745 6 3 5 4 3 3 31922 6 1 33587
17992 3652 9 4 908 9 28699 10 24719 8 5 24159 2 3 21199 6 3 30899 9 2 9 21688 28896 8 1 11175 5 4 19986 14894 6 10 1861 16155 7 9 181 5 1 5 9 1 5
0 0 10 9 5 9 9 8 3 7 ...

output:

57662871
31700 28870 25099 22603 23288 26821 29773 27433 25481 22972 26229 32059 30802 27026 25073 27492 25658 26931 25424 26823 27896 24963 30004 25378 21834 26518 22501 23459 27447 26328 32508 27002 27751 28331 24312 26071 31046 29902 27935 31922 29121 18809 33587 
35668 32838 29067 26571 27256 30...

result:

ok correct plan, good job!

Test #115:

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

input:

17
26380 6 3 3 8 584 31832 9 0 0 1 2158 7 7 4 6 2778
15076 10 0 5 5 31067 4 10 9 9 2 7 16676 8 18207 8 8
0 6 9688 5 0 6 0 22428 6 25433 9 8 9 5 0 6 9
9 26380 4 3 7 9 8 5 6 9 8 21668 1 10 8 458 14570
5988 5 10 7 29960 21138 10 1 25508 7 8 29978 10 34687 8 9 25436
11428 4 12769 5 30036 1 5 2 10 6 2429...

output:

7681552
26380 19160 15590 11536 31184 35752 31832 24306 26620 24393 31890 30350 30335 36814 26414 30971 25808 
21695 14475 10905 6851 26499 31067 27147 19621 21935 19708 27205 25665 25650 32129 21729 26286 21123 
27420 20200 16630 12576 32224 36792 32872 25346 27660 25433 32930 31390 31375 37854 274...

result:

ok correct plan, good job!

Test #116:

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

input:

49
1 4117 8 12739 2 2 4 1 10 9100 12162 25509 2 29931 10 5 34891 8 3 3 9 2 7332 2 2 27775 3874 15715 11839 10 4 21718 9 9 3 10 0 0 4 3 2 7 6 23189 7 13607 19441 109 30051
24244 7 3 2 25087 6 6 34732 0 8 6 15503 22462 3 24757 5 7 7 0 2 5454 18056 31973 492 21849 0 6 11365 5 0 2 29451 8 10 5 0 1788 7 ...

output:

76282612
24943 25403 29284 27719 26091 29545 27307 29726 29099 26916 25279 26525 24943 31365 27938 25584 34891 24943 32548 29003 28468 27734 31701 29391 31658 27775 24943 26834 28105 31550 28289 30363 24943 26958 28094 30940 24943 24943 25979 29499 30501 24943 24943 26671 26353 28341 33613 32648 300...

result:

ok correct plan, good job!

Test #117:

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

input:

4
4311 8 9 26049
4 6 9 6
0 1 1 2
6 7 8861 4

output:

139664
26047 26048 26051 26049 
5 6 9 7 
0 1 4 2 
8857 8858 8861 8859 

result:

ok correct plan, good job!

Test #118:

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

input:

2
0 7
5 2

output:

24
7 7 
5 5 

result:

ok correct plan, good job!

Test #119:

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

input:

20
0 10 1 1 5 8 7 3 29333 6 22184 9 0 1 9 8 32036 10114 0 6
10 0 7 1 8 8 0 5 14495 26362 22166 4301 5 23296 10 4 6 1 34250 5
158 6 2 6 5 6 5 5 5 8 4662 6 1592 13200 6212 17488 28424 18384 5 1
1 18640 23777 4 10 27987 1 5 7 10 4353 28106 9 6687 8 10 28945 9 8 5
5 7 7 3 2 11308 23883 1 5 9 6 26882 1 2...

output:

11007480
26219 22815 27952 22184 33987 32162 22184 26194 29400 22184 22184 34025 22184 24006 26118 22184 33120 41730 22184 22184 
38285 34881 40018 34250 46053 44228 34250 38260 41466 34250 34250 46091 34250 36072 38184 34250 45186 53796 34250 34250 
21523 18119 23256 17488 29291 27466 17488 21498 2...

result:

ok correct plan, good job!

Test #120:

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

input:

29
2 6 7138 18043 10837 3 31168 0 2 5 2 1 6 12759 6 10 4 0 6 2 9 30348 7 4 25017 1 2 7 0
28308 5 3 6 9 6361 9463 14284 10 4 2 5 5 1 7 6065 2 1975 8 5 14948 7 10 29884 31787 9 29684 5 5
3 4 10 0 0 4 8 1 29162 5 5 3 13400 3 1 10 3 4 32602 4 0 16691 28726 3503 4 29303 26247 4 4
0 1 2 4 10 7 10 1 15996 ...

output:

24426149
26197 29491 23756 29197 25754 27408 34832 24080 33847 22756 22756 22756 27064 22756 23453 22756 22756 31829 33072 22756 33383 30348 32520 33689 25808 29773 29005 24454 26513 
32176 35470 29735 35176 31733 33387 40811 30059 39826 28735 28735 28735 33043 28735 29432 28735 28735 37808 39051 28...

result:

ok correct plan, good job!

Test #121:

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

input:

5
9 4 5 0 8
1 9 5 3 1569
5 9 10 6 5
5 7 1 4 2
1 4735 9 0 2

output:

31635
9 11 8 8 8 
1570 1572 1569 1569 1569 
11 13 10 10 10 
5 7 4 4 4 
4733 4735 4732 4732 4732 

result:

ok correct plan, good job!

Test #122:

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

input:

28
0 26844 24088 0 6 9 3 7 2 0 6 8 8 10 9 9 2 2 5 5 7 2 14505 27222 32143 8 2 6059
6 9 9153 3 29560 4 4 8 7 0 0 6 8 10 2 3 8 4 4 11316 5 3 3 0 2887 5 3 10
6 7 5 9 8 20825 9 7 8 7 28950 11450 7 5 1 10 2 10 0 10 4 6 5 4 6 6 6 7
0 4 3 10 16194 10 10584 10 0 3 2 6 1 8 5 10 1 6 9 4 3 9 2 10 0 28602 10 9
...

output:

16525740
36328 26844 26844 26846 26846 26847 49056 26844 26844 28648 30065 26845 33532 26844 36463 31605 26845 48953 37743 26844 26846 26848 26844 30354 34485 26847 34142 26844 
39042 29558 29558 29560 29560 29561 51770 29558 29558 31362 32779 29559 36246 29558 39177 34319 29559 51667 40457 29558 29...

result:

ok correct plan, good job!

Test #123:

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

input:

34
5406 6 7 4 7 1 1 0 1 10 8 10 10 9 3 0 10 9 1 7 7 6 1 7 3 3 5 1 24046 5 7 14514 8 10
3 5 6 7 5 7 8 3 3 0 0 10 9 6871 2 3 6 4 1 32429 4 0 30810 5 3 5 1 3 4 0 1 4 4 8
9 19614 4 18347 10 3 7874 3 1 2 0 5 5 1 0 10 9 5 5 1 10 3 1 1 5 1 33722 10 2 8 9 2 6 8
10 7 9 5 0 4 10 0 6 7 6 10 9 9 7 4 7 0 10 5 2 ...

output:

23136252
22766 12533 11057 14137 10206 10205 10210 10205 10210 19786 10207 10206 10206 13837 10205 17935 10207 10206 10224 20038 10206 10553 15068 10208 10206 10205 26641 15820 24046 10205 18792 15070 20536 20865 
38508 28275 26799 29879 25948 25947 25952 25947 25952 35528 25949 25948 25948 29579 25...

result:

ok correct plan, good job!

Test #124:

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

input:

38
5 7 5 4 9 3 6 0 6 4 8 9 12828 0 10 7 4 7 2 9 0 1 7 2 5 9 6 3 6 3 4 1 6 0 9 8 1 5
22945 8 2680 2 0 5 5 1 1 6 0 1 16474 9 5 10 16500 0 8 4 2 0 9 2 0 0 7 0 10 5 7 8 3 9 7 9 2 1
4 2 9 8 4 1 5 4 8 0 7 4 8 2 1 2 7 9 5 5 10 10 9 5 9 8 6 4 1 8 5 7 2 1 9 33881 4 2
1 1 3 2 9 3 1 0 1 7 0 0 10 7 1 3 15306 4 ...

output:

28206906
5639 9804 9 17359 9 7982 11965 7406 10 9 8 5282 12828 12 5169 8 18706 10414 10 1073 8 9 8 8 14572 10265 5679 1154 8 8 6895 8 12 11077 4272 8 13440 9520 
22945 27110 17315 34665 17315 25288 29271 24712 17316 17315 17314 22588 30134 17318 22475 17314 36012 27720 17316 18379 17314 17315 17314 ...

result:

ok correct plan, good job!

Test #125:

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

input:

50
0 7 6 0 0 4 1 7 6285 21404 4 2 2 4 9 9 6 9 5 3 9 3 9 1 4 9 9 8 1 3 21530 6 10 1 31586 6 5 5068 8 4 5 8 7 0 10 10 7 1 0 4
10 5 8 7 10 9 1 7 1 9 5 4342 3 1 7 10 5 28146 3296 10 2 1 34620 4 8 4 10 7 6 9 7 0 6 8 3 8 4 10 3 0 6 7 6 2 7 7 9 10 4 6
8 1 7 0 9 10 3 5 8 9 0 6 9 4 4 9 6 3 3 10 10 6 6 6 4 1 ...

output:

58865250
12036 26752 13700 14572 8158 16037 6336 3347 17040 21404 5935 3347 6457 13618 9420 3348 6068 3870 11121 16954 5311 15240 17703 20403 18302 17052 5524 3349 3350 18826 21530 6636 3348 20012 31586 9477 13241 10754 7665 14238 3352 28258 19897 3346 16494 17202 10196 11497 10686 28323 
36312 5102...

result:

ok correct plan, good job!