QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#149459#4786. Balance8BQube#AC ✓2ms3656kbC++142.4kb2023-08-24 17:13:032023-08-24 17:13:04

Judging History

你现在查看的是最新测评结果

  • [2023-08-24 17:13:04]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:3656kb
  • [2023-08-24 17:13:03]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
#define X first
#define Y second
#define ALL(v) v.begin(), v.end()
#define SZ(a) ((int)a.size())
#define pb push_back

const int N = 55;
const int INF = 1e9;

struct KM {
    int w[N][N], hl[N], hr[N], slk[N], n;
    int fl[N], fr[N], pre[N], qu[N], ql, qr;
    bool vl[N], vr[N];
    void init(int _n) {
        n = _n;
        for (int i = 0; i < n; ++i)
            for (int j = 0; j < n; ++j)
                w[i][j] = -INF;
    }
    void add_edge(int a, int b, int wei) {
        w[a][b] = wei;
    }
    bool Check(int x) {
        if (vl[x] = 1, ~fl[x])
            return vr[qu[qr++] = fl[x]] = 1;
        while (~x) swap(x, fr[fl[x] = pre[x]]);
        return 0;
    }
    void Bfs(int s) {
        fill_n(slk, n, INF);
        fill_n(vl, n, 0), fill_n(vr, n, 0);
        ql = qr = 0, qu[qr++] = s, vr[s] = 1;
        while (1) {
            int d;
            while (ql < qr) {
                for (int x = 0, y = qu[ql++]; x < n; ++x)
                    if (!vl[x] && slk[x] >= (d = hl[x] + hr[y] - w[x][y])) {
                        if (pre[x] = y, d) slk[x] = d;
                        else if (!Check(x)) return;
                    }
            }
            d = INF;
            for (int x = 0; x < n; ++x)
                if (!vl[x] && d > slk[x]) d = slk[x];
            for (int x = 0; x < n; ++x) {
                if (vl[x]) hl[x] += d;
                else slk[x] -= d;
                if (vr[x]) hr[x] -= d;
            }
            for (int x = 0; x < n; ++x)
                if (!vl[x] && !slk[x] && !Check(x)) return;
        }
    }
    int Solve() {
        fill_n(fl, n, -1), fill_n(fr, n, -1), fill_n(hr, n, 0);
        for (int i = 0; i < n; ++i)
            hl[i] = *max_element(w[i], w[i] + n);
        for (int i = 0; i < n; ++i) Bfs(i);
        int res = 0;
        for (int i = 0; i < n; ++i) res += w[i][fl[i]];
        return res;
    }
} km;

int main() {
    ios::sync_with_stdio(0), cin.tie(0);
    int n;
    cin >> n;
    km.init(n);
    for (int i = 0; i < n; ++i)
        for (int j = 0; j < n; ++j) {
            int x;
            cin >> x;
            km.add_edge(i, j, x);
        }
    cout << km.Solve() * n << "\n";
    for (int i = 0; i < n; ++i)
        for (int j = 0; j < n; ++j)
            cout << km.hl[i] + km.hr[j] << " \n"[j + 1 == n];
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 3488kb

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
29118 29805 32911 29292 32911 32911 32911 29006 29470 30198 32911 28879 32911 32832 31432 29261 31465 31000 31397 26353 28521 32896 26162 31166
33485 34172 37278 33659 37278 37278 37278 33373 33837 34565 37278 33246 37278 37199 35799 33628 35832 35367 35764 30720 32888 37263 30529 35533
297...

result:

ok correct plan, good job!

Test #3:

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

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 32077 34463 34463 33451 32323 32386 34463 33084 34463 34463 32062 33506 34463 34168 34463 33410 34463 34463 32712 32312 33748 32961 30745 29644 34463
33601 31835 34221 34221 33209 32081 32144 34221 32842 34221 34221 31820 33264 34221 33926 34221 33168 34221 34221 32470 32070 33506 327...

result:

ok correct plan, good job!

Test #4:

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

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
34201 27030 32777 31850 28773 30105 28455 30577 27566 34201 31560 32428 29325 31474 29615 29414 31388 31786
39267 32096 37843 36916 33839 35171 33521 35643 32632 39267 36626 37494 34391 36540 34681 34480 36454 36852
38223 31052 36799 35872 32795 34127 32477 34599 31588 38223 35582 36450 333...

result:

ok correct plan, good job!

Test #5:

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

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 35386 33106 32484 34270 32902 33321 31700 31915 31476 32573 34963 31213 32524 33358 34926 33294 35028 33613 34166 32093 32847 34041 33830 31536 31446 31644 33040 33900 31731 34759 33920 33538 30667 34556 32101 32595 32730 33592 33177 34144 33316 32097 31693
34857 36203 33923 33301 350...

result:

ok correct plan, good job!

Test #6:

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

input:

3
10563 8010 6959
11216 11399 13097
30720 30111 23171

output:

161313
10563 9954 10563
13097 12488 13097
30720 30111 30720

result:

ok correct plan, good job!

Test #7:

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

input:

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

output:

499088
34584 34530 34584 30205
28520 28466 28520 24141
31334 31280 31334 26955
34767 34713 34767 30388

result:

ok correct plan, good job!

Test #8:

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

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
29314 31757 29461 31178 30735 31186 31061 32093 29187 30752 31082 30109 29478 29287 28702 27557 30119 32093 29722 30336
31615 34058 31762 33479 33036 33487 33362 34394 31488 33053 33383 32410 31779 31588 31003 29858 32420 34394 32023 32637
30952 33395 31099 32816 32373 32824 32699 33731 308...

result:

ok correct plan, good job!

Test #9:

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

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
34754 23101 34754 22103 34754
25539 13886 25539 12888 25539
28765 17112 28765 16114 28765
29367 17714 29367 16716 29367
34413 22760 34413 21762 34413

result:

ok correct plan, good job!

Test #10:

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

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
32689 30916 31033 31722 30068 30312 29365 29333 32211 32689 32689 32689 32689 31779 32689 32689 32609 32364 32427 31512 30823 31480 32689 27186 32119 32689 32523 31961 28385 30851 31526 31697 32052 32198 32032 30461 31085
34166 32393 32510 33199 31545 31789 30842 30810 33688 34166 34166 341...

result:

ok correct plan, good job!

Test #11:

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

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 32717 30049 32208 32717 26979 32717 32717 32717 32717 30965 24980 32717 32717
30414 33845 31177 33336 33845 28107 33845 33845 33845 33845 32093 26108 33845 33845
30238 33669 31001 33160 33669 27931 33669 33669 33669 33669 31917 25932 33669 33669
31340 34771 32103 34262 34771 29033 3477...

result:

ok correct plan, good job!

Test #12:

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

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
34913 31190 32888 32157 34913 34713 34913 32957 34913 34913 34462 34913 34427 32495 29608 33364 30677 34913 31642
34192 30469 32167 31436 34192 33992 34192 32236 34192 34192 33741 34192 33706 31774 28887 32643 29956 34192 30921
34636 30913 32611 31880 34636 34436 34636 32680 34636 34636 341...

result:

ok correct plan, good job!

Test #13:

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

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 35486 35582 35323 36011 34665 34751 34279 34983 34826 33954 33721 36011 36011 33562 35721 34242 36011 34931 36011 35721 35615 34759 35660 36011 33657 33925 34715 35292 36011 35922 34995 36011 36011 35433 35893 35535 34432 36011 34816 35119 35497 34359
33662 34273 34369 34110 34798 334...

result:

ok correct plan, good job!

Test #14:

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

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
31633 30727 31840 31840 31840 29485 27793 23129 31840 29783 31840 31840 31840
34077 33171 34284 34284 34284 31929 30237 25573 34284 32227 34284 34284 34284
33457 32551 33664 33664 33664 31309 29617 24953 33664 31607 33664 33664 33664
24629 23723 24836 24836 24836 22481 20789 16125 24836 2277...

result:

ok correct plan, good job!

Test #15:

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

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
30697 31875 30936 34948 32801 33999 32091 34948 29747 29916 34188 31585 33305 32296 31054 33463 34397 33379 32384 30309 30879 33162 30818 32791
32589 33767 32828 36840 34693 35891 33983 36840 31639 31808 36080 33477 35197 34188 32946 35355 36289 35271 34276 32201 32771 35054 32710 34683
315...

result:

ok correct plan, good job!

Test #16:

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

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
33116 33677 31611 33985 34462 33022 28393 31937 34462 34462 32779 32621 31157 33425 34462 32156 33439 31143 34462 34462 34462 27612 32533 34251 32249 32834 34462 34462 32326 34462 34028 34462 32119 33001 34462
34478 35039 32973 35347 35824 34384 29755 33299 35824 35824 34141 33983 32519 347...

result:

ok correct plan, good job!

Test #17:

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

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
30011 29765 30566 30968 24986 30350 29667 30855 29484 30968 29477 28155 30592 28912 30968 30968 29030 27673 27702 30968 29671 28925
34132 33886 34687 35089 29107 34471 33788 34976 33605 35089 33598 32276 34713 33033 35089 35089 33151 31794 31823 35089 33792 33046
32951 32705 33506 33908 279...

result:

ok correct plan, good job!

Test #18:

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

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
35458 33582 35458 33973 34080 34889 34637 35342 34190 35458 35453 35458 34965 32445 35206 35458 34872 34937 34561 35458 34594 34561 34006 35458 34763 35139 33696 33628 34484 32614 35458 35093 35123 34318 34777 35096 34868 34835 34585 34883 35458 35454 32626 33530 35458 33576 34550 34226 354...

result:

ok correct plan, good job!

Test #19:

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

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
35314 32854 33576 34427 33596 34227 33384 34426 33742 33775 34571 33307 32057 33229 33677 32661 33281 34321 32692 35037 32445 34214 33916 35314 33905 34319 32935 33336 35314 35229 34440 33480 34116 34668 34482 34373 34120 31856 32939 34799 35000 34021 33515 33803 33427 32877 33465
36209 337...

result:

ok correct plan, good job!

Test #20:

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

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
35360 34226 33814 35075 35850 35850 35850 33635 34207 35850 32697 35737 35850 31395 28691 33512 35850 35218 34916 34817 34619 33845
33818 32684 32272 33533 34308 34308 34308 32093 32665 34308 31155 34195 34308 29853 27149 31970 34308 33676 33374 33275 33077 32303
34987 33853 33441 34702 354...

result:

ok correct plan, good job!

Test #21:

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

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
32782 33478 32347 32859 32046 31155 32707 32564 33294 32866 28682 32924 32700 33478 32784 32384 31141 32048 31673 33478 32830 32715 33478 33478 33122 33478 32820 33316 32128 31660 33478 33260 33478 32885 33478 32939 33478 33428 33478 32561 33478 32179 33478 33445 32294 32572 32862 29939 330...

result:

ok correct plan, good job!

Test #22:

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

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
31870 29292 32687 32146 33915 34663 31760 31675 31081 34663 32814 32011 31407 33948 32036 33311 33492 34663 33198 31926 34291 34663 31394 32435 34343 34663 33208 34663 34191 32881 34597 31467 32601 34663 34481 33754 32919 32764 30291 33281 33771
33221 30643 34038 33497 35266 36014 33111 330...

result:

ok correct plan, good job!

Test #23:

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

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
31937 31937 31937 31096 31374 30794 31937 26962
28669 28669 28669 27828 28106 27526 28669 23694
28510 28510 28510 27669 27947 27367 28510 23535
27248 27248 27248 26407 26685 26105 27248 22273
29373 29373 29373 28532 28810 28230 29373 24398
32529 32529 32529 31688 31966 31386 32529 27554
2892...

result:

ok correct plan, good job!

Test #24:

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

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
32706 32955 33346 33583 33732 32028 32668 34446 33424 33937 32017 32765 34446 33411 33253 34446 34446 33862 34240 34446 34038 30481 34149 29392 34446 34272 31945 33496 34124 33627 34417 34446 34446 34446 34446 34446 32898 32753 34309 33521 34040 33152 33385 34446 33549
33817 34066 34457 346...

result:

ok correct plan, good job!

Test #25:

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

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
34896 30942 30662 32538 34673 33305 34903 32651 33478 32015 33546 32432 32806 32978 34127 34643 34509 34054 34903 32518 34903 32327 32567 34903 34903 33824 34903 34691 31220 33181 33134 34254 32498 34297
33901 29947 29667 31543 33678 32310 33908 31656 32483 31020 32551 31437 31811 31983 331...

result:

ok correct plan, good job!

Test #26:

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

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
29861 31517 33901 33901 30793 33901 33901 33901
29501 31157 33541 33541 30433 33541 33541 33541
29093 30749 33133 33133 30025 33133 33133 33133
28715 30371 32755 32755 29647 32755 32755 32755
30739 32395 34779 34779 31671 34779 34779 34779
28114 29770 32154 32154 29046 32154 32154 32154
3017...

result:

ok correct plan, good job!

Test #27:

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

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 25765 34586 34586 32154 27026 29558 31429 32893 26715 29566 29930 34586 29860 27363 27557 31267
26039 19128 27949 27949 25517 20389 22921 24792 26256 20078 22929 23293 27949 23223 20726 20920 24630
29584 22673 31494 31494 29062 23934 26466 28337 29801 23623 26474 26838 31494 26768 2427...

result:

ok correct plan, good job!

Test #28:

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

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
32212 30852 30703 30068 30949 32212 27462 30671 30048 29040 31555 32212 31634 31613 29764 29446 28165 32212 30711 31423 31469 28700 30507 29072 31440 30322 31457 30195 30630 29856 29395 31056 28015 29860 31231 30396 31910 31649 29927 28625 30341 28541 30831 29720 28593 30185
36081 34721 345...

result:

ok correct plan, good job!

Test #29:

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

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
28567 30731 33562 34735 33647 32251 33853 29600 32548 32061 34796 31560 32720 34213 34180 33058 30811 30896 32097 31041 33232 34656
26303 28467 31298 32471 31383 29987 31589 27336 30284 29797 32532 29296 30456 31949 31916 30794 28547 28632 29833 28777 30968 32392
29060 31224 34055 35228 341...

result:

ok correct plan, good job!

Test #30:

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

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
34152 34878 34646 34891 34058 30170 32298 34891 33849 34891 34891 34891 33859 34604 32136 33233 32328 34793 34891 33277 34891 34135 34891 33745 34891 34687
33865 34591 34359 34604 33771 29883 32011 34604 33562 34604 34604 34604 33572 34317 31849 32946 32041 34506 34604 32990 34604 33848 346...

result:

ok correct plan, good job!

Test #31:

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

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
23720 16707 28011 28589 23002 26873 29265 29265 29265
25583 18570 29874 30452 24865 28736 31128 31128 31128
25653 18640 29944 30522 24935 28806 31198 31198 31198
25055 18042 29346 29924 24337 28208 30600 30600 30600
26173 19160 30464 31042 25455 29326 31718 31718 31718
26009 18996 30300 3087...

result:

ok correct plan, good job!

Test #32:

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

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
34536 34860 32049 34860 33782 33936 33864 33897 34860 34523 34860 34860 32737 33805 33088 34249 34860 34201 34860 32250 34660 33608 33986 33124 34507 32386 34860 34573 33661 34860 33539
34244 34568 31757 34568 33490 33644 33572 33605 34568 34231 34568 34568 32445 33513 32796 33957 34568 339...

result:

ok correct plan, good job!

Test #33:

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

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
37006 31833 33231 37006 37006 32893 33725 32593 33912 31168 28323 30036 34736 34923 35673 34866 30360 36798 34264 36611 30635
38111 32938 34336 38111 38111 33998 34830 33698 35017 32273 29428 31141 35841 36028 36778 35971 31465 37903 35369 37716 31740
32216 27043 28441 32216 32216 28103 289...

result:

ok correct plan, good job!

Test #34:

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

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
35746 35101 35405 34985 35746 29747 34465 30626 34977 34906 35079 34049 35263 34381 35746 35746 34432 34504 33633 31862 34939 35746 35194 31749 34125 35746 35502
34711 34066 34370 33950 34711 28712 33430 29591 33942 33871 34044 33014 34228 33346 34711 34711 33397 33469 32598 30827 33904 347...

result:

ok correct plan, good job!

Test #35:

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

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
30936 33167 34623 35205 33052 30806 34419 35205 32886 32740 35205 32335 29445 33666 32766 35205 32338 31218 31810 31246 35205 30918 34618 33042
29803 32034 33490 34072 31919 29673 33286 34072 31753 31607 34072 31202 28312 32533 31633 34072 31205 30085 30677 30113 34072 29785 33485 31909
289...

result:

ok correct plan, good job!

Test #36:

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

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
32288 29149 31187 33852 34200 32147 32491 33466 32736 31723 31963 32316 33741 34200 34200 31493 31161 30556 30445 31662 33308 32227 32541 31759 31683 33757 30732 32425 31161 34200 32177
33366 30227 32265 34930 35278 33225 33569 34544 33814 32801 33041 33394 34819 35278 35278 32571 32239 316...

result:

ok correct plan, good job!

Test #37:

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

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
30926 28092 33770 33770 33770 30075 31051 31156 33770 28562 28832 31780 28231 28718 32857 33770 32538
31931 29097 34775 34775 34775 31080 32056 32161 34775 29567 29837 32785 29236 29723 33862 34775 33543
32149 29315 34993 34993 34993 31298 32274 32379 34993 29785 30055 33003 29454 29941 3408...

result:

ok correct plan, good job!

Test #38:

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

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
28916 26937 31580 35377 35377 35377 28036 35377 28335 32218 31300 35377 28885 34683
28449 26470 31113 34910 34910 34910 27569 34910 27868 31751 30833 34910 28418 34216
27346 25367 30010 33807 33807 33807 26466 33807 26765 30648 29730 33807 27315 33113
32267 30288 34931 38728 38728 38728 3138...

result:

ok correct plan, good job!

Test #39:

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

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
35699 19366 34056 30869 34112 32833 35699 35699
32398 16065 30755 27568 30811 29532 32398 32398
32100 15767 30457 27270 30513 29234 32100 32100
34665 18332 33022 29835 33078 31799 34665 34665
24204 7871 22561 19374 22617 21338 24204 24204
28069 11736 26426 23239 26482 25203 28069 28069
31581...

result:

ok correct plan, good job!

Test #40:

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

input:

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

output:

405804
27352 27586 18535 27586
25738 25972 16921 25972
29638 29872 20821 29872
27072 27306 18255 27306

result:

ok correct plan, good job!

Test #41:

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

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
34338 33858 23521 34338 34338 26414
33749 33269 22932 33749 33749 25825
28236 27756 17419 28236 28236 20312
25925 25445 15108 25925 25925 18001
30233 29753 19416 30233 30233 22309
28374 27894 17557 28374 28374 20450

result:

ok correct plan, good job!

Test #42:

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

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
32126 32086 28311 29113 32126 32126 31713 31312 29735 32126 32126 31561 30683 30157 28911 31641 31250 32126 27373 30784 29328 28917
34630 34590 30815 31617 34630 34630 34217 33816 32239 34630 34630 34065 33187 32661 31415 34145 33754 34630 29877 33288 31832 31421
34263 34223 30448 31250 342...

result:

ok correct plan, good job!

Test #43:

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

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
34295 32500 34899 32223 34899 34899 31206 34899 32894 33264 34849 31650 31764 32840 32861 34899 34899 34899 34899 34899 31348 34645 33805 34899 33440 33666 32912 33839 33190
34759 32964 35363 32687 35363 35363 31670 35363 33358 33728 35313 32114 32228 33304 33325 35363 35363 35363 35363 353...

result:

ok correct plan, good job!

Test #44:

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

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
31208 32964 29730 31597 29570 31173 28913 30888 26615 30811 32445 31564 30892 30373 31208 30553 32964 28165 30388 27926 31233
34834 36590 33356 35223 33196 34799 32539 34514 30241 34437 36071 35190 34518 33999 34834 34179 36590 31791 34014 31552 34859
32429 34185 30951 32818 30791 32394 301...

result:

ok correct plan, good job!

Test #45:

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

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 35636 34938 34748 31800 33262 33872 33560 35607 35349 33615 33926 33267 35393 35450 34248 36288 36288 35363 36288 34969 33728 33934 34324 35747 34340 34283 34193 30089 36288 36288 36288 36288 34036 34803
34785 36217 35519 35329 32381 33843 34453 34141 36188 35930 34196 34507 33848 359...

result:

ok correct plan, good job!

Test #46:

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

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
35977 35778 34454 34000 35977 34296 35977 35569 35489 35971 34629 35713 35977 34639 35977 33392 34746 33125 35596 34769 35196 35169 35968 31889 35776 33961 35977 35977 35730 34442 34792 34868 35977 35614 35789 35977 35031 35569 33490 35977 35977
35173 34974 33650 33196 35173 33492 35173 347...

result:

ok correct plan, good job!

Test #47:

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

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
34703 30344 29078 24086 34703 30962 34703 28449 23445 28505 34703
30610 26251 24985 19993 30610 26869 30610 24356 19352 24412 30610
39750 35391 34125 29133 39750 36009 39750 33496 28492 33552 39750
31719 27360 26094 21102 31719 27978 31719 25465 20461 25521 31719
34851 30492 29226 24234 3485...

result:

ok correct plan, good job!

Test #48:

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

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
32513 33795 33103 32777 35140 35140 35140 34044 33066 34866 32703 35140 33467 34438 30985 32877 33903 35140 33135 32738 32074 35140 35140 34260 34148
29891 31173 30481 30155 32518 32518 32518 31422 30444 32244 30081 32518 30845 31816 28363 30255 31281 32518 30513 30116 29452 32518 32518 316...

result:

ok correct plan, good job!

Test #49:

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

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
32638 32706 34257 30254 30287 34178 34668 34668 32276 32743 32491 31490 34129 34668 33908 33507 32080 34668
23788 23856 25407 21404 21437 25328 25818 25818 23426 23893 23641 22640 25279 25818 25058 24657 23230 25818
29852 29920 31471 27468 27501 31392 31882 31882 29490 29957 29705 28704 313...

result:

ok correct plan, good job!

Test #50:

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

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
34308 33933 36160 36160 35686 35401 34037 31257 33372 36160 34793 35189 32158 36160 36160 31694 36160 34949 35891 36160 33190 35979 33321 35916 36160
32135 31760 33987 33987 33513 33228 31864 29084 31199 33987 32620 33016 29985 33987 33987 29521 33987 32776 33718 33987 31017 33806 31148 337...

result:

ok correct plan, good job!

Test #51:

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

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
33465 35804 32260 32867 34055 35804 35277 35084 32865 32984 31592 34308 35754 34844 35056 35804 34898 34835 35804 31400 35559 35383 33946 35044 34446 35264 34422 35804 33053 31682 34640 35013 34988 34927 35804 35159 30871 32423 33242 34868 33844 34621
32527 34866 31322 31929 33117 34866 343...

result:

ok correct plan, good job!

Test #52:

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

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 32645 30713
32869 29246 34625 33580 31648
17556 13933 19312 18267 16335
34611 30988 36367 35322 33390
25108 21485 26864 25819 23887

result:

ok correct plan, good job!

Test #53:

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

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
32802 31693 33488 26010 33927 23159 35168 32732 28531 29969 27069 29364 34005 32665 32558 31795 32757 31173 30621 32234
32660 31551 33346 25868 33785 23017 35026 32590 28389 29827 26927 29222 33863 32523 32416 31653 32615 31031 30479 32092
33070 31961 33756 26278 34195 23427 35436 33000 287...

result:

ok correct plan, good job!

Test #54:

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

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
34322 34365 36408 36087 35615 35676 35527 35228 34890 34579 34001 34612 33430 34860 35214 35892 35624 36434 35420 36656 33065 33859 35436 32350 36656 33711 33807 35758 30699 35238 36656 35358 33679 35501 32806 36656 35888 34619 33595 36656 34200 36656
31961 32004 34047 33726 33254 33315 331...

result:

ok correct plan, good job!

Test #55:

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

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
30245 30245 25800 30245 30245 30245 28934
31926 31926 27481 31926 31926 31926 30615
23132 23132 18687 23132 23132 23132 21821
34321 34321 29876 34321 34321 34321 33010
34071 34071 29626 34071 34071 34071 32760
29103 29103 24658 29103 29103 29103 27792
27702 27702 23257 27702 27702 27702 26391

result:

ok correct plan, good job!

Test #56:

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

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
34320 34320 30405 34320 34320 33067 34205 33136 32781 34320 34272 34320 34320 33395 34008 34320 32037 29785 34320 31989 30259 28138 34320 32975 31370
35919 35919 32004 35919 35919 34666 35804 34735 34380 35919 35871 35919 35919 34994 35607 35919 33636 31384 35919 33588 31858 29737 35919 345...

result:

ok correct plan, good job!

Test #57:

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

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
33895 30812 30389 32028 30625 29102 31514 32039 33388 32930 32882 33895 32380 33463 33241 32856 33064 29174 29814 31376 33132 33740 31598 33895 33895 32503 30885 33835 32892 32627 33266 32868 31466 31322 32249 33895 33499 33023 30710 32133 33895
33648 30565 30142 31781 30378 28855 31267 317...

result:

ok correct plan, good job!

Test #58:

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

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
34347 32328 32324 34155 33844 35811 35811 34005 35385 35811 34814 34501 35811 35811 35204 35811 34244 34138 34184 34860 33478 34140 35003 35104 35065 35811 35151 35811 35672 34057 33751 34661 35811 35811 34340 35562 35090 35811 33389 34386 35811 33730 34944 32778 35725 35811 35811
34404 323...

result:

ok correct plan, good job!

Test #59:

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

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
37301 35995 34439 35380 37994 34843 37994 34398 36419 36485 36824 37994 35561 36391 37994 37994 34502 37994 37994 33836 36895 34352 37994 34879 37920 35547 37330
33854 32548 30992 31933 34547 31396 34547 30951 32972 33038 33377 34547 32114 32944 34547 34547 31055 34547 34547 30389 33448 309...

result:

ok correct plan, good job!

Test #60:

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

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 34195 34938 38078 32205 32143 36409 34118 38358 31192 34486 35605 31038 36136 34134 32422 31550 31200 35084 34999 33029 32539 36368 38358 36365 34588
32755 33052 33795 36935 31062 31000 35266 32975 37215 30049 33343 34462 29895 34993 32991 31279 30407 30057 33941 33856 31886 31396 352...

result:

ok correct plan, good job!

Test #61:

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

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
32520 30461 33676 33676 33676 33676 33636 33412 31605 32437 30327 32320 32582 31888 28276 33357 29246 31089 32340 28312 33391 33114 33676 32921 32533 32140
33648 31589 34804 34804 34804 34804 34764 34540 32733 33565 31455 33448 33710 33016 29404 34485 30374 32217 33468 29440 34519 34242 348...

result:

ok correct plan, good job!

Test #62:

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

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
31908 33148 32742 29258 33019 33054 32657 31811 31523 34152 32585 33462 33374 34152 34152 34152 32502 33891 33851 34152 33377 31443 34152 34091 30543 33483 32593 33821 34152 33588 33223 31957
30182 31422 31016 27532 31293 31328 30931 30085 29797 32426 30859 31736 31648 32426 32426 32426 307...

result:

ok correct plan, good job!

Test #63:

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

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
37241 33732 33286 35920 35015 32482 34330 35602 37241 34631 33269 34551 30653 33983 30478 34909 35057 34140 34895 36448 34427 34992 34831 33150 28531 37241 35002 35374 36409 32391 37241 35313
39663 36154 35708 38342 37437 34904 36752 38024 39663 37053 35691 36973 33075 36405 32900 37331 374...

result:

ok correct plan, good job!

Test #64:

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

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 35848 33186 35848 31595 32330 32358 34184 34106 33486 29009 33026 34569 35848 35224 32816 35005 35423 34593 34817 34114 35848 33335 34978 33707 35848 30779 33013 34526 34925 35848 35139 34785 33104 34627
33853 34815 32153 34815 30562 31297 31325 33151 33073 32453 27976 31993 33536 348...

result:

ok correct plan, good job!

Test #65:

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

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
27726 28618 28618 26312 28434 25375 28618 27412 27837 27098 25318 28465 28618 25368 25143 24508 28618 25506 28618 25062 22908
29309 30201 30201 27895 30017 26958 30201 28995 29420 28681 26901 30048 30201 26951 26726 26091 30201 27089 30201 26645 24491
31046 31938 31938 29632 31754 28695 319...

result:

ok correct plan, good job!

Test #66:

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

input:

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

output:

383412
27760 13572 28956 26524
21849 7661 23045 20613
28868 14680 30064 27632
31604 17416 32800 30368

result:

ok correct plan, good job!

Test #67:

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

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 34192 36330 36330 33011 32543 31734 35585 34469 34083 33636 36330 33741 34310 36169 34406 33684 32853 33146 34135 36024 36330 34032 35206 35571 35274 34937 35396 35110 33898 34899 33843 32909 32643 35563 34504 36330 33192 35584 33145 32521 35480 34282 36330 34584
34083 34609 36747 367...

result:

ok correct plan, good job!

Test #68:

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

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
33442 31515 33442 33442 32048 33442 33442 31805 33379 33442 28596 33313 30985 29350 31173 32259 31777 32629 31661 32583 31834 32902 31086 32060 31432 30671 29043 32184 32653 31769 33442 33158 32359 30990
35271 33344 35271 35271 33877 35271 35271 33634 35208 35271 30425 35142 32814 31179 330...

result:

ok correct plan, good job!

Test #69:

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

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: 3500kb

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
32546 34907 34992 32806 33638 32813 33039 33280 34798 34773 33720 34738 34390 34736 34992 31991 33017 34992 34992 33756 33115 33991 34347 34850 34992 33360 32590 32139 34992 33207 34276 33341 31854 33781 31507 34992 34992 34463 34992 34142 34992 34875 34435 33963 34475 34992 34514 34992
322...

result:

ok correct plan, good job!

Test #71:

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

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
33876 34916 34254 34916 31773 25896 34916 34916 34551
32371 33411 32749 33411 30268 24391 33411 33411 33046
34209 35249 34587 35249 32106 26229 35249 35249 34884
28887 29927 29265 29927 26784 20907 29927 29927 29562
31982 33022 32360 33022 29879 24002 33022 33022 32657
30090 31130 30468 3113...

result:

ok correct plan, good job!

Test #72:

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

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
26361 26914 26198 28613 24953 26212 25640 26108 23342 25938 23837 28132 28613 26450 24061 26035 27280 26066 23744 25339 28393 26454
31226 31779 31063 33478 29818 31077 30505 30973 28207 30803 28702 32997 33478 31315 28926 30900 32145 30931 28609 30204 33258 31319
35011 35564 34848 37263 336...

result:

ok correct plan, good job!

Test #73:

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

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
30227 33269 31514 32116 33269 32950 33269 31711 32034 30198 33269 33269 33269 32469 33223 30185 33141 33269 32988 33269 31055 33269 32639 33269 33269 32717 30203 33269
30834 33876 32121 32723 33876 33557 33876 32318 32641 30805 33876 33876 33876 33076 33830 30792 33748 33876 33595 33876 316...

result:

ok correct plan, good job!

Test #74:

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

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
38797 38797 33204 38797 35271 38797 34633 38797
24211 24211 18618 24211 20685 24211 20047 24211
33606 33606 28013 33606 30080 33606 29442 33606
29950 29950 24357 29950 26424 29950 25786 29950
35181 35181 29588 35181 31655 35181 31017 35181
33088 33088 27495 33088 29562 33088 28924 33088
3387...

result:

ok correct plan, good job!

Test #75:

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

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
30660 33212 33954 33646 33969 31670 31857 34840 27288 34442 34268 32545 30489 34840 31543 32307 32942 30860 34840 33414 34691 33368 31577 34840 30876 32975 32807 32797 32002 32242 27547
32667 35219 35961 35653 35976 33677 33864 36847 29295 36449 36275 34552 32496 36847 33550 34314 34949 328...

result:

ok correct plan, good job!

Test #76:

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

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
33504 34894 35578 34824 35578 34822 35578 34649 33882 32481 33610 35578 34046 32095 33909 34874 35365 34794 33967 32438 30656 33996 33815 32529 32049 34158 34227 35253 33212 34777 35578 33963 32905 35383 32735 35578 32912 33369 33372 35050 35488 33511 35578
35317 36707 37391 36637 37391 366...

result:

ok correct plan, good job!

Test #77:

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

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
33299 33207 32098 34376 32562 33405 34028 33761 33788 34376 34376 32610 29380 34376 34376 31999 34376 31055 31763 32890 34236 32716 30625 34095 33610
35225 35133 34024 36302 34488 35331 35954 35687 35714 36302 36302 34536 31306 36302 36302 33925 36302 32981 33689 34816 36162 34642 32551 360...

result:

ok correct plan, good job!

Test #78:

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

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
37146 34164 36664 37146 37146 37066 31009 34920 35661 37146 37146 32237 37146 37146 34499
32569 29587 32087 32569 32569 32489 26432 30343 31084 32569 32569 27660 32569 32569 29922
34200 31218 33718 34200 34200 34120 28063 31974 32715 34200 34200 29291 34200 34200 31553
37645 34663 37163 3764...

result:

ok correct plan, good job!

Test #79:

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

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
33866 30520 32281 33866 33866 33866 32270 33791 31265 33422 33086 30554 33866 33866 33036 33866 33866 33866 32332 31556 28470 27642 33323 27129
33337 29991 31752 33337 33337 33337 31741 33262 30736 32893 32557 30025 33337 33337 32507 33337 33337 33337 31803 31027 27941 27113 32794 26600
330...

result:

ok correct plan, good job!

Test #80:

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

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
33360 33623 33551 35204 34416 33006 31897 33622 33458 35140 34268 34995 34086 33444 34255 34403 35204 33992 31957 34141 34790 33070 35204 34058 34899 32669 34023 33857 30173 34952 34919 34516 30699 32308 31751 34876 33617 35204 34765 32530 34124 35204 33229 33977 33158 34129 34311 34354
351...

result:

ok correct plan, good job!

Test #81:

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

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
31418 30163 32620 32620 31820 30642 29880 32620 29312 31985 32260 32321 32362 32620 31345 32620 32620 32620 32620 31290 30015 32620 31799 31520 31105 32620 28613 32620 31659 30548 32620 26830 32156 32083 28452 29428 31299 32620 32620 32288
33724 32469 34926 34926 34126 32948 32186 34926 316...

result:

ok correct plan, good job!

Test #82:

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

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
33892 31821 34770 34209 32550 34051 30405 34768 33894 33273 33408 34029 34262 31566 31693 32600 35000 33653 33175 34032 33127 34408 32604 32183 31169 35000 35000 35000 34068 34241 33065 35000 29453 32637 35000 30976
34637 32566 35515 34954 33295 34796 31150 35513 34639 34018 34153 34774 350...

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
32227 33128 36197 32642 33404 33203 36197 36197 33214 31923 34934 32286 32761 29589 33669 30659 30507 33761 35062 30440 30603 31757
33450 34351 37420 33865 34627 34426 37420 37420 34437 33146 36157 33509 33984 30812 34892 31882 31730 34984 36285 31663 31826 32980
29230 30131 33200 29645 304...

result:

ok correct plan, good job!

Test #84:

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

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
33999 31159 32555 34186 32776 34186 33906 33528 31782 33968 31264 33778 34186 34186 33438 34186 33037 33669 34143 34048 31256 33589 34186 32197 33989 34186 32563 30810 34186 33318 34186
34418 31578 32974 34605 33195 34605 34325 33947 32201 34387 31683 34197 34605 34605 33857 34605 33456 340...

result:

ok correct plan, good job!

Test #85:

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

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
34421 34421 34421 34421 33743 34421 32435 33500 34421 32449 32311 32590 33589 33834 33632 32940 34421 34006 33735 32310 32088 31107 32230 33734 33687 34421 33715 32983 34087 32567 33490
34828 34828 34828 34828 34150 34828 32842 33907 34828 32856 32718 32997 33996 34241 34039 33347 34828 344...

result:

ok correct plan, good job!

Test #86:

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

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
33687 33401 35042 33666 35549 33966 34840 34775 35549 35549 33658 33703 34805 35549 33725 35549 35549 35111 34028 33269 34229 32982 35467 32376 33345 34706 35549 34864 33526 35144 32400 34742 34879 35305 34252 33141 32874 33664 34519 35388 33468 32987 35178 33678 33014 32971 34937 32974 355...

result:

ok correct plan, good job!

Test #87:

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

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
34739 35283 34046 36418 35541 33942 34851 34732 34947 36418 34343 36418 34639 35048 33178 36418 36418 34236 33928 35715 36047 35813 36252 35104 35475 35298 34415 35665 33258 35286 35455 36418 35033 36054 36091 36418 35168 36206 35620 35498 34236 36418 36116 35346 34912 35586 35167 35556 351...

result:

ok correct plan, good job!

Test #88:

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

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
32587 33869 32455 32684 33315 33697 34314 33700 33696 32725 33781 31285 33782 34448 33747 33473 33270 34912 33541 33980 34363 34885 34912 33086 33635 32160 32965 34912 34912 34912 34912 32367 34876 34611 33180 33616 33315 32768 30738 33195 34522 33473 34176 34912 33256 34114 34553 32891 343...

result:

ok correct plan, good job!

Test #89:

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

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
35746 36427 34191 36015 34925 34976 37026 36478 36447 37657 36960 34854 34459 34550 35318 36032 37641 38213 37835 33676 36640 35699 35924 35482 34754 37880 36380 35764 34459 38427 35900 37302 33970 32253 33197 37221 36282 35548 35192 33582 34117 35483 34828 36006 36923 34317 35613 36089 343...

result:

ok correct plan, good job!

Test #90:

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

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
34256 35795 34639 35795 35074 35795 33993 34732 35795 34288 35262 35411 34532 33652 34936 34957 32318 34427 35082 35750 35285 33986 33228 33081 35055 34625 35596 33262 35795 32475 34513 35324 34876 35046 32929 32888 34287 34169 33160 33899 35012 34279 33544 35795 35795 34761 33425 33185 348...

result:

ok correct plan, good job!

Test #91:

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

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
34654 34099 34053 34960 34734 32951 34960 34496 32541 34744 31731 34960 34960 33633 33638 34693 33793 32309 34392 32864 34279 32392 34632 32831 31585 34855 32817 34960 33986 34586 34799 34519 32091 33895 34960 34384 31212 34173 33266 33628 34940 34009 33692 34960 32976 33769 31888 34686 345...

result:

ok correct plan, good job!

Test #92:

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

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
35154 36175 34120 35550 35168 36457 34501 34227 36118 33960 34707 36474 36474 35663 34447 34731 36474 35277 34326 33554 36209 35091 33534 34505 34214 36425 36474 35219 35770 35747 36321 35619 35564 35953 36443 36045 34607 33155 34827 35244 33235 33947 34729 35469 35047 36423 35600 33557 360...

result:

ok correct plan, good job!

Test #93:

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

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
33112 32551 32007 31514 30184 31688 30445 32749 31844 31710 33112 32182 31817 33112 31775 32292 31291 32457 33112 32273 33112 31937 32421 33112 31767 32073 29883 33082 32299 30579 32037 30635 33112 32664 30887 31355 30118 30665 30566 31575 31932 33112 32010 32282 33112 30360 30489 32501 316...

result:

ok correct plan, good job!

Test #94:

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

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
34147 35977 35596 35575 34718 34080 35857 34431 35756 34664 35769 35898 35484 34187 33949 35977 34202 35028 34021 35977 34287 35941 35527 32470 35511 34876 34759 34810 34478 35977 35977 34726 35977 35781 34957 35161 35036 34587 35977 35548 35977 35977 34292 35122 35977 34249 35977 35977 359...

result:

ok correct plan, good job!

Test #95:

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

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 2...

result:

ok correct plan, good job!

Test #96:

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

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
39378 27098 10721 39378 34918 38830 33090 27114
41230 28950 12573 41230 36770 40682 34942 28966
32867 20587 4210 32867 28407 32319 26579 20603
28657 16377 0 28657 24197 28109 22369 16393
30989 18709 2332 30989 26529 30441 24701 18725
28659 16379 2 28659 24199 28111 22371 16395
29841 17561 11...

result:

ok correct plan, good job!

Test #97:

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

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 32479 28477 22280 22211 3923 32656 32656
3871 32427 28425 22228 22159 3871 32604 32604
5 28561 24559 18362 18293 5 28738 28738
9 28565 24563 18366 18297 9 28742 28742
10 28566 24564 18367 18298 10 28743 28743
3 28559 24557 18360 18291 3 28736 28736
5 28561 24559 18362 18293 5 28738 2873...

result:

ok correct plan, good job!

Test #98:

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

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
29489 10542 9914 29489 29489 11923 454 19678
29041 10094 9466 29041 29041 11475 6 19230
29041 10094 9466 29041 29041 11475 6 19230
36099 17152 16524 36099 36099 18533 7064 26288
34644 15697 15069 34644 34644 17078 5609 24833
38971 20024 19396 38971 38971 21405 9936 29160
30664 11717 11089 30...

result:

ok correct plan, good job!

Test #99:

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

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
23189 23194 23194 23194 23194 23194 23194 23194
32185 32190 32190 32190 32190 32190 32190 32190
5 10 10 10 10 10 10 10
23033 23038 23038 23038 23038 23038 23038 23038
25694 25699 25699 25699 25699 25699 25699 25699
11694 11699 11699 11699 11699 11699 11699 11699
23393 23398 23398 23398 23398...

result:

ok correct plan, good job!

Test #100:

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

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
8767 25437 873 12835 20407 25317 25437 14385
7899 24569 5 11967 19539 24449 24569 13517
7899 24569 5 11967 19539 24449 24569 13517
13547 30217 5653 17615 25187 30097 30217 19165
12426 29096 4532 16494 24066 28976 29096 18044
20400 37070 12506 24468 32040 36950 37070 26018
16733 33403 8839 20...

result:

ok correct plan, good job!

Test #101:

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

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 33540 17197 10281 33433 15312 30306
11031 18958 23259 6916 0 23152 5031 20025
11036 18963 23264 6921 5 23157 5036 20030
14630 22557 26858 10515 3599 26751 8630 23624
11032 18959 23260 6917 1 23153 5032 20026
26933 34860 39161 22818 15902 39054 20933 35927
11036 18963 23264 6921 5...

result:

ok correct plan, good job!

Test #102:

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

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
18009 14 12372 10046 20376 20376 8 14636
25239 7244 19602 17276 27606 27606 7238 21866
19326 1331 13689 11363 21693 21693 1325 15953
29818 11823 24181 21855 32185 32185 11817 26445
18005 10 12368 10042 20372 20372 4 14632
23019 5024 17382 15056 25386 25386 5018 19646
37009 19014 31372 29046 ...

result:

ok correct plan, good job!

Test #103:

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

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
19066 4 19066 15991 6 5443 2473 3
19112 50 19112 16037 52 5489 2519 49
45299 26237 45299 42224 26239 31676 28706 26236
33899 14837 33899 30824 14839 20276 17306 14836
19070 8 19070 15995 10 5447 2477 7
34726 15664 34726 31651 15666 21103 18133 15663
37202 18140 37202 34127 18142 23579 20609 ...

result:

ok correct plan, good job!

Test #104:

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

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
12380 30090 33183 33183 32282 12381 33183 25888
6132 23842 26935 26935 26034 6133 26935 19640
5135 22845 25938 25938 25037 5136 25938 18643
14412 32122 35215 35215 34314 14413 35215 27920
5747 23457 26550 26550 25649 5748 26550 19255
6292 24002 27095 27095 26194 6293 27095 19800
9 17719 2081...

result:

ok correct plan, good job!

Test #105:

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

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
28562 24314 29272 29586 29586 29586 29586 26029
5981 1733 6691 7005 7005 7005 7005 3448
23429 19181 24139 24453 24453 24453 24453 20896
18031 13783 18741 19055 19055 19055 19055 15498
23311 19063 24021 24335 24335 24335 24335 20778
30748 26500 31458 31772 31772 31772 31772 28215
4252 4 4962 ...

result:

ok correct plan, good job!

Test #106:

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

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
34929 27802 34929 31482 33340 34929 31672 30433 31527 34929 32625 30345 27388 28015 31541 31715 34929 26797 30465 28451 27587 32983 32547 27819 31253 27809 34929 27532 34929 27724 34929 31954 32775
40182 33055 40182 36735 38593 40182 36925 35686 36780 40182 37878 35598 32641 33268 36794 369...

result:

ok correct plan, good job!

Test #107:

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

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
27849 25256 28268 25300 24311 26297 20499 29903 22951 24928 28224 26484 29588 29903 23518 23080 21977 23058 24243 26443 29903 29903 26695 24705 24932 27103 23203 23509 24497 26984 29903 28750 27875 27282 27852 26421 29903 21664 24256 29824 26952 27917 20986
33462 30869 33881 30913 29924 319...

result:

ok correct plan, good job!

Test #108:

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

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
36714 32687 36200 30752 29663 33854 36714 35222 31593 33308 29997 31719 33530 34038 34464 32796 32592 35791 30713 31828 29777 29066 29077 34317 36714 35627 32463 30007 36714 33145 34400 35259 31759 36714 36594 27852 34985 31875 34160 32811 34240 30187
34458 30431 33944 28496 27407 31598 344...

result:

ok correct plan, good job!

Test #109:

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

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
28112 33807 32003 30772 35051 35051 26137 24543 26714 32946 35051 35051 32945 32344 35051 35051 33579 29326 24299 34327 35051 33853 34497
27764 33459 31655 30424 34703 34703 25789 24195 26366 32598 34703 34703 32597 31996 34703 34703 33231 28978 23951 33979 34703 33505 34149
23341 29036 272...

result:

ok correct plan, good job!

Test #110:

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

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
27089 31181 30380 33683 33683 25198 27248 28367 32700 32696 23580 27737 22182 33683 33683 30962 31218 33683 33683 33683 33683 33192 19952 33465 30142 27194 32263
25653 29745 28944 32247 32247 23762 25812 26931 31264 31260 22144 26301 20746 32247 32247 29526 29782 32247 32247 32247 32247 317...

result:

ok correct plan, good job!

Test #111:

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

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
37044 32313 36727 36878 29225 35775 38287 40070 33432 39538 33101 31491 35542 32960 40070 37946 38026 27523 38114 37490 36616 36496 40070 40070 30189 37177 33486 33985 36153 30900 36446 30951
28894 24163 28577 28728 21075 27625 30137 31920 25282 31388 24951 23341 27392 24810 31920 29796 298...

result:

ok correct plan, good job!

Test #112:

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

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
36385 39169 39573 32774 39573 39573 39573 39573 36294 38362 34470 37597 37728 37601 39573 32745 36319 31027 38561 38530 39573 33219 38331 39573 35911 37677 33559 29865 36842 39573 32495 33508 37808 34352 39573 32124 37881 36602 35221 39546 34106 35832 34390 39074 32554
30210 32994 33398 265...

result:

ok correct plan, good job!

Test #113:

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

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
35309 35309 35309 35309 34021 33539 33228 33610 28861 29078 21932 35309 35309 27537 33667 20352 30562
35530 35530 35530 35530 34242 33760 33449 33831 29082 29299 22153 35530 35530 27758 33888 20573 30783
32372 32372 32372 32372 31084 30602 30291 30673 25924 26141 18995 32372 32372 24600 3073...

result:

ok correct plan, good job!

Test #114:

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

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
32779 29949 26275 23382 23288 27893 33587 28025 26073 23842 29452 32908 31881 28105 26102 30785 30371 32253 25424 33587 28581 29311 33587 30630 23915 27110 26841 26752 29765 26328 33587 27002 28621 28923 24312 27150 31046 33587 27935 31922 30155 18809 33587
31425 28595 24921 22028 21934 265...

result:

ok correct plan, good job!

Test #115:

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

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 35591 15590 11536 32857 36814 31832 24306 29447 27311 32952 30879 31397 36814 26414 32644 26337
20633 29844 9843 5789 27110 31067 26085 18559 23700 21564 27205 25132 25650 31067 20667 26897 20590
24502 33713 13712 9658 30979 34936 29954 22428 27569 25433 31074 29001 29519 34936 24536 3...

result:

ok correct plan, good job!

Test #116:

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

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
25494 27950 29308 29035 34261 33496 27858 32877 33106 30199 25279 34324 24943 34891 32435 32989 34891 24967 34791 29003 28608 29050 32252 30116 34891 34891 27138 29500 29421 31574 28429 33204 29485 26958 31840 34891 26259 26874 32726 31742 31226 25668 26527 29954 27669 34891 33637 34891 331...

result:

ok correct plan, good job!

Test #117:

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

input:

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

output:

139664
26045 26046 26049 26049
5 6 9 9
0 1 4 4
8857 8858 8861 8861

result:

ok correct plan, good job!

Test #118:

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

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: 3548kb

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
33428 28292 35161 40646 35934 31078 22866 29508 40646 28151 22184 35972 34222 27320 36450 21100 32036 40646 34268 40646
33410 28274 35143 40628 35916 31060 22848 29490 40628 28133 22166 35954 34204 27302 36432 21082 32018 40628 34250 40628
29816 24680 31549 37034 32322 27466 19254 25896 370...

result:

ok correct plan, good job!

Test #120:

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

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
23602 30448 20540 31168 22538 27582 31168 30275 31168 31168 20161 19388 27064 19092 26509 28163 19355 29614 29408 23145 31168 30348 29304 30473 27081 26109 31168 24768 30567
28308 35154 25246 35874 27244 32288 35874 34981 35874 35874 24867 24094 31770 23798 31215 32869 24061 34320 34114 278...

result:

ok correct plan, good job!

Test #121:

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

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 9 9 6 9
1569 1569 1569 1566 1569
10 10 10 7 10
7 7 7 4 7
4735 4735 4735 4732 4735

result:

ok correct plan, good job!

Test #122:

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

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
33986 26844 30268 40407 36440 30287 40407 18197 40407 20102 38412 37604 24986 18195 27814 22956 18199 40407 29094 18196 26873 30881 18198 40407 32143 40407 30242 30166
27106 19964 23388 33527 29560 23407 33527 11317 33527 13222 31532 30724 18106 11315 20934 16076 11319 33527 22214 11316 199...

result:

ok correct plan, good job!

Test #123:

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

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
24046 9938 19510 18598 24046 10205 19179 7615 12331 23825 10992 13928 10713 22290 7610 22094 10236 7611 14721 24046 7611 24046 22427 21710 7611 7610 24046 24046 24046 11384 16197 16350 21321 21372
32429 18321 27893 26981 32429 18588 27562 15998 20714 32208 19375 22311 19096 30673 15993 3047...

result:

ok correct plan, good job!

Test #124:

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

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
18706 10464 6749 18019 9 14476 18706 14146 17090 11799 8 8563 16109 6506 18706 12 18706 18706 13843 9514 9437 669 6657 11 18706 18706 10983 1154 18706 9 18706 13 8453 17817 18105 18706 18706 9777
22945 14703 10988 22258 4248 18715 22945 18385 21329 16038 4247 12802 20348 10745 22945 4251 22...

result:

ok correct plan, good job!

Test #125:

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

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
24198 31586 16963 16413 24802 23143 12082 8791 25646 21708 11681 7293 11194 23692 25135 3353 21783 13070 18414 17258 15385 24923 19544 20721 24048 18893 5828 7474 23567 20667 27276 13742 3355 20316 31586 31586 23315 16973 9070 16079 3456 30193 31586 3346 29532 26402 19565 13338 10990 31586
...

result:

ok correct plan, good job!