답안 #814396

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
814396 2023-08-08T07:15:31 Z LittleCube 분수 공원 (IOI21_parks) C++17
70 / 100
1002 ms 71768 KB
#include "parks.h"
#include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define F first
#define S second
using namespace std;
 
map<pii, int> id;
int n, m, deg[200000], dsu[200000], vis[400001], use[400001];
pii pos[400001];
vector<pair<pii, pii>> edge;
vector<pii> E[400001];
vector<int> ru, rv, bx, by;
 
int find(int k)
{
    return dsu[k] == k ? k : dsu[k] = find(dsu[k]);
}
 
void merge(int x, int y)
{
    x = find(x), y = find(y);
    dsu[x] = y;
}
 
int node(int x, int y)
{
    if (!id[pii(x, y)])
    {
        id[pii(x, y)] = ++m;
        pos[m] = pii(x, y);
    }
    return id[pii(x, y)];
}
 
void dfs(int u, int p)
{
    vis[u] = 1;
    int flag = 1;
    for (auto [v, i] : E[u])
        if(!vis[v])
            dfs(v, u);
    for (auto [v, i] : E[u])
        if(v != p && !use[i] && flag)
        {
            flag--;
            use[i] = 1;
            tie(bx[i], by[i]) = pos[u];
        }
    for (auto [v, i] : E[u])
        if(!use[i] && flag)
        {
            flag--;
            use[i] = 1;
            tie(bx[i], by[i]) = pos[u];
        }
}
 
int construct_roads(vector<int> x, vector<int> y)
{
    n = x.size();
    for (int i = 0; i < n; i++)
        dsu[i] = i;
    for (int i = 0; i < n; i++)
        id[pii(x[i], y[i])] = i + 1;
 
    bx.resize(n - 1), by.resize(n - 1);
    for (int i = 0; i < n; i++)
    {
        if (id.find(pii(x[i], y[i] - 2)) != id.end())
        {
            int j = id[pii(x[i], y[i] - 2)] - 1;
            merge(i, j);
            ru.emplace_back(i);
            rv.emplace_back(j);
        }
        if (id.find(pii(x[i] - 2, y[i])) != id.end())
        {
            int j = id[pii(x[i] - 2, y[i])] - 1;
            edge.emplace_back(make_pair(pii(x[i] - 1, y[i]), pii(i, j)));
        }
    }
    sort(edge.begin(), edge.end(), [&](pair<pii, pii> f, pair<pii, pii> s)
         {
        pii p = f.F, q = s.F;
        if(p.F != q.F)
            return p.F < q.F;
        if(p.F % 4 == 1)
            return p.S < q.S;
        return p.S > q.S; });
    for (auto [_, p] : edge)
    {
        auto [u, v] = p;
        if (find(u) != find(v))
        {
            ru.emplace_back(u);
            rv.emplace_back(v);
            merge(u, v);
        }
    }
    if (ru.size() < n - 1)
        return 0;
    id.clear();
    for (int i = 0; i < n - 1; i++)
    {
        int u = ru[i], v = rv[i];
        if (x[u] == x[v])
        {
            int a = node(x[u] - 1, (y[u] + y[v]) / 2),
                b = node(x[u] + 1, (y[u] + y[v]) / 2);
            E[a].emplace_back(pii(b, i));
            E[b].emplace_back(pii(a, i));
        }
        else
        {
            int a = node((x[u] + x[v]) / 2, y[u] + 1),
                b = node((x[u] + x[v]) / 2, y[u] - 1);
            E[a].emplace_back(pii(b, i));
            E[b].emplace_back(pii(a, i));
        }
    }
    for (int i = 1; i <= m; i++)
        if(!vis[i])
            dfs(i, i);
    for (int i = 0; i < n - 1; i++)
        if(!use[i])
            return 0;
    build(ru, rv, bx, by);
    return 1;
}

Compilation message

parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:103:19: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
  103 |     if (ru.size() < n - 1)
      |         ~~~~~~~~~~^~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 6 ms 9684 KB Output is correct
4 Correct 5 ms 9704 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9704 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 262 ms 38196 KB Output is correct
10 Correct 18 ms 12684 KB Output is correct
11 Correct 101 ms 25064 KB Output is correct
12 Correct 27 ms 14328 KB Output is correct
13 Correct 29 ms 14504 KB Output is correct
14 Correct 6 ms 9812 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 254 ms 38248 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 6 ms 9684 KB Output is correct
4 Correct 5 ms 9704 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9704 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 262 ms 38196 KB Output is correct
10 Correct 18 ms 12684 KB Output is correct
11 Correct 101 ms 25064 KB Output is correct
12 Correct 27 ms 14328 KB Output is correct
13 Correct 29 ms 14504 KB Output is correct
14 Correct 6 ms 9812 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 254 ms 38248 KB Output is correct
17 Correct 5 ms 9684 KB Output is correct
18 Correct 5 ms 9700 KB Output is correct
19 Correct 5 ms 9684 KB Output is correct
20 Correct 5 ms 9704 KB Output is correct
21 Correct 6 ms 9704 KB Output is correct
22 Correct 5 ms 9704 KB Output is correct
23 Correct 801 ms 60292 KB Output is correct
24 Correct 5 ms 9684 KB Output is correct
25 Correct 7 ms 9904 KB Output is correct
26 Correct 7 ms 10068 KB Output is correct
27 Correct 8 ms 10192 KB Output is correct
28 Correct 225 ms 30156 KB Output is correct
29 Correct 360 ms 40652 KB Output is correct
30 Correct 588 ms 50728 KB Output is correct
31 Correct 797 ms 61064 KB Output is correct
32 Correct 4 ms 9684 KB Output is correct
33 Correct 5 ms 9684 KB Output is correct
34 Correct 4 ms 9684 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 5 ms 9684 KB Output is correct
37 Correct 6 ms 9684 KB Output is correct
38 Correct 5 ms 9684 KB Output is correct
39 Correct 5 ms 9712 KB Output is correct
40 Correct 5 ms 9720 KB Output is correct
41 Correct 5 ms 9684 KB Output is correct
42 Correct 5 ms 9684 KB Output is correct
43 Correct 6 ms 9880 KB Output is correct
44 Correct 6 ms 10068 KB Output is correct
45 Correct 251 ms 32564 KB Output is correct
46 Correct 463 ms 42752 KB Output is correct
47 Correct 413 ms 42760 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 6 ms 9684 KB Output is correct
4 Correct 5 ms 9704 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9704 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 262 ms 38196 KB Output is correct
10 Correct 18 ms 12684 KB Output is correct
11 Correct 101 ms 25064 KB Output is correct
12 Correct 27 ms 14328 KB Output is correct
13 Correct 29 ms 14504 KB Output is correct
14 Correct 6 ms 9812 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 254 ms 38248 KB Output is correct
17 Correct 5 ms 9684 KB Output is correct
18 Correct 5 ms 9700 KB Output is correct
19 Correct 5 ms 9684 KB Output is correct
20 Correct 5 ms 9704 KB Output is correct
21 Correct 6 ms 9704 KB Output is correct
22 Correct 5 ms 9704 KB Output is correct
23 Correct 801 ms 60292 KB Output is correct
24 Correct 5 ms 9684 KB Output is correct
25 Correct 7 ms 9904 KB Output is correct
26 Correct 7 ms 10068 KB Output is correct
27 Correct 8 ms 10192 KB Output is correct
28 Correct 225 ms 30156 KB Output is correct
29 Correct 360 ms 40652 KB Output is correct
30 Correct 588 ms 50728 KB Output is correct
31 Correct 797 ms 61064 KB Output is correct
32 Correct 4 ms 9684 KB Output is correct
33 Correct 5 ms 9684 KB Output is correct
34 Correct 4 ms 9684 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 5 ms 9684 KB Output is correct
37 Correct 6 ms 9684 KB Output is correct
38 Correct 5 ms 9684 KB Output is correct
39 Correct 5 ms 9712 KB Output is correct
40 Correct 5 ms 9720 KB Output is correct
41 Correct 5 ms 9684 KB Output is correct
42 Correct 5 ms 9684 KB Output is correct
43 Correct 6 ms 9880 KB Output is correct
44 Correct 6 ms 10068 KB Output is correct
45 Correct 251 ms 32564 KB Output is correct
46 Correct 463 ms 42752 KB Output is correct
47 Correct 413 ms 42760 KB Output is correct
48 Correct 4 ms 9684 KB Output is correct
49 Correct 6 ms 9684 KB Output is correct
50 Correct 4 ms 9704 KB Output is correct
51 Correct 4 ms 9704 KB Output is correct
52 Correct 4 ms 9700 KB Output is correct
53 Correct 4 ms 9684 KB Output is correct
54 Correct 4 ms 9684 KB Output is correct
55 Correct 849 ms 57756 KB Output is correct
56 Correct 5 ms 9684 KB Output is correct
57 Correct 8 ms 10068 KB Output is correct
58 Correct 16 ms 11092 KB Output is correct
59 Correct 18 ms 11012 KB Output is correct
60 Correct 296 ms 33904 KB Output is correct
61 Correct 569 ms 41644 KB Output is correct
62 Correct 742 ms 49412 KB Output is correct
63 Correct 1002 ms 57268 KB Output is correct
64 Correct 5 ms 9700 KB Output is correct
65 Correct 5 ms 9684 KB Output is correct
66 Correct 5 ms 9684 KB Output is correct
67 Correct 714 ms 66540 KB Output is correct
68 Correct 807 ms 66564 KB Output is correct
69 Correct 897 ms 66204 KB Output is correct
70 Correct 8 ms 10068 KB Output is correct
71 Correct 11 ms 10580 KB Output is correct
72 Correct 291 ms 33020 KB Output is correct
73 Correct 587 ms 42688 KB Output is correct
74 Correct 796 ms 56252 KB Output is correct
75 Correct 820 ms 62024 KB Output is correct
76 Correct 693 ms 66604 KB Output is correct
77 Correct 9 ms 10292 KB Output is correct
78 Correct 14 ms 10740 KB Output is correct
79 Correct 290 ms 34164 KB Output is correct
80 Correct 494 ms 44300 KB Output is correct
81 Correct 749 ms 58712 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 6 ms 9684 KB Output is correct
4 Correct 5 ms 9704 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9704 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 262 ms 38196 KB Output is correct
10 Correct 18 ms 12684 KB Output is correct
11 Correct 101 ms 25064 KB Output is correct
12 Correct 27 ms 14328 KB Output is correct
13 Correct 29 ms 14504 KB Output is correct
14 Correct 6 ms 9812 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 254 ms 38248 KB Output is correct
17 Correct 4 ms 9684 KB Output is correct
18 Correct 4 ms 9684 KB Output is correct
19 Correct 4 ms 9684 KB Output is correct
20 Correct 672 ms 65300 KB Output is correct
21 Correct 703 ms 56524 KB Output is correct
22 Correct 643 ms 55636 KB Output is correct
23 Correct 413 ms 62324 KB Output is correct
24 Correct 235 ms 27760 KB Output is correct
25 Correct 359 ms 33652 KB Output is correct
26 Correct 267 ms 29448 KB Output is correct
27 Correct 734 ms 66016 KB Output is correct
28 Correct 766 ms 65980 KB Output is correct
29 Correct 518 ms 71768 KB Output is correct
30 Correct 579 ms 71748 KB Output is correct
31 Correct 5 ms 9684 KB Output is correct
32 Correct 30 ms 13012 KB Output is correct
33 Correct 77 ms 18680 KB Output is correct
34 Correct 642 ms 62768 KB Output is correct
35 Correct 12 ms 10884 KB Output is correct
36 Correct 52 ms 15112 KB Output is correct
37 Correct 112 ms 20564 KB Output is correct
38 Correct 180 ms 27476 KB Output is correct
39 Correct 282 ms 34064 KB Output is correct
40 Correct 414 ms 41152 KB Output is correct
41 Correct 538 ms 47368 KB Output is correct
42 Correct 679 ms 54296 KB Output is correct
43 Correct 5 ms 9684 KB Output is correct
44 Correct 6 ms 9604 KB Output is correct
45 Correct 5 ms 9684 KB Output is correct
46 Correct 4 ms 9684 KB Output is correct
47 Correct 4 ms 9616 KB Output is correct
48 Correct 4 ms 9684 KB Output is correct
49 Correct 4 ms 9684 KB Output is correct
50 Correct 4 ms 9684 KB Output is correct
51 Correct 6 ms 9664 KB Output is correct
52 Correct 6 ms 9684 KB Output is correct
53 Correct 5 ms 9612 KB Output is correct
54 Correct 6 ms 9812 KB Output is correct
55 Correct 7 ms 9940 KB Output is correct
56 Correct 244 ms 31716 KB Output is correct
57 Correct 471 ms 41752 KB Output is correct
58 Correct 467 ms 41784 KB Output is correct
59 Correct 5 ms 9684 KB Output is correct
60 Correct 6 ms 9684 KB Output is correct
61 Correct 4 ms 9684 KB Output is correct
62 Correct 789 ms 66008 KB Output is correct
63 Correct 701 ms 66016 KB Output is correct
64 Correct 714 ms 65812 KB Output is correct
65 Correct 7 ms 10068 KB Output is correct
66 Correct 11 ms 10604 KB Output is correct
67 Correct 271 ms 32688 KB Output is correct
68 Correct 454 ms 42160 KB Output is correct
69 Correct 638 ms 55780 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 6 ms 9684 KB Output is correct
4 Correct 5 ms 9704 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9704 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 262 ms 38196 KB Output is correct
10 Correct 18 ms 12684 KB Output is correct
11 Correct 101 ms 25064 KB Output is correct
12 Correct 27 ms 14328 KB Output is correct
13 Correct 29 ms 14504 KB Output is correct
14 Correct 6 ms 9812 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 254 ms 38248 KB Output is correct
17 Correct 576 ms 70964 KB Output is correct
18 Correct 560 ms 71132 KB Output is correct
19 Correct 560 ms 61788 KB Output is correct
20 Correct 667 ms 55744 KB Output is correct
21 Correct 529 ms 59208 KB Output is correct
22 Correct 5 ms 9684 KB Output is correct
23 Correct 70 ms 17340 KB Output is correct
24 Correct 22 ms 11952 KB Output is correct
25 Correct 77 ms 17808 KB Output is correct
26 Correct 143 ms 23672 KB Output is correct
27 Correct 259 ms 33140 KB Output is correct
28 Correct 344 ms 39012 KB Output is correct
29 Correct 461 ms 44888 KB Output is correct
30 Correct 584 ms 51100 KB Output is correct
31 Correct 676 ms 56624 KB Output is correct
32 Correct 684 ms 61588 KB Output is correct
33 Correct 614 ms 66060 KB Output is correct
34 Correct 8 ms 10196 KB Output is correct
35 Correct 11 ms 10648 KB Output is correct
36 Correct 262 ms 33700 KB Output is correct
37 Correct 447 ms 44120 KB Output is correct
38 Correct 712 ms 58268 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 6 ms 9684 KB Output is correct
4 Correct 5 ms 9704 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9704 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 262 ms 38196 KB Output is correct
10 Correct 18 ms 12684 KB Output is correct
11 Correct 101 ms 25064 KB Output is correct
12 Correct 27 ms 14328 KB Output is correct
13 Correct 29 ms 14504 KB Output is correct
14 Correct 6 ms 9812 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 254 ms 38248 KB Output is correct
17 Correct 5 ms 9684 KB Output is correct
18 Correct 5 ms 9700 KB Output is correct
19 Correct 5 ms 9684 KB Output is correct
20 Correct 5 ms 9704 KB Output is correct
21 Correct 6 ms 9704 KB Output is correct
22 Correct 5 ms 9704 KB Output is correct
23 Correct 801 ms 60292 KB Output is correct
24 Correct 5 ms 9684 KB Output is correct
25 Correct 7 ms 9904 KB Output is correct
26 Correct 7 ms 10068 KB Output is correct
27 Correct 8 ms 10192 KB Output is correct
28 Correct 225 ms 30156 KB Output is correct
29 Correct 360 ms 40652 KB Output is correct
30 Correct 588 ms 50728 KB Output is correct
31 Correct 797 ms 61064 KB Output is correct
32 Correct 4 ms 9684 KB Output is correct
33 Correct 5 ms 9684 KB Output is correct
34 Correct 4 ms 9684 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 5 ms 9684 KB Output is correct
37 Correct 6 ms 9684 KB Output is correct
38 Correct 5 ms 9684 KB Output is correct
39 Correct 5 ms 9712 KB Output is correct
40 Correct 5 ms 9720 KB Output is correct
41 Correct 5 ms 9684 KB Output is correct
42 Correct 5 ms 9684 KB Output is correct
43 Correct 6 ms 9880 KB Output is correct
44 Correct 6 ms 10068 KB Output is correct
45 Correct 251 ms 32564 KB Output is correct
46 Correct 463 ms 42752 KB Output is correct
47 Correct 413 ms 42760 KB Output is correct
48 Correct 4 ms 9684 KB Output is correct
49 Correct 6 ms 9684 KB Output is correct
50 Correct 4 ms 9704 KB Output is correct
51 Correct 4 ms 9704 KB Output is correct
52 Correct 4 ms 9700 KB Output is correct
53 Correct 4 ms 9684 KB Output is correct
54 Correct 4 ms 9684 KB Output is correct
55 Correct 849 ms 57756 KB Output is correct
56 Correct 5 ms 9684 KB Output is correct
57 Correct 8 ms 10068 KB Output is correct
58 Correct 16 ms 11092 KB Output is correct
59 Correct 18 ms 11012 KB Output is correct
60 Correct 296 ms 33904 KB Output is correct
61 Correct 569 ms 41644 KB Output is correct
62 Correct 742 ms 49412 KB Output is correct
63 Correct 1002 ms 57268 KB Output is correct
64 Correct 5 ms 9700 KB Output is correct
65 Correct 5 ms 9684 KB Output is correct
66 Correct 5 ms 9684 KB Output is correct
67 Correct 714 ms 66540 KB Output is correct
68 Correct 807 ms 66564 KB Output is correct
69 Correct 897 ms 66204 KB Output is correct
70 Correct 8 ms 10068 KB Output is correct
71 Correct 11 ms 10580 KB Output is correct
72 Correct 291 ms 33020 KB Output is correct
73 Correct 587 ms 42688 KB Output is correct
74 Correct 796 ms 56252 KB Output is correct
75 Correct 820 ms 62024 KB Output is correct
76 Correct 693 ms 66604 KB Output is correct
77 Correct 9 ms 10292 KB Output is correct
78 Correct 14 ms 10740 KB Output is correct
79 Correct 290 ms 34164 KB Output is correct
80 Correct 494 ms 44300 KB Output is correct
81 Correct 749 ms 58712 KB Output is correct
82 Correct 4 ms 9684 KB Output is correct
83 Correct 4 ms 9684 KB Output is correct
84 Correct 4 ms 9684 KB Output is correct
85 Correct 672 ms 65300 KB Output is correct
86 Correct 703 ms 56524 KB Output is correct
87 Correct 643 ms 55636 KB Output is correct
88 Correct 413 ms 62324 KB Output is correct
89 Correct 235 ms 27760 KB Output is correct
90 Correct 359 ms 33652 KB Output is correct
91 Correct 267 ms 29448 KB Output is correct
92 Correct 734 ms 66016 KB Output is correct
93 Correct 766 ms 65980 KB Output is correct
94 Correct 518 ms 71768 KB Output is correct
95 Correct 579 ms 71748 KB Output is correct
96 Correct 5 ms 9684 KB Output is correct
97 Correct 30 ms 13012 KB Output is correct
98 Correct 77 ms 18680 KB Output is correct
99 Correct 642 ms 62768 KB Output is correct
100 Correct 12 ms 10884 KB Output is correct
101 Correct 52 ms 15112 KB Output is correct
102 Correct 112 ms 20564 KB Output is correct
103 Correct 180 ms 27476 KB Output is correct
104 Correct 282 ms 34064 KB Output is correct
105 Correct 414 ms 41152 KB Output is correct
106 Correct 538 ms 47368 KB Output is correct
107 Correct 679 ms 54296 KB Output is correct
108 Correct 5 ms 9684 KB Output is correct
109 Correct 6 ms 9604 KB Output is correct
110 Correct 5 ms 9684 KB Output is correct
111 Correct 4 ms 9684 KB Output is correct
112 Correct 4 ms 9616 KB Output is correct
113 Correct 4 ms 9684 KB Output is correct
114 Correct 4 ms 9684 KB Output is correct
115 Correct 4 ms 9684 KB Output is correct
116 Correct 6 ms 9664 KB Output is correct
117 Correct 6 ms 9684 KB Output is correct
118 Correct 5 ms 9612 KB Output is correct
119 Correct 6 ms 9812 KB Output is correct
120 Correct 7 ms 9940 KB Output is correct
121 Correct 244 ms 31716 KB Output is correct
122 Correct 471 ms 41752 KB Output is correct
123 Correct 467 ms 41784 KB Output is correct
124 Correct 5 ms 9684 KB Output is correct
125 Correct 6 ms 9684 KB Output is correct
126 Correct 4 ms 9684 KB Output is correct
127 Correct 789 ms 66008 KB Output is correct
128 Correct 701 ms 66016 KB Output is correct
129 Correct 714 ms 65812 KB Output is correct
130 Correct 7 ms 10068 KB Output is correct
131 Correct 11 ms 10604 KB Output is correct
132 Correct 271 ms 32688 KB Output is correct
133 Correct 454 ms 42160 KB Output is correct
134 Correct 638 ms 55780 KB Output is correct
135 Correct 576 ms 70964 KB Output is correct
136 Correct 560 ms 71132 KB Output is correct
137 Correct 560 ms 61788 KB Output is correct
138 Correct 667 ms 55744 KB Output is correct
139 Correct 529 ms 59208 KB Output is correct
140 Correct 5 ms 9684 KB Output is correct
141 Correct 70 ms 17340 KB Output is correct
142 Correct 22 ms 11952 KB Output is correct
143 Correct 77 ms 17808 KB Output is correct
144 Correct 143 ms 23672 KB Output is correct
145 Correct 259 ms 33140 KB Output is correct
146 Correct 344 ms 39012 KB Output is correct
147 Correct 461 ms 44888 KB Output is correct
148 Correct 584 ms 51100 KB Output is correct
149 Correct 676 ms 56624 KB Output is correct
150 Correct 684 ms 61588 KB Output is correct
151 Correct 614 ms 66060 KB Output is correct
152 Correct 8 ms 10196 KB Output is correct
153 Correct 11 ms 10648 KB Output is correct
154 Correct 262 ms 33700 KB Output is correct
155 Correct 447 ms 44120 KB Output is correct
156 Correct 712 ms 58268 KB Output is correct
157 Correct 5 ms 9684 KB Output is correct
158 Correct 5 ms 9708 KB Output is correct
159 Correct 6 ms 9684 KB Output is correct
160 Correct 5 ms 9700 KB Output is correct
161 Correct 771 ms 51576 KB Output is correct
162 Correct 555 ms 66076 KB Output is correct
163 Correct 572 ms 54756 KB Output is correct
164 Correct 560 ms 55024 KB Output is correct
165 Correct 690 ms 53356 KB Output is correct
166 Correct 731 ms 52700 KB Output is correct
167 Incorrect 96 ms 18236 KB Solution announced impossible, but it is possible.
168 Halted 0 ms 0 KB -