답안 #1057554

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1057554 2024-08-13T21:32:33 Z n1k 참나무 (IOI23_beechtree) C++17
100 / 100
417 ms 204884 KB
#include "beechtree.h"
#include <bits/stdc++.h>

using namespace std;

std::vector<int> beechtree(int N, int M, std::vector<int> P, std::vector<int> C){
    vector<multiset<pair<int, int>>> c(N);
    vector<map<int, int>> childs(N);
    vector<vector<int>> g(N);
    vector<int> ans(N, 1), sz(N, 1);
    for(int i=1; i<N; i++){
        g[P[i]].push_back(i);
    }
    auto check = [&](auto a, auto b){
        for(auto [k, v]:childs[b]){
            if(childs[a][k] < v){
                return false;
            }
        }
        return true;
    };
    auto add = [&](auto p, auto u){
        bool ok = 1;
        auto it = c[u].insert(p);
        if(next(it)!=c[u].end()){
            ok&=check(next(it)->second, it->second);
        }
        if(it!=c[u].begin()){
            ok&=check(it->second, prev(it)->second);
        } 
        return ok;
    };
    function<void(int)> dfs = [&](int u){
        for(auto v:g[u]){
            dfs(v);
            sz[u]+=sz[v];
            ans[u]&=ans[v];
            ans[u]&= !childs[u].count(C[v]);
            childs[u][C[v]] = sz[v];

            if(c[u].size() <c[v].size()){
                swap(c[u], c[v]);
            }
            // insert
            for(auto p:c[v]){
                ans[u]&=add(p, u);
            }
        }
        ans[u]&=add(make_pair(sz[u], u), u);
    };

    dfs(0);
    return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 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 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 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 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 296 ms 200020 KB Output is correct
8 Correct 331 ms 204884 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 1 ms 1116 KB Output is correct
14 Correct 2 ms 1372 KB Output is correct
15 Correct 2 ms 1884 KB Output is correct
16 Correct 2 ms 1880 KB Output is correct
17 Correct 157 ms 95824 KB Output is correct
18 Correct 122 ms 98708 KB Output is correct
19 Correct 326 ms 194644 KB Output is correct
20 Correct 297 ms 203184 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 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 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 604 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 85 ms 35080 KB Output is correct
16 Correct 109 ms 32832 KB Output is correct
17 Correct 107 ms 33208 KB Output is correct
18 Correct 80 ms 34328 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 296 ms 200020 KB Output is correct
6 Correct 331 ms 204884 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 1116 KB Output is correct
10 Correct 1 ms 860 KB Output is correct
11 Correct 167 ms 80924 KB Output is correct
12 Correct 160 ms 64452 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 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 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 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 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 1 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 1 ms 344 KB Output is correct
38 Correct 1 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 1 ms 344 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 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 1 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 0 ms 348 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 1 ms 348 KB Output is correct
63 Correct 0 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 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 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 1 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 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 1 ms 1116 KB Output is correct
26 Correct 1 ms 1372 KB Output is correct
27 Correct 1 ms 1372 KB Output is correct
28 Correct 1 ms 1372 KB Output is correct
29 Correct 1 ms 1116 KB Output is correct
30 Correct 1 ms 1116 KB Output is correct
31 Correct 3 ms 1116 KB Output is correct
32 Correct 2 ms 1116 KB Output is correct
33 Correct 2 ms 1116 KB Output is correct
34 Correct 2 ms 1116 KB Output is correct
35 Correct 2 ms 1116 KB Output is correct
36 Correct 2 ms 1116 KB Output is correct
37 Correct 2 ms 1112 KB Output is correct
38 Correct 2 ms 1116 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 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 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 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 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 1 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 1 ms 344 KB Output is correct
38 Correct 1 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 1 ms 344 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 1 ms 1116 KB Output is correct
43 Correct 2 ms 1372 KB Output is correct
44 Correct 2 ms 1884 KB Output is correct
45 Correct 2 ms 1880 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 0 ms 348 KB Output is correct
55 Correct 0 ms 348 KB Output is correct
56 Correct 1 ms 604 KB Output is correct
57 Correct 1 ms 604 KB Output is correct
58 Correct 1 ms 604 KB Output is correct
59 Correct 1 ms 604 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 1 ms 1116 KB Output is correct
63 Correct 1 ms 860 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 0 ms 348 KB Output is correct
69 Correct 0 ms 348 KB Output is correct
70 Correct 0 ms 348 KB Output is correct
71 Correct 0 ms 348 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 0 ms 348 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 1 ms 1116 KB Output is correct
76 Correct 1 ms 1372 KB Output is correct
77 Correct 1 ms 1372 KB Output is correct
78 Correct 1 ms 1372 KB Output is correct
79 Correct 1 ms 1116 KB Output is correct
80 Correct 1 ms 1116 KB Output is correct
81 Correct 3 ms 1116 KB Output is correct
82 Correct 2 ms 1116 KB Output is correct
83 Correct 2 ms 1116 KB Output is correct
84 Correct 2 ms 1116 KB Output is correct
85 Correct 2 ms 1116 KB Output is correct
86 Correct 2 ms 1116 KB Output is correct
87 Correct 2 ms 1112 KB Output is correct
88 Correct 2 ms 1116 KB Output is correct
89 Correct 1 ms 1116 KB Output is correct
90 Correct 2 ms 1112 KB Output is correct
91 Correct 2 ms 1112 KB Output is correct
92 Correct 2 ms 1116 KB Output is correct
93 Correct 3 ms 1116 KB Output is correct
94 Correct 2 ms 1116 KB Output is correct
95 Correct 2 ms 1116 KB Output is correct
96 Correct 2 ms 1116 KB Output is correct
97 Correct 1 ms 1116 KB Output is correct
98 Correct 1 ms 1116 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 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 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 1 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 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 1 ms 1116 KB Output is correct
26 Correct 1 ms 1372 KB Output is correct
27 Correct 1 ms 1372 KB Output is correct
28 Correct 1 ms 1372 KB Output is correct
29 Correct 1 ms 1116 KB Output is correct
30 Correct 1 ms 1116 KB Output is correct
31 Correct 3 ms 1116 KB Output is correct
32 Correct 2 ms 1116 KB Output is correct
33 Correct 2 ms 1116 KB Output is correct
34 Correct 2 ms 1116 KB Output is correct
35 Correct 2 ms 1116 KB Output is correct
36 Correct 2 ms 1116 KB Output is correct
37 Correct 2 ms 1112 KB Output is correct
38 Correct 2 ms 1116 KB Output is correct
39 Correct 117 ms 94304 KB Output is correct
40 Correct 133 ms 98132 KB Output is correct
41 Correct 148 ms 99228 KB Output is correct
42 Correct 139 ms 103676 KB Output is correct
43 Correct 128 ms 82744 KB Output is correct
44 Correct 140 ms 77992 KB Output is correct
45 Correct 417 ms 107020 KB Output is correct
46 Correct 277 ms 100016 KB Output is correct
47 Correct 236 ms 93264 KB Output is correct
48 Correct 214 ms 79440 KB Output is correct
49 Correct 176 ms 69568 KB Output is correct
50 Correct 381 ms 119632 KB Output is correct
51 Correct 309 ms 111728 KB Output is correct
52 Correct 306 ms 96848 KB Output is correct
53 Correct 261 ms 81748 KB Output is correct
54 Correct 190 ms 67236 KB Output is correct
55 Correct 107 ms 72144 KB Output is correct
56 Correct 111 ms 72640 KB Output is correct
57 Correct 114 ms 67876 KB Output is correct
58 Correct 130 ms 67412 KB Output is correct
59 Correct 137 ms 67156 KB Output is correct
60 Correct 172 ms 67160 KB Output is correct
61 Correct 144 ms 66896 KB Output is correct
62 Correct 123 ms 66612 KB Output is correct
63 Correct 134 ms 69972 KB Output is correct
64 Correct 136 ms 76500 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 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 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 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 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 1 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 1 ms 344 KB Output is correct
38 Correct 296 ms 200020 KB Output is correct
39 Correct 331 ms 204884 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 1 ms 344 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 1 ms 1116 KB Output is correct
45 Correct 2 ms 1372 KB Output is correct
46 Correct 2 ms 1884 KB Output is correct
47 Correct 2 ms 1880 KB Output is correct
48 Correct 157 ms 95824 KB Output is correct
49 Correct 122 ms 98708 KB Output is correct
50 Correct 326 ms 194644 KB Output is correct
51 Correct 297 ms 203184 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 0 ms 348 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 0 ms 348 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 1 ms 604 KB Output is correct
63 Correct 1 ms 604 KB Output is correct
64 Correct 1 ms 604 KB Output is correct
65 Correct 1 ms 604 KB Output is correct
66 Correct 85 ms 35080 KB Output is correct
67 Correct 109 ms 32832 KB Output is correct
68 Correct 107 ms 33208 KB Output is correct
69 Correct 80 ms 34328 KB Output is correct
70 Correct 0 ms 348 KB Output is correct
71 Correct 1 ms 348 KB Output is correct
72 Correct 1 ms 1116 KB Output is correct
73 Correct 1 ms 860 KB Output is correct
74 Correct 167 ms 80924 KB Output is correct
75 Correct 160 ms 64452 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 1 ms 348 KB Output is correct
78 Correct 0 ms 348 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 348 KB Output is correct
81 Correct 0 ms 348 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 0 ms 348 KB Output is correct
86 Correct 0 ms 348 KB Output is correct
87 Correct 1 ms 1116 KB Output is correct
88 Correct 1 ms 1372 KB Output is correct
89 Correct 1 ms 1372 KB Output is correct
90 Correct 1 ms 1372 KB Output is correct
91 Correct 1 ms 1116 KB Output is correct
92 Correct 1 ms 1116 KB Output is correct
93 Correct 3 ms 1116 KB Output is correct
94 Correct 2 ms 1116 KB Output is correct
95 Correct 2 ms 1116 KB Output is correct
96 Correct 2 ms 1116 KB Output is correct
97 Correct 2 ms 1116 KB Output is correct
98 Correct 2 ms 1116 KB Output is correct
99 Correct 2 ms 1112 KB Output is correct
100 Correct 2 ms 1116 KB Output is correct
101 Correct 1 ms 1116 KB Output is correct
102 Correct 2 ms 1112 KB Output is correct
103 Correct 2 ms 1112 KB Output is correct
104 Correct 2 ms 1116 KB Output is correct
105 Correct 3 ms 1116 KB Output is correct
106 Correct 2 ms 1116 KB Output is correct
107 Correct 2 ms 1116 KB Output is correct
108 Correct 2 ms 1116 KB Output is correct
109 Correct 1 ms 1116 KB Output is correct
110 Correct 1 ms 1116 KB Output is correct
111 Correct 117 ms 94304 KB Output is correct
112 Correct 133 ms 98132 KB Output is correct
113 Correct 148 ms 99228 KB Output is correct
114 Correct 139 ms 103676 KB Output is correct
115 Correct 128 ms 82744 KB Output is correct
116 Correct 140 ms 77992 KB Output is correct
117 Correct 417 ms 107020 KB Output is correct
118 Correct 277 ms 100016 KB Output is correct
119 Correct 236 ms 93264 KB Output is correct
120 Correct 214 ms 79440 KB Output is correct
121 Correct 176 ms 69568 KB Output is correct
122 Correct 381 ms 119632 KB Output is correct
123 Correct 309 ms 111728 KB Output is correct
124 Correct 306 ms 96848 KB Output is correct
125 Correct 261 ms 81748 KB Output is correct
126 Correct 190 ms 67236 KB Output is correct
127 Correct 107 ms 72144 KB Output is correct
128 Correct 111 ms 72640 KB Output is correct
129 Correct 114 ms 67876 KB Output is correct
130 Correct 130 ms 67412 KB Output is correct
131 Correct 137 ms 67156 KB Output is correct
132 Correct 172 ms 67160 KB Output is correct
133 Correct 144 ms 66896 KB Output is correct
134 Correct 123 ms 66612 KB Output is correct
135 Correct 134 ms 69972 KB Output is correct
136 Correct 136 ms 76500 KB Output is correct
137 Correct 191 ms 79164 KB Output is correct
138 Correct 157 ms 89180 KB Output is correct
139 Correct 379 ms 92076 KB Output is correct
140 Correct 314 ms 96880 KB Output is correct
141 Correct 289 ms 117484 KB Output is correct
142 Correct 232 ms 84564 KB Output is correct
143 Correct 200 ms 81748 KB Output is correct
144 Correct 334 ms 101708 KB Output is correct
145 Correct 302 ms 106220 KB Output is correct
146 Correct 258 ms 98768 KB Output is correct
147 Correct 334 ms 116032 KB Output is correct
148 Correct 288 ms 107604 KB Output is correct
149 Correct 108 ms 74512 KB Output is correct
150 Correct 108 ms 74592 KB Output is correct
151 Correct 152 ms 70484 KB Output is correct
152 Correct 118 ms 69808 KB Output is correct
153 Correct 121 ms 69680 KB Output is correct
154 Correct 137 ms 69716 KB Output is correct
155 Correct 132 ms 69540 KB Output is correct
156 Correct 126 ms 69216 KB Output is correct
157 Correct 130 ms 72292 KB Output is correct
158 Correct 182 ms 85008 KB Output is correct