답안 #920101

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
920101 2024-02-02T04:26:35 Z Juanchoki 꿈 (IOI13_dreaming) C++14
65 / 100
581 ms 32328 KB
#include"dreaming.h"
#include <bits/stdc++.h>
using namespace std;
struct edge
{
    int u, w;
};
struct tpos
{
    int nodo, dist, padre;
};
int maxn;
const int MAXN = 2e5 + 4;
int Visi[MAXN];
vector<vector<edge>> adj;
pair<int, int> bfs (int nodo)
{
        pair<int, int> ret;
        ret.second = -1;
        queue<tpos> q; 
        q.push({nodo, 0, -1});
        tpos temp_tpos;
        vector<bool> visi(maxn);
        while (!q.empty())
        {
            temp_tpos = q.front(); q.pop();
            visi[temp_tpos.nodo] = 1;
            Visi[temp_tpos.nodo] = 1;
            //cout << "    " << temp_tpos.nodo <<  " " << temp_tpos.dist << "\n";
            for (edge e: adj[temp_tpos.nodo])
            {
           //     cout << temp_tpos.nodo << " vecinos: " << e.u << '\n';
                if (visi[e.u]) continue;
                q.push({e.u, temp_tpos.dist+e.w, temp_tpos.nodo}); 
            }
            if (temp_tpos.dist > ret.second)
            {
                ret.second = temp_tpos.dist;
                ret.first = temp_tpos.nodo;
            }
        }
    //cout << '\n';
    return ret;
}
tpos Diametro (int pos)
{
    int ve = bfs(pos).first;
    tpos ttpos;
    ttpos.nodo = ve;
    pair<int, int> par = bfs(ve);
    ttpos.dist = par.first;
    ttpos.padre = par.second;
    return ttpos;
}

void DFS(int nodo, int dist, map<int, bool> &visit, map<int, int> &ret)
{
    visit[nodo] = 1;
    ret[nodo] = dist;
    for (edge &e: adj[nodo])
        if (visit[e.u]) continue;
        else DFS(e.u, dist + e.w, visit, ret);
}

int distanciaxdd (int nodo, map<int, bool> &visit, map<int, int> &a, map<int, int> &b)
{
    visit[nodo] = 1;
    int mini = max(a[nodo], b[nodo]);
    for (edge &e: adj[nodo])
        if (visit[e.u]) continue;
        else mini = min (mini, distanciaxdd(e.u, visit, a, b));
    return mini;
}

int travelTime(int N, int M, int L, int A[], int B[], int T[]) 
{
    maxn = N;
    adj.resize(N);
    edge temp_edge;
    for (int i = 0; i < M; i++)
    {
        temp_edge.u = B[i];
        temp_edge.w = T[i];
        adj[A[i]].push_back(temp_edge);
        temp_edge.u = A[i];
        adj[B[i]].push_back(temp_edge);
    }
    priority_queue<pair<int, int>> pq;
    pair<int, int> par;

    for (int i = 0; i < N; i++)
    {
        if (Visi[i]) continue;
        tpos ttpos = Diametro(i);
        par.first = ttpos.padre;
        map<int, int> uno, dos;
        map<int, bool> visit;
        DFS(ttpos.nodo, 0, visit, uno);
        visit.clear();
        DFS(ttpos.dist, 0, visit, dos);
        visit.clear();
        par.second = distanciaxdd(i, visit, uno, dos);
       // cout << i << " " << par.first << " " << par.second << '\n';
        pq.push(par);
    }
        
    while (pq.size() > 1)
    {
        pair<int, int> a1 = pq.top(); pq.pop();
        pair<int, int> a2 = pq.top(); pq.pop();
        pair<int, int> temporal;
        temporal.first = max(a1.first, max(a2.first, a1.second + a2.second + L));
        temporal.second = min (max (a1.second + L, a2.second), max(a2.second + L, a1.second));
        pq.push(temporal);
    }

    return pq.top().first;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 437 ms 28272 KB Output is correct
2 Correct 492 ms 27984 KB Output is correct
3 Correct 212 ms 18668 KB Output is correct
4 Correct 31 ms 4300 KB Output is correct
5 Correct 21 ms 2136 KB Output is correct
6 Correct 50 ms 6368 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 103 ms 8784 KB Output is correct
9 Correct 170 ms 13660 KB Output is correct
10 Correct 1 ms 756 KB Output is correct
11 Correct 258 ms 16540 KB Output is correct
12 Correct 389 ms 22176 KB Output is correct
13 Correct 2 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 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 344 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Correct 1 ms 600 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 1 ms 344 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 0 ms 344 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 344 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 344 KB Output is correct
19 Correct 1 ms 344 KB Output is correct
20 Correct 1 ms 344 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
22 Correct 1 ms 344 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 437 ms 28272 KB Output is correct
2 Correct 492 ms 27984 KB Output is correct
3 Correct 212 ms 18668 KB Output is correct
4 Correct 31 ms 4300 KB Output is correct
5 Correct 21 ms 2136 KB Output is correct
6 Correct 50 ms 6368 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 103 ms 8784 KB Output is correct
9 Correct 170 ms 13660 KB Output is correct
10 Correct 1 ms 756 KB Output is correct
11 Correct 258 ms 16540 KB Output is correct
12 Correct 389 ms 22176 KB Output is correct
13 Correct 2 ms 604 KB Output is correct
14 Correct 1 ms 344 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 344 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 1 ms 344 KB Output is correct
21 Correct 1 ms 600 KB Output is correct
22 Correct 1 ms 344 KB Output is correct
23 Correct 1 ms 344 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 344 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 0 ms 344 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 344 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 1 ms 344 KB Output is correct
32 Correct 1 ms 344 KB Output is correct
33 Correct 1 ms 344 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 344 KB Output is correct
36 Correct 1 ms 348 KB Output is correct
37 Correct 1 ms 344 KB Output is correct
38 Correct 1 ms 344 KB Output is correct
39 Correct 420 ms 28272 KB Output is correct
40 Correct 407 ms 28048 KB Output is correct
41 Correct 183 ms 18508 KB Output is correct
42 Correct 30 ms 4440 KB Output is correct
43 Correct 1 ms 344 KB Output is correct
44 Correct 1 ms 344 KB Output is correct
45 Correct 0 ms 344 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 1 ms 344 KB Output is correct
48 Correct 0 ms 344 KB Output is correct
49 Correct 1 ms 344 KB Output is correct
50 Correct 0 ms 344 KB Output is correct
51 Correct 0 ms 344 KB Output is correct
52 Correct 0 ms 344 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 344 KB Output is correct
55 Correct 0 ms 344 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 421 ms 21332 KB Output is correct
58 Correct 326 ms 16132 KB Output is correct
59 Correct 440 ms 20680 KB Output is correct
60 Correct 304 ms 15184 KB Output is correct
61 Correct 347 ms 20388 KB Output is correct
62 Correct 335 ms 17132 KB Output is correct
63 Correct 440 ms 22100 KB Output is correct
64 Correct 397 ms 22096 KB Output is correct
65 Correct 401 ms 21920 KB Output is correct
66 Correct 453 ms 22096 KB Output is correct
67 Correct 349 ms 20800 KB Output is correct
68 Correct 341 ms 20560 KB Output is correct
69 Correct 302 ms 16724 KB Output is correct
70 Correct 291 ms 16216 KB Output is correct
71 Correct 1 ms 344 KB Output is correct
72 Correct 5 ms 856 KB Output is correct
73 Correct 5 ms 856 KB Output is correct
74 Correct 5 ms 860 KB Output is correct
75 Correct 5 ms 856 KB Output is correct
76 Correct 5 ms 856 KB Output is correct
77 Correct 6 ms 860 KB Output is correct
78 Correct 5 ms 856 KB Output is correct
79 Correct 5 ms 856 KB Output is correct
80 Correct 334 ms 17748 KB Output is correct
81 Correct 316 ms 18000 KB Output is correct
82 Correct 417 ms 20460 KB Output is correct
83 Correct 408 ms 21756 KB Output is correct
84 Correct 4 ms 600 KB Output is correct
85 Correct 3 ms 856 KB Output is correct
86 Correct 4 ms 604 KB Output is correct
87 Correct 4 ms 604 KB Output is correct
88 Correct 4 ms 600 KB Output is correct
89 Correct 4 ms 600 KB Output is correct
90 Correct 4 ms 600 KB Output is correct
91 Correct 5 ms 1016 KB Output is correct
92 Correct 5 ms 856 KB Output is correct
93 Correct 5 ms 856 KB Output is correct
94 Correct 1 ms 600 KB Output is correct
95 Correct 0 ms 344 KB Output is correct
96 Correct 1 ms 344 KB Output is correct
97 Correct 1 ms 344 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 1 ms 344 KB Output is correct
100 Correct 1 ms 344 KB Output is correct
101 Correct 1 ms 344 KB Output is correct
102 Correct 0 ms 344 KB Output is correct
103 Correct 1 ms 344 KB Output is correct
104 Correct 20 ms 2136 KB Output is correct
105 Correct 50 ms 6484 KB Output is correct
106 Correct 1 ms 344 KB Output is correct
107 Correct 102 ms 8784 KB Output is correct
108 Correct 161 ms 13792 KB Output is correct
109 Correct 1 ms 600 KB Output is correct
110 Correct 231 ms 16504 KB Output is correct
111 Correct 320 ms 22044 KB Output is correct
112 Correct 2 ms 800 KB Output is correct
113 Correct 581 ms 32328 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 60 ms 5840 KB Output is correct
2 Correct 59 ms 5840 KB Output is correct
3 Correct 58 ms 5852 KB Output is correct
4 Correct 59 ms 5772 KB Output is correct
5 Correct 58 ms 5840 KB Output is correct
6 Correct 64 ms 6608 KB Output is correct
7 Correct 62 ms 6104 KB Output is correct
8 Correct 56 ms 5840 KB Output is correct
9 Correct 59 ms 5836 KB Output is correct
10 Correct 61 ms 6092 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 65 ms 4296 KB Output is correct
13 Correct 64 ms 4244 KB Output is correct
14 Correct 64 ms 4296 KB Output is correct
15 Correct 64 ms 4300 KB Output is correct
16 Correct 65 ms 4296 KB Output is correct
17 Correct 68 ms 4040 KB Output is correct
18 Correct 66 ms 4300 KB Output is correct
19 Correct 66 ms 4296 KB Output is correct
20 Correct 0 ms 344 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 1 ms 344 KB Output is correct
23 Correct 65 ms 4300 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 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 344 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Correct 1 ms 600 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 1 ms 344 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 0 ms 344 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 344 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 344 KB Output is correct
19 Correct 1 ms 344 KB Output is correct
20 Correct 1 ms 344 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
22 Correct 1 ms 344 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 344 KB Output is correct
26 Correct 1 ms 344 KB Output is correct
27 Correct 2 ms 856 KB Output is correct
28 Correct 3 ms 600 KB Output is correct
29 Correct 1 ms 344 KB Output is correct
30 Correct 2 ms 600 KB Output is correct
31 Correct 3 ms 600 KB Output is correct
32 Correct 1 ms 344 KB Output is correct
33 Correct 2 ms 604 KB Output is correct
34 Correct 3 ms 600 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 344 KB Output is correct
37 Correct 1 ms 344 KB Output is correct
38 Correct 1 ms 344 KB Output is correct
39 Correct 1 ms 344 KB Output is correct
40 Correct 0 ms 344 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 344 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 344 KB Output is correct
45 Correct 0 ms 344 KB Output is correct
46 Correct 1 ms 344 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 1 ms 344 KB Output is correct
49 Correct 1 ms 344 KB Output is correct
50 Correct 1 ms 344 KB Output is correct
51 Correct 0 ms 344 KB Output is correct
52 Correct 1 ms 344 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 6 ms 1112 KB Output is correct
55 Correct 5 ms 1112 KB Output is correct
56 Correct 2 ms 604 KB Output is correct
57 Correct 2 ms 600 KB Output is correct
58 Correct 5 ms 856 KB Output is correct
59 Correct 5 ms 860 KB Output is correct
60 Correct 2 ms 600 KB Output is correct
61 Correct 2 ms 600 KB Output is correct
62 Correct 5 ms 856 KB Output is correct
63 Correct 5 ms 856 KB Output is correct
64 Incorrect 1 ms 600 KB Output isn't correct
65 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 437 ms 28272 KB Output is correct
2 Correct 492 ms 27984 KB Output is correct
3 Correct 212 ms 18668 KB Output is correct
4 Correct 31 ms 4300 KB Output is correct
5 Correct 21 ms 2136 KB Output is correct
6 Correct 50 ms 6368 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 103 ms 8784 KB Output is correct
9 Correct 170 ms 13660 KB Output is correct
10 Correct 1 ms 756 KB Output is correct
11 Correct 258 ms 16540 KB Output is correct
12 Correct 389 ms 22176 KB Output is correct
13 Correct 2 ms 604 KB Output is correct
14 Correct 1 ms 344 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 344 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 1 ms 344 KB Output is correct
21 Correct 1 ms 600 KB Output is correct
22 Correct 1 ms 344 KB Output is correct
23 Correct 1 ms 344 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 344 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 0 ms 344 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 344 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 1 ms 344 KB Output is correct
32 Correct 1 ms 344 KB Output is correct
33 Correct 1 ms 344 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 344 KB Output is correct
36 Correct 1 ms 348 KB Output is correct
37 Correct 1 ms 344 KB Output is correct
38 Correct 1 ms 344 KB Output is correct
39 Correct 420 ms 28272 KB Output is correct
40 Correct 407 ms 28048 KB Output is correct
41 Correct 183 ms 18508 KB Output is correct
42 Correct 30 ms 4440 KB Output is correct
43 Correct 1 ms 344 KB Output is correct
44 Correct 1 ms 344 KB Output is correct
45 Correct 0 ms 344 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 1 ms 344 KB Output is correct
48 Correct 0 ms 344 KB Output is correct
49 Correct 1 ms 344 KB Output is correct
50 Correct 0 ms 344 KB Output is correct
51 Correct 0 ms 344 KB Output is correct
52 Correct 0 ms 344 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 344 KB Output is correct
55 Correct 0 ms 344 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 421 ms 21332 KB Output is correct
58 Correct 326 ms 16132 KB Output is correct
59 Correct 440 ms 20680 KB Output is correct
60 Correct 304 ms 15184 KB Output is correct
61 Correct 347 ms 20388 KB Output is correct
62 Correct 335 ms 17132 KB Output is correct
63 Correct 440 ms 22100 KB Output is correct
64 Correct 397 ms 22096 KB Output is correct
65 Correct 401 ms 21920 KB Output is correct
66 Correct 453 ms 22096 KB Output is correct
67 Correct 349 ms 20800 KB Output is correct
68 Correct 341 ms 20560 KB Output is correct
69 Correct 302 ms 16724 KB Output is correct
70 Correct 291 ms 16216 KB Output is correct
71 Correct 1 ms 344 KB Output is correct
72 Correct 5 ms 856 KB Output is correct
73 Correct 5 ms 856 KB Output is correct
74 Correct 5 ms 860 KB Output is correct
75 Correct 5 ms 856 KB Output is correct
76 Correct 5 ms 856 KB Output is correct
77 Correct 6 ms 860 KB Output is correct
78 Correct 5 ms 856 KB Output is correct
79 Correct 5 ms 856 KB Output is correct
80 Correct 334 ms 17748 KB Output is correct
81 Correct 316 ms 18000 KB Output is correct
82 Correct 417 ms 20460 KB Output is correct
83 Correct 408 ms 21756 KB Output is correct
84 Correct 4 ms 600 KB Output is correct
85 Correct 3 ms 856 KB Output is correct
86 Correct 4 ms 604 KB Output is correct
87 Correct 4 ms 604 KB Output is correct
88 Correct 4 ms 600 KB Output is correct
89 Correct 4 ms 600 KB Output is correct
90 Correct 4 ms 600 KB Output is correct
91 Correct 5 ms 1016 KB Output is correct
92 Correct 5 ms 856 KB Output is correct
93 Correct 5 ms 856 KB Output is correct
94 Correct 1 ms 600 KB Output is correct
95 Correct 0 ms 344 KB Output is correct
96 Correct 1 ms 344 KB Output is correct
97 Correct 1 ms 344 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 1 ms 344 KB Output is correct
100 Correct 1 ms 344 KB Output is correct
101 Correct 1 ms 344 KB Output is correct
102 Correct 0 ms 344 KB Output is correct
103 Correct 1 ms 344 KB Output is correct
104 Correct 20 ms 2136 KB Output is correct
105 Correct 50 ms 6484 KB Output is correct
106 Correct 1 ms 344 KB Output is correct
107 Correct 102 ms 8784 KB Output is correct
108 Correct 161 ms 13792 KB Output is correct
109 Correct 1 ms 600 KB Output is correct
110 Correct 231 ms 16504 KB Output is correct
111 Correct 320 ms 22044 KB Output is correct
112 Correct 2 ms 800 KB Output is correct
113 Correct 581 ms 32328 KB Output is correct
114 Correct 60 ms 5840 KB Output is correct
115 Correct 59 ms 5840 KB Output is correct
116 Correct 58 ms 5852 KB Output is correct
117 Correct 59 ms 5772 KB Output is correct
118 Correct 58 ms 5840 KB Output is correct
119 Correct 64 ms 6608 KB Output is correct
120 Correct 62 ms 6104 KB Output is correct
121 Correct 56 ms 5840 KB Output is correct
122 Correct 59 ms 5836 KB Output is correct
123 Correct 61 ms 6092 KB Output is correct
124 Correct 1 ms 344 KB Output is correct
125 Correct 65 ms 4296 KB Output is correct
126 Correct 64 ms 4244 KB Output is correct
127 Correct 64 ms 4296 KB Output is correct
128 Correct 64 ms 4300 KB Output is correct
129 Correct 65 ms 4296 KB Output is correct
130 Correct 68 ms 4040 KB Output is correct
131 Correct 66 ms 4300 KB Output is correct
132 Correct 66 ms 4296 KB Output is correct
133 Correct 0 ms 344 KB Output is correct
134 Correct 0 ms 348 KB Output is correct
135 Correct 1 ms 344 KB Output is correct
136 Correct 65 ms 4300 KB Output is correct
137 Correct 1 ms 344 KB Output is correct
138 Correct 2 ms 856 KB Output is correct
139 Correct 3 ms 600 KB Output is correct
140 Correct 1 ms 344 KB Output is correct
141 Correct 2 ms 600 KB Output is correct
142 Correct 3 ms 600 KB Output is correct
143 Correct 1 ms 344 KB Output is correct
144 Correct 2 ms 604 KB Output is correct
145 Correct 3 ms 600 KB Output is correct
146 Correct 0 ms 348 KB Output is correct
147 Correct 1 ms 344 KB Output is correct
148 Correct 1 ms 344 KB Output is correct
149 Correct 1 ms 344 KB Output is correct
150 Correct 1 ms 344 KB Output is correct
151 Correct 0 ms 344 KB Output is correct
152 Correct 1 ms 348 KB Output is correct
153 Correct 0 ms 344 KB Output is correct
154 Correct 0 ms 348 KB Output is correct
155 Correct 0 ms 344 KB Output is correct
156 Correct 0 ms 344 KB Output is correct
157 Correct 1 ms 344 KB Output is correct
158 Correct 0 ms 348 KB Output is correct
159 Correct 1 ms 344 KB Output is correct
160 Correct 1 ms 344 KB Output is correct
161 Correct 1 ms 344 KB Output is correct
162 Correct 0 ms 344 KB Output is correct
163 Correct 1 ms 344 KB Output is correct
164 Correct 0 ms 348 KB Output is correct
165 Correct 6 ms 1112 KB Output is correct
166 Correct 5 ms 1112 KB Output is correct
167 Correct 2 ms 604 KB Output is correct
168 Correct 2 ms 600 KB Output is correct
169 Correct 5 ms 856 KB Output is correct
170 Correct 5 ms 860 KB Output is correct
171 Correct 2 ms 600 KB Output is correct
172 Correct 2 ms 600 KB Output is correct
173 Correct 5 ms 856 KB Output is correct
174 Correct 5 ms 856 KB Output is correct
175 Incorrect 1 ms 600 KB Output isn't correct
176 Halted 0 ms 0 KB -