QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#390944#4678. CateringTWTP_TCTF#AC ✓4ms4144kbC++203.3kb2024-04-16 09:23:122024-04-16 09:23:12

Judging History

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

  • [2024-04-16 09:23:12]
  • 评测
  • 测评结果:AC
  • 用时:4ms
  • 内存:4144kb
  • [2024-04-16 09:23:12]
  • 提交

answer

#include<iostream>
#include <bits/stdc++.h>

#define ld long double
#define ll long long
#define rep(i, a, b) for(int i = a ; i < b ; i ++)
#define sz(v) (int)v.size()
#define all(v) begin(v), end(v)
#define IO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
struct Edge {
    int to;
    int cost;
    int cap, flow, backEdge;
};

struct MCMF {

    const int inf = 1000000010;
    int n;
    vector<vector<Edge>> g;

    MCMF(int _n) {
        n = _n + 1;
        g.resize(n);
    }

    void addEdge(int u, int v, int cap, int cost) {
        Edge e1 = {v, cost, cap, 0, (int) g[v].size()};
        Edge e2 = {u, -cost, 0, 0, (int) g[u].size()};
        g[u].push_back(e1);
        g[v].push_back(e2);
    }

    pair<int, int> minCostMaxFlow(int s, int t) {
        int flow = 0;
        int cost = 0;
        vector<int> state(n), from(n), from_edge(n);
        vector<int> d(n);
        deque<int> q;
        while (true) {
            for (int i = 0; i < n; i++)
                state[i] = 2, d[i] = inf, from[i] = -1;
            state[s] = 1;
            q.clear();
            q.push_back(s);
            d[s] = 0;
            while (!q.empty()) {
                int v = q.front();
                q.pop_front();
                state[v] = 0;
                for (int i = 0; i < (int) g[v].size(); i++) {
                    Edge e = g[v][i];
                    if (e.flow >= e.cap || (d[e.to] <= d[v] + e.cost))
                        continue;
                    int to = e.to;
                    d[to] = d[v] + e.cost;
                    from[to] = v;
                    from_edge[to] = i;
                    if (state[to] == 1) continue;
                    if (!state[to] || (!q.empty() && d[q.front()] > d[to]))
                        q.push_front(to);
                    else q.push_back(to);
                    state[to] = 1;
                }
            }
            if (d[t] == inf) break;
            int it = t, addflow = inf;
            while (it != s) {
                addflow = min(addflow,
                              g[from[it]][from_edge[it]].cap
                              - g[from[it]][from_edge[it]].flow);
                it = from[it];
            }
            it = t;
            while (it != s) {
                g[from[it]][from_edge[it]].flow += addflow;
                g[it][g[from[it]][from_edge[it]].backEdge].flow -= addflow;
                cost += g[from[it]][from_edge[it]].cost * addflow;
                it = from[it];
            }
            flow += addflow;
        }
        return {cost, flow};
    }
};

void doWork() {
    int n, k;
    cin >> n >> k;
    MCMF g(300);
    int s = 295, t = 294;
    g.addEdge(s, 1, k, 0);
    for (int i = 1; i <= n + 1; i++) {
        g.addEdge(i + (n + 1), t, 1, 0);
    }
    for (int i = 2; i <= n + 1; i++) {
        g.addEdge(s, i, 1, 0);
    }

    for (int i = 1; i <= n; i++) {
        for (int j = i + 1; j <= n + 1; j++) {
            int c;
            cin >> c;
            g.addEdge(i, j + (n + 1), 1, c);
        }
    }
    pair<int, int> ans = g.minCostMaxFlow(s, t);
    cout << ans.first;
}

int main() {
    IO

    int t = 1;
//    cin >> t;
    for (int i = 1; i <= t; i++) {
        //  cout << "Case #" << i << ": ";
        doWork();
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 2
40 30 40
50 10
50

output:

80

result:

ok 1 number(s): "80"

Test #2:

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

input:

3 2
10 10 10
20 21
21

output:

40

result:

ok 1 number(s): "40"

Test #3:

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

input:

1 1
10

output:

10

result:

ok 1 number(s): "10"

Test #4:

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

input:

1 1
0

output:

0

result:

ok 1 number(s): "0"

Test #5:

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

input:

2 1
0 0
1000000

output:

1000000

result:

ok 1 number(s): "1000000"

Test #6:

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

input:

5 80
1 1 1 1 1
2 2 2 2
2 2 2
2 2
2

output:

5

result:

ok 1 number(s): "5"

Test #7:

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

input:

5 3
10 10 20 20 30
20 50 50 50
50 50 50
30 50
50

output:

110

result:

ok 1 number(s): "110"

Test #8:

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

input:

1 100
100

output:

100

result:

ok 1 number(s): "100"

Test #9:

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

input:

100 1
256357 607231 856219 671106 505825 629930 556405 644972 703962 998257 953003 515056 504097 613968 745035 918028 849121 819052 533038 927035 886309 545818 666339 664847 737761 701726 701591 973014 785601 730799 708432 657392 854383 564652 828498 876560 694582 884904 521532 898544 899513 990887 ...

output:

26159926

result:

ok 1 number(s): "26159926"

Test #10:

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

input:

100 100
256357 607231 856219 671106 505825 629930 556405 644972 703962 998257 953003 515056 504097 613968 745035 918028 849121 819052 533038 927035 886309 545818 666339 664847 737761 701726 701591 973014 785601 730799 708432 657392 854383 564652 828498 876560 694582 884904 521532 898544 899513 99088...

output:

26159926

result:

ok 1 number(s): "26159926"

Test #11:

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

input:

100 100
364963 89408 90864 16871 215536 178920 418623 60678 55465 224950 335250 17697 374130 438786 335687 309889 424779 479681 472985 405052 453892 87803 371440 273050 471968 256933 310960 302804 215712 298803 88984 97027 404563 196200 113899 136452 375120 48874 197130 446938 273824 48732 480987 16...

output:

26166794

result:

ok 1 number(s): "26166794"

Test #12:

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

input:

100 10
151145 387293 375223 414628 30461 359405 38073 94736 209506 150769 848694 619464 749793 513077 660536 798854 958077 642270 686574 898644 763206 662270 682466 870356 997566 870777 822711 918045 959211 514326 687004 663022 573894 806980 853992 567173 903048 990396 693971 576272 917963 559018 71...

output:

22725436

result:

ok 1 number(s): "22725436"

Test #13:

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

input:

100 100
151145 387293 375223 414628 30461 359405 38073 94736 209506 150769 848694 619464 749793 513077 660536 798854 958077 642270 686574 898644 763206 662270 682466 870356 997566 870777 822711 918045 959211 514326 687004 663022 573894 806980 853992 567173 903048 990396 693971 576272 917963 559018 7...

output:

22725436

result:

ok 1 number(s): "22725436"

Test #14:

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

input:

100 9
151145 387293 375223 414628 30461 359405 38073 94736 209506 150769 848694 619464 749793 513077 660536 798854 958077 642270 686574 898644 763206 662270 682466 870356 997566 870777 822711 918045 959211 514326 687004 663022 573894 806980 853992 567173 903048 990396 693971 576272 917963 559018 712...

output:

25581021

result:

ok 1 number(s): "25581021"

Test #15:

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

input:

100 100
137472 469962 449604 628087 408193 338303 696957 705900 138549 470239 528281 517637 294988 932735 904589 791452 822351 830551 517891 232751 975028 996098 662267 555029 25883 994822 837451 551614 850047 766497 995985 888062 693558 574327 516150 367709 741483 713107 702040 619857 902852 746673...

output:

26284429

result:

ok 1 number(s): "26284429"

Test #16:

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

input:

100 100
121148 751042 344959 732426 658280 382761 879855 801231 700660 780124 90457 312284 730309 468888 561747 481461 179308 324556 662727 274641 610672 96525 664364 664526 917214 801784 860527 573835 90300 615674 415316 227801 866717 976926 164972 301553 931119 963994 842581 648131 744118 936363 8...

output:

24289103

result:

ok 1 number(s): "24289103"

Test #17:

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

input:

100 100
288410 147552 758921 463849 708897 562204 546493 693671 503125 921686 57007 771877 173302 682642 915071 645507 678895 702971 514885 122833 922071 25775 914634 222941 797676 969354 750891 312005 505613 868128 866554 250608 679871 625476 230809 905121 96575 941159 615144 707157 265526 187271 9...

output:

22831276

result:

ok 1 number(s): "22831276"

Test #18:

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

input:

100 100
125331 324675 24763 687819 807755 302326 990853 459240 720195 929560 476920 968536 674500 249072 775523 401614 594730 938227 785015 657963 302063 393334 734669 541166 708687 892437 4953 577001 620468 726583 801697 78357 538618 803190 731919 862725 512199 739125 791047 732394 325644 145727 71...

output:

24759032

result:

ok 1 number(s): "24759032"

Test #19:

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

input:

100 100
407440 167069 982232 560663 270584 224232 916449 436365 547405 86454 902086 902255 603654 511759 873467 895953 830137 501878 474254 535285 789193 544601 976476 737616 740827 760144 977025 781783 714625 311233 946948 555042 732747 262329 615705 525108 960073 548507 773769 523830 530272 339642...

output:

26194261

result:

ok 1 number(s): "26194261"

Test #20:

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

input:

21 21
3 3 3 3 3 3 3 3 3 3 3 10 10 10 10 10 10 10 10 10 10
1 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 5
1 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 5 10
1 10 10 10 10 10 10 10 10 10 10 10 10 10 10 5 10 10
1 10 10 10 10 10 10 10 10 10 10 10 10 5 10 10 10
1 10 10 10 10 10 10 10 10 10...

output:

83

result:

ok 1 number(s): "83"

Test #21:

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

input:

6 3
48 25 8 65 85 36
95 77 11 22 58
61 32 47 4
38 84 60
71 57
37

output:

145

result:

ok 1 number(s): "145"

Test #22:

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

input:

100 100
144095 426477 496478 117143 452036 905024 171667 325304 844210 201670 711836 493440 965078 495092 23151 803453 897287 804917 352459 267760 175765 526197 567331 304274 780067 680900 507177 696589 908053 989841 754565 520077 571140 511228 881440 632097 916252 45949 222882 776814 263971 488040 ...

output:

25951405

result:

ok 1 number(s): "25951405"

Test #23:

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

input:

100 100
231284 465722 760752 307803 526215 387299 306496 761811 55816 179581 136307 896555 74704 317347 545252 766864 684584 767922 663238 193439 758981 15837 402116 429347 553691 35467 673958 848174 547965 834924 924919 813176 981276 702023 652467 406224 728592 535996 785654 976984 640777 679078 87...

output:

23960769

result:

ok 1 number(s): "23960769"

Test #24:

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

input:

100 100
178770 417482 24656 145622 201032 584392 68329 563244 783494 670842 418019 480080 547340 703884 466812 279667 840377 761005 58607 542422 489508 740033 513765 962745 979563 47154 206361 822954 702160 583942 746243 940821 855609 678061 995397 586026 762453 301286 290160 545947 634829 208179 57...

output:

24829314

result:

ok 1 number(s): "24829314"

Test #25:

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

input:

100 100
250731 72746 424621 295702 301316 585413 617396 392442 19122 108760 841313 951277 563396 16750 717015 524262 745597 376025 363219 699844 228220 188477 736897 97256 542624 549072 280939 312613 266641 992297 508197 17372 483924 571844 551500 539815 297864 668897 807201 691920 297802 664867 643...

output:

24544328

result:

ok 1 number(s): "24544328"

Test #26:

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

input:

100 100
63644 47811 340808 380345 58891 324901 23400 956111 144792 562603 35147 655517 585193 178735 272677 30353 426908 671043 173280 443020 742351 534732 305982 10167 138090 744805 913435 65710 532078 550107 616303 590270 772844 627363 174242 847476 998977 726469 819940 515825 332025 555015 687694...

output:

24586263

result:

ok 1 number(s): "24586263"

Test #27:

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

input:

59 17
858324 810270 58818 529880 601182 410494 395210 516716 299873 341328 125619 462642 978709 83630 270526 272126 339961 584266 287247 590157 481242 281074 273113 540066 956105 712179 604040 307936 442315 812649 25380 816991 139271 600550 346871 256805 11044 258433 773522 310917 599762 415493 2899...

output:

6956345

result:

ok 1 number(s): "6956345"

Test #28:

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

input:

59 10
858324 810270 58818 529880 601182 410494 395210 516716 299873 341328 125619 462642 978709 83630 270526 272126 339961 584266 287247 590157 481242 281074 273113 540066 956105 712179 604040 307936 442315 812649 25380 816991 139271 600550 346871 256805 11044 258433 773522 310917 599762 415493 2899...

output:

7171566

result:

ok 1 number(s): "7171566"

Test #29:

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

input:

77 41
488276 532524 341820 595682 905297 171752 151040 460058 172516 7662 546747 241688 254968 48190 936971 79996 509629 746138 92879 745120 616102 293358 622664 96300 460440 578952 401608 914444 46413 681086 276836 534689 729962 618657 646723 151611 306761 797763 611670 995629 321777 674769 753669 ...

output:

5919094

result:

ok 1 number(s): "5919094"

Test #30:

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

input:

77 11
488276 532524 341820 595682 905297 171752 151040 460058 172516 7662 546747 241688 254968 48190 936971 79996 509629 746138 92879 745120 616102 293358 622664 96300 460440 578952 401608 914444 46413 681086 276836 534689 729962 618657 646723 151611 306761 797763 611670 995629 321777 674769 753669 ...

output:

6829536

result:

ok 1 number(s): "6829536"

Test #31:

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

input:

80 13
133590 464389 984606 861514 973210 460431 28178 744276 712710 622564 910269 508347 60124 912790 955953 752707 316573 656326 98126 569367 225182 260288 314383 656222 711392 597372 201733 66115 224895 528762 69237 874837 509503 570195 736351 482713 30627 280881 743342 743337 419797 653611 768036...

output:

6767246

result:

ok 1 number(s): "6767246"

Test #32:

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

input:

80 3
133590 464389 984606 861514 973210 460431 28178 744276 712710 622564 910269 508347 60124 912790 955953 752707 316573 656326 98126 569367 225182 260288 314383 656222 711392 597372 201733 66115 224895 528762 69237 874837 509503 570195 736351 482713 30627 280881 743342 743337 419797 653611 768036 ...

output:

18229764

result:

ok 1 number(s): "18229764"

Test #33:

score: 0
Accepted
time: 4ms
memory: 3884kb

input:

98 74
304625 551118 827796 1201 240560 742871 993472 184011 874644 867490 808641 361053 150656 373017 110622 492189 241096 125651 866214 87068 729261 584294 604906 924444 572729 764684 319872 21810 70014 917719 119126 890991 985189 463274 892192 742101 206145 402016 442464 80790 269506 251105 441843...

output:

7369863

result:

ok 1 number(s): "7369863"

Test #34:

score: 0
Accepted
time: 4ms
memory: 3884kb

input:

98 14
304625 551118 827796 1201 240560 742871 993472 184011 874644 867490 808641 361053 150656 373017 110622 492189 241096 125651 866214 87068 729261 584294 604906 924444 572729 764684 319872 21810 70014 917719 119126 890991 985189 463274 892192 742101 206145 402016 442464 80790 269506 251105 441843...

output:

7719445

result:

ok 1 number(s): "7719445"

Test #35:

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

input:

62 60
904835 722165 212847 467592 784507 554310 163356 687061 595242 408720 194196 581559 403292 65719 502653 790477 245224 196847 74628 281271 961023 804462 696123 482181 873143 321225 421013 371541 552822 345676 870498 974009 67842 599697 441602 852349 154008 604958 55762 265602 13679 249959 36351...

output:

7397789

result:

ok 1 number(s): "7397789"

Test #36:

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

input:

62 10
904835 722165 212847 467592 784507 554310 163356 687061 595242 408720 194196 581559 403292 65719 502653 790477 245224 196847 74628 281271 961023 804462 696123 482181 873143 321225 421013 371541 552822 345676 870498 974009 67842 599697 441602 852349 154008 604958 55762 265602 13679 249959 36351...

output:

7701156

result:

ok 1 number(s): "7701156"

Test #37:

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

input:

81 25
537842 318519 104426 46190 628848 211582 187177 779733 573022 361912 507582 501447 356527 533014 914846 898685 690028 483219 256241 338239 774081 2530 899842 304964 821930 625923 132540 947625 135626 893472 474127 189820 211991 94905 236010 357192 306488 939539 653277 395862 817803 677212 8973...

output:

6972349

result:

ok 1 number(s): "6972349"

Test #38:

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

input:

81 5
537842 318519 104426 46190 628848 211582 187177 779733 573022 361912 507582 501447 356527 533014 914846 898685 690028 483219 256241 338239 774081 2530 899842 304964 821930 625923 132540 947625 135626 893472 474127 189820 211991 94905 236010 357192 306488 939539 653277 395862 817803 677212 89730...

output:

10992104

result:

ok 1 number(s): "10992104"

Test #39:

score: 0
Accepted
time: 4ms
memory: 4068kb

input:

98 61
770918 360086 916950 626549 664701 89626 261839 36781 75529 573308 807299 817216 278100 499339 903892 21596 584188 853740 479577 630521 999024 103698 214900 886743 242843 97137 654492 205316 732490 575892 511564 503409 935978 944866 129958 600679 34493 908149 153812 110022 481458 477463 443590...

output:

7596567

result:

ok 1 number(s): "7596567"

Test #40:

score: 0
Accepted
time: 4ms
memory: 4144kb

input:

98 11
770918 360086 916950 626549 664701 89626 261839 36781 75529 573308 807299 817216 278100 499339 903892 21596 584188 853740 479577 630521 999024 103698 214900 886743 242843 97137 654492 205316 732490 575892 511564 503409 935978 944866 129958 600679 34493 908149 153812 110022 481458 477463 443590...

output:

8473363

result:

ok 1 number(s): "8473363"

Test #41:

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

input:

69 34
441390 829063 828892 715528 624720 613765 894448 782921 128795 113137 940229 632451 375417 847851 490393 656334 939128 371356 56572 369076 27765 488421 122668 948203 338612 166375 615039 279528 883363 320509 8975 841105 665924 354219 556633 290645 967985 451082 589918 613132 80571 530148 24558...

output:

6940119

result:

ok 1 number(s): "6940119"

Test #42:

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

input:

69 4
441390 829063 828892 715528 624720 613765 894448 782921 128795 113137 940229 632451 375417 847851 490393 656334 939128 371356 56572 369076 27765 488421 122668 948203 338612 166375 615039 279528 883363 320509 8975 841105 665924 354219 556633 290645 967985 451082 589918 613132 80571 530148 245583...

output:

11665178

result:

ok 1 number(s): "11665178"

Test #43:

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

input:

75 53
636766 291362 731131 161483 274200 22805 370154 181345 887335 770479 689303 972138 383476 225760 829615 238293 978010 209423 586793 349713 452025 688105 801360 522076 54296 669329 798588 528192 129441 298113 538371 766207 105827 785855 927690 380027 808660 814196 77725 695996 101028 767028 184...

output:

6496448

result:

ok 1 number(s): "6496448"

Test #44:

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

input:

75 3
636766 291362 731131 161483 274200 22805 370154 181345 887335 770479 689303 972138 383476 225760 829615 238293 978010 209423 586793 349713 452025 688105 801360 522076 54296 669329 798588 528192 129441 298113 538371 766207 105827 785855 927690 380027 808660 814196 77725 695996 101028 767028 1844...

output:

15124430

result:

ok 1 number(s): "15124430"

Test #45:

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

input:

55 21
147631 424622 60632 616538 956258 534127 736836 606108 644312 1766 780272 911274 283395 139785 407295 741988 774551 509661 643447 683006 961953 20363 940032 673087 816649 335106 513962 584376 971784 4818 807818 635768 945793 384802 252306 902051 435281 989142 24511 79593 507260 321135 507220 7...

output:

5628918

result:

ok 1 number(s): "5628918"

Test #46:

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

input:

55 11
147631 424622 60632 616538 956258 534127 736836 606108 644312 1766 780272 911274 283395 139785 407295 741988 774551 509661 643447 683006 961953 20363 940032 673087 816649 335106 513962 584376 971784 4818 807818 635768 945793 384802 252306 902051 435281 989142 24511 79593 507260 321135 507220 7...

output:

5656741

result:

ok 1 number(s): "5656741"

Test #47:

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

input:

69 24
111038 498207 189133 670909 184968 138763 309043 881629 924821 511019 138143 785491 169031 9397 796459 655994 792178 344240 731512 792696 574322 445365 612124 575023 988499 938434 837941 442173 89676 709560 144417 717066 724119 333550 387976 425439 988665 697019 307069 913487 724391 961564 215...

output:

5463203

result:

ok 1 number(s): "5463203"

Test #48:

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

input:

69 4
111038 498207 189133 670909 184968 138763 309043 881629 924821 511019 138143 785491 169031 9397 796459 655994 792178 344240 731512 792696 574322 445365 612124 575023 988499 938434 837941 442173 89676 709560 144417 717066 724119 333550 387976 425439 988665 697019 307069 913487 724391 961564 2153...

output:

10238095

result:

ok 1 number(s): "10238095"

Test #49:

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

input:

90 81
898906 370147 813191 715419 201964 44630 805516 42672 174815 334840 725839 600524 307415 875784 288719 148357 77579 152192 524215 739492 811654 301271 228041 250978 724812 672992 562143 772826 936874 55633 837089 352132 942132 650280 67552 144096 694910 389420 186768 386077 724260 428960 98660...

output:

6791133

result:

ok 1 number(s): "6791133"

Test #50:

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

input:

90 11
898906 370147 813191 715419 201964 44630 805516 42672 174815 334840 725839 600524 307415 875784 288719 148357 77579 152192 524215 739492 811654 301271 228041 250978 724812 672992 562143 772826 936874 55633 837089 352132 942132 650280 67552 144096 694910 389420 186768 386077 724260 428960 98660...

output:

7439539

result:

ok 1 number(s): "7439539"