답안 #1022426

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1022426 2024-07-13T13:28:44 Z mdn2002 분수 공원 (IOI21_parks) C++17
100 / 100
1417 ms 91756 KB
/*
Mayoeba Yabureru
*/
#include "parks.h"
#include<bits/stdc++.h>
using namespace std;
static vector<int> _u, _v, _a, _b;

int construct_roads(vector<int> x, vector<int> y) {
    int n = x.size();
    vector<vector<int>> gr(n + 1);
    vector<int> dsu(n + 1);
    map<pair<int, int>, int> mp;
    map<pair<int, int>, pair<int, int>> mpp;
    vector<pair<int, int>> vv;
    x.insert(x.begin(), 0);
    y.insert(y.begin(), 0);
    for (int i = 1; i <= n; i ++) {
        mp[{x[i], y[i]}] = i;
        vv.push_back({x[i], y[i]});
        dsu[i] = i;
    }
    vector<int> u, v, a, b;
    map<pair<int, int>, int> taken;

    function<int(int)> fp = [&](int x) {
        if (dsu[x] == x) return x;
        return dsu[x] = fp(dsu[x]);
    };

    function cmp = [&] (pair<int, int> a, pair<int, int> b) {
        if (a.first + a.second < b.first + b.second) return 1;
        return 0;
    };
    sort(vv.begin(), vv.end(), cmp);
    for (int i = 0; i < n; i ++) {
        auto xx = make_pair(vv[i].first, vv[i].second - 2);
        int fx = fp(mp[vv[i]]), fy = fp(mp[xx]);
        if (mp[xx] && fx != fy) {
            int ad = (vv[i].first + vv[i].second) % 4;
            if (taken[{vv[i].first - 1 + ad, vv[i].second - 1}] == 0) {
                mpp[{mp[vv[i]], mp[xx]}] = {vv[i].first - 1 + ad, vv[i].second - 1};
                taken[{vv[i].first - 1 + ad, vv[i].second - 1}] = 1;
                u.push_back(mp[vv[i]]);
                v.push_back(mp[xx]);
                gr[mp[vv[i]]].push_back(mp[xx]);
                gr[mp[xx]].push_back(mp[vv[i]]);
                dsu[fx] = fy;
            }
        }
        xx = make_pair(vv[i].first - 2, vv[i].second);
        fx = fp(mp[vv[i]]), fy = fp(mp[xx]);
        if (mp[xx] && fx != fy) {
            int ad = (vv[i].first + vv[i].second) % 4;
            if (taken[{vv[i].first - 1, vv[i].second + 1 - ad}] == 0) {
                mpp[{mp[vv[i]], mp[xx]}] = {vv[i].first - 1, vv[i].second + 1 - ad};
                taken[{vv[i].first - 1, vv[i].second + 1 - ad}] = 1;
                u.push_back(mp[vv[i]]);
                v.push_back(mp[xx]);
                gr[mp[vv[i]]].push_back(mp[xx]);
                gr[mp[xx]].push_back(mp[vv[i]]);
                dsu[fx] = fy;
            }
        }
    }

    int num = 0, st = 1;
    vector<int> vis(n + 1);

    function<void(int)> go = [&] (int v) {
        num ++;
        vis[v] = 1;
        for (auto u : gr[v]) {
            if (vis[u] == 0) go(u);
        }
    };
    go(st);
    for (int i = 0; i < u.size(); i ++) {
        a.push_back(mpp[{u[i], v[i]}].first);
        b.push_back(mpp[{u[i], v[i]}].second);
        u[i] --;
        v[i] --;
    }
    if (num == n) {
        build(u, v, a, b);
        return 1;
    }
    return 0;
}

Compilation message

parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:78:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   78 |     for (int i = 0; i < u.size(); i ++) {
      |                     ~~^~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 436 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 355 ms 45628 KB Output is correct
10 Correct 20 ms 4992 KB Output is correct
11 Correct 136 ms 24856 KB Output is correct
12 Correct 37 ms 7208 KB Output is correct
13 Correct 98 ms 18412 KB Output is correct
14 Correct 2 ms 604 KB Output is correct
15 Correct 4 ms 1116 KB Output is correct
16 Correct 337 ms 43116 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 436 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 355 ms 45628 KB Output is correct
10 Correct 20 ms 4992 KB Output is correct
11 Correct 136 ms 24856 KB Output is correct
12 Correct 37 ms 7208 KB Output is correct
13 Correct 98 ms 18412 KB Output is correct
14 Correct 2 ms 604 KB Output is correct
15 Correct 4 ms 1116 KB Output is correct
16 Correct 337 ms 43116 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 436 KB Output is correct
22 Correct 0 ms 436 KB Output is correct
23 Correct 862 ms 78460 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 2 ms 860 KB Output is correct
26 Correct 6 ms 1372 KB Output is correct
27 Correct 10 ms 1560 KB Output is correct
28 Correct 281 ms 31756 KB Output is correct
29 Correct 451 ms 47008 KB Output is correct
30 Correct 648 ms 62820 KB Output is correct
31 Correct 841 ms 78128 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 344 KB Output is correct
36 Correct 0 ms 344 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 436 KB Output is correct
43 Correct 4 ms 1116 KB Output is correct
44 Correct 6 ms 1372 KB Output is correct
45 Correct 363 ms 42892 KB Output is correct
46 Correct 568 ms 61916 KB Output is correct
47 Correct 579 ms 61660 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 436 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 355 ms 45628 KB Output is correct
10 Correct 20 ms 4992 KB Output is correct
11 Correct 136 ms 24856 KB Output is correct
12 Correct 37 ms 7208 KB Output is correct
13 Correct 98 ms 18412 KB Output is correct
14 Correct 2 ms 604 KB Output is correct
15 Correct 4 ms 1116 KB Output is correct
16 Correct 337 ms 43116 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 436 KB Output is correct
22 Correct 0 ms 436 KB Output is correct
23 Correct 862 ms 78460 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 2 ms 860 KB Output is correct
26 Correct 6 ms 1372 KB Output is correct
27 Correct 10 ms 1560 KB Output is correct
28 Correct 281 ms 31756 KB Output is correct
29 Correct 451 ms 47008 KB Output is correct
30 Correct 648 ms 62820 KB Output is correct
31 Correct 841 ms 78128 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 344 KB Output is correct
36 Correct 0 ms 344 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 436 KB Output is correct
43 Correct 4 ms 1116 KB Output is correct
44 Correct 6 ms 1372 KB Output is correct
45 Correct 363 ms 42892 KB Output is correct
46 Correct 568 ms 61916 KB Output is correct
47 Correct 579 ms 61660 KB Output is correct
48 Correct 0 ms 344 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 0 ms 348 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 841 ms 73760 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 4 ms 1116 KB Output is correct
58 Correct 14 ms 2580 KB Output is correct
59 Correct 24 ms 3664 KB Output is correct
60 Correct 353 ms 37692 KB Output is correct
61 Correct 501 ms 50988 KB Output is correct
62 Correct 651 ms 60732 KB Output is correct
63 Correct 842 ms 73868 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 941 ms 88352 KB Output is correct
68 Correct 926 ms 88356 KB Output is correct
69 Correct 897 ms 89216 KB Output is correct
70 Correct 9 ms 1884 KB Output is correct
71 Correct 18 ms 3164 KB Output is correct
72 Correct 368 ms 40764 KB Output is correct
73 Correct 621 ms 61980 KB Output is correct
74 Correct 896 ms 80784 KB Output is correct
75 Correct 907 ms 79264 KB Output is correct
76 Correct 903 ms 89468 KB Output is correct
77 Correct 12 ms 2136 KB Output is correct
78 Correct 20 ms 3536 KB Output is correct
79 Correct 346 ms 40508 KB Output is correct
80 Correct 648 ms 60408 KB Output is correct
81 Correct 898 ms 80852 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 436 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 355 ms 45628 KB Output is correct
10 Correct 20 ms 4992 KB Output is correct
11 Correct 136 ms 24856 KB Output is correct
12 Correct 37 ms 7208 KB Output is correct
13 Correct 98 ms 18412 KB Output is correct
14 Correct 2 ms 604 KB Output is correct
15 Correct 4 ms 1116 KB Output is correct
16 Correct 337 ms 43116 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 932 ms 86412 KB Output is correct
21 Correct 940 ms 89696 KB Output is correct
22 Correct 1000 ms 82040 KB Output is correct
23 Correct 728 ms 74008 KB Output is correct
24 Correct 448 ms 50468 KB Output is correct
25 Correct 1181 ms 73848 KB Output is correct
26 Correct 1180 ms 73748 KB Output is correct
27 Correct 1259 ms 79220 KB Output is correct
28 Correct 1300 ms 79344 KB Output is correct
29 Correct 1417 ms 79236 KB Output is correct
30 Correct 1370 ms 79196 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 46 ms 6064 KB Output is correct
33 Correct 141 ms 26056 KB Output is correct
34 Correct 861 ms 90404 KB Output is correct
35 Correct 29 ms 3972 KB Output is correct
36 Correct 174 ms 17724 KB Output is correct
37 Correct 454 ms 35140 KB Output is correct
38 Correct 381 ms 30504 KB Output is correct
39 Correct 591 ms 41744 KB Output is correct
40 Correct 794 ms 52896 KB Output is correct
41 Correct 991 ms 63972 KB Output is correct
42 Correct 1223 ms 75820 KB Output is correct
43 Correct 1 ms 600 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 0 ms 348 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 0 ms 348 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 5 ms 1116 KB Output is correct
55 Correct 8 ms 1328 KB Output is correct
56 Correct 362 ms 42816 KB Output is correct
57 Correct 585 ms 61920 KB Output is correct
58 Correct 576 ms 61664 KB Output is correct
59 Correct 0 ms 344 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 914 ms 87372 KB Output is correct
63 Correct 900 ms 88420 KB Output is correct
64 Correct 895 ms 89400 KB Output is correct
65 Correct 9 ms 1880 KB Output is correct
66 Correct 18 ms 3164 KB Output is correct
67 Correct 371 ms 40572 KB Output is correct
68 Correct 602 ms 61884 KB Output is correct
69 Correct 889 ms 80944 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 436 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 355 ms 45628 KB Output is correct
10 Correct 20 ms 4992 KB Output is correct
11 Correct 136 ms 24856 KB Output is correct
12 Correct 37 ms 7208 KB Output is correct
13 Correct 98 ms 18412 KB Output is correct
14 Correct 2 ms 604 KB Output is correct
15 Correct 4 ms 1116 KB Output is correct
16 Correct 337 ms 43116 KB Output is correct
17 Correct 982 ms 91756 KB Output is correct
18 Correct 947 ms 87852 KB Output is correct
19 Correct 966 ms 86476 KB Output is correct
20 Correct 1200 ms 69460 KB Output is correct
21 Correct 1060 ms 67368 KB Output is correct
22 Correct 0 ms 344 KB Output is correct
23 Correct 107 ms 12256 KB Output is correct
24 Correct 60 ms 7116 KB Output is correct
25 Correct 262 ms 24356 KB Output is correct
26 Correct 493 ms 40604 KB Output is correct
27 Correct 488 ms 37184 KB Output is correct
28 Correct 668 ms 46196 KB Output is correct
29 Correct 852 ms 55224 KB Output is correct
30 Correct 1044 ms 64500 KB Output is correct
31 Correct 1255 ms 73772 KB Output is correct
32 Correct 876 ms 79404 KB Output is correct
33 Correct 950 ms 89844 KB Output is correct
34 Correct 11 ms 2136 KB Output is correct
35 Correct 22 ms 3672 KB Output is correct
36 Correct 379 ms 40472 KB Output is correct
37 Correct 646 ms 60344 KB Output is correct
38 Correct 911 ms 80924 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 436 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 355 ms 45628 KB Output is correct
10 Correct 20 ms 4992 KB Output is correct
11 Correct 136 ms 24856 KB Output is correct
12 Correct 37 ms 7208 KB Output is correct
13 Correct 98 ms 18412 KB Output is correct
14 Correct 2 ms 604 KB Output is correct
15 Correct 4 ms 1116 KB Output is correct
16 Correct 337 ms 43116 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 436 KB Output is correct
22 Correct 0 ms 436 KB Output is correct
23 Correct 862 ms 78460 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 2 ms 860 KB Output is correct
26 Correct 6 ms 1372 KB Output is correct
27 Correct 10 ms 1560 KB Output is correct
28 Correct 281 ms 31756 KB Output is correct
29 Correct 451 ms 47008 KB Output is correct
30 Correct 648 ms 62820 KB Output is correct
31 Correct 841 ms 78128 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 344 KB Output is correct
36 Correct 0 ms 344 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 436 KB Output is correct
43 Correct 4 ms 1116 KB Output is correct
44 Correct 6 ms 1372 KB Output is correct
45 Correct 363 ms 42892 KB Output is correct
46 Correct 568 ms 61916 KB Output is correct
47 Correct 579 ms 61660 KB Output is correct
48 Correct 0 ms 344 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 0 ms 348 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 841 ms 73760 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 4 ms 1116 KB Output is correct
58 Correct 14 ms 2580 KB Output is correct
59 Correct 24 ms 3664 KB Output is correct
60 Correct 353 ms 37692 KB Output is correct
61 Correct 501 ms 50988 KB Output is correct
62 Correct 651 ms 60732 KB Output is correct
63 Correct 842 ms 73868 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 941 ms 88352 KB Output is correct
68 Correct 926 ms 88356 KB Output is correct
69 Correct 897 ms 89216 KB Output is correct
70 Correct 9 ms 1884 KB Output is correct
71 Correct 18 ms 3164 KB Output is correct
72 Correct 368 ms 40764 KB Output is correct
73 Correct 621 ms 61980 KB Output is correct
74 Correct 896 ms 80784 KB Output is correct
75 Correct 907 ms 79264 KB Output is correct
76 Correct 903 ms 89468 KB Output is correct
77 Correct 12 ms 2136 KB Output is correct
78 Correct 20 ms 3536 KB Output is correct
79 Correct 346 ms 40508 KB Output is correct
80 Correct 648 ms 60408 KB Output is correct
81 Correct 898 ms 80852 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 932 ms 86412 KB Output is correct
86 Correct 940 ms 89696 KB Output is correct
87 Correct 1000 ms 82040 KB Output is correct
88 Correct 728 ms 74008 KB Output is correct
89 Correct 448 ms 50468 KB Output is correct
90 Correct 1181 ms 73848 KB Output is correct
91 Correct 1180 ms 73748 KB Output is correct
92 Correct 1259 ms 79220 KB Output is correct
93 Correct 1300 ms 79344 KB Output is correct
94 Correct 1417 ms 79236 KB Output is correct
95 Correct 1370 ms 79196 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 46 ms 6064 KB Output is correct
98 Correct 141 ms 26056 KB Output is correct
99 Correct 861 ms 90404 KB Output is correct
100 Correct 29 ms 3972 KB Output is correct
101 Correct 174 ms 17724 KB Output is correct
102 Correct 454 ms 35140 KB Output is correct
103 Correct 381 ms 30504 KB Output is correct
104 Correct 591 ms 41744 KB Output is correct
105 Correct 794 ms 52896 KB Output is correct
106 Correct 991 ms 63972 KB Output is correct
107 Correct 1223 ms 75820 KB Output is correct
108 Correct 1 ms 600 KB Output is correct
109 Correct 0 ms 348 KB Output is correct
110 Correct 0 ms 348 KB Output is correct
111 Correct 0 ms 348 KB Output is correct
112 Correct 0 ms 348 KB Output is correct
113 Correct 0 ms 348 KB Output is correct
114 Correct 0 ms 348 KB Output is correct
115 Correct 0 ms 348 KB Output is correct
116 Correct 0 ms 348 KB Output is correct
117 Correct 0 ms 348 KB Output is correct
118 Correct 0 ms 348 KB Output is correct
119 Correct 5 ms 1116 KB Output is correct
120 Correct 8 ms 1328 KB Output is correct
121 Correct 362 ms 42816 KB Output is correct
122 Correct 585 ms 61920 KB Output is correct
123 Correct 576 ms 61664 KB Output is correct
124 Correct 0 ms 344 KB Output is correct
125 Correct 0 ms 348 KB Output is correct
126 Correct 0 ms 348 KB Output is correct
127 Correct 914 ms 87372 KB Output is correct
128 Correct 900 ms 88420 KB Output is correct
129 Correct 895 ms 89400 KB Output is correct
130 Correct 9 ms 1880 KB Output is correct
131 Correct 18 ms 3164 KB Output is correct
132 Correct 371 ms 40572 KB Output is correct
133 Correct 602 ms 61884 KB Output is correct
134 Correct 889 ms 80944 KB Output is correct
135 Correct 982 ms 91756 KB Output is correct
136 Correct 947 ms 87852 KB Output is correct
137 Correct 966 ms 86476 KB Output is correct
138 Correct 1200 ms 69460 KB Output is correct
139 Correct 1060 ms 67368 KB Output is correct
140 Correct 0 ms 344 KB Output is correct
141 Correct 107 ms 12256 KB Output is correct
142 Correct 60 ms 7116 KB Output is correct
143 Correct 262 ms 24356 KB Output is correct
144 Correct 493 ms 40604 KB Output is correct
145 Correct 488 ms 37184 KB Output is correct
146 Correct 668 ms 46196 KB Output is correct
147 Correct 852 ms 55224 KB Output is correct
148 Correct 1044 ms 64500 KB Output is correct
149 Correct 1255 ms 73772 KB Output is correct
150 Correct 876 ms 79404 KB Output is correct
151 Correct 950 ms 89844 KB Output is correct
152 Correct 11 ms 2136 KB Output is correct
153 Correct 22 ms 3672 KB Output is correct
154 Correct 379 ms 40472 KB Output is correct
155 Correct 646 ms 60344 KB Output is correct
156 Correct 911 ms 80924 KB Output is correct
157 Correct 0 ms 348 KB Output is correct
158 Correct 1 ms 348 KB Output is correct
159 Correct 0 ms 348 KB Output is correct
160 Correct 0 ms 348 KB Output is correct
161 Correct 1115 ms 67120 KB Output is correct
162 Correct 840 ms 88556 KB Output is correct
163 Correct 815 ms 81168 KB Output is correct
164 Correct 813 ms 80684 KB Output is correct
165 Correct 866 ms 73004 KB Output is correct
166 Correct 827 ms 68816 KB Output is correct
167 Correct 178 ms 16604 KB Output is correct
168 Correct 95 ms 9720 KB Output is correct
169 Correct 287 ms 25300 KB Output is correct
170 Correct 615 ms 47508 KB Output is correct
171 Correct 858 ms 63020 KB Output is correct
172 Correct 485 ms 34336 KB Output is correct
173 Correct 602 ms 40864 KB Output is correct
174 Correct 748 ms 47620 KB Output is correct
175 Correct 885 ms 53860 KB Output is correct
176 Correct 1022 ms 61248 KB Output is correct
177 Correct 1153 ms 68024 KB Output is correct