Submission #335977

# Submission time Handle Problem Language Result Execution time Memory
335977 2020-12-14T12:37:34 Z saarang123 Dreaming (IOI13_dreaming) C++14
65 / 100
146 ms 17260 KB
#include <bits/stdc++.h>
#include "dreaming.h"
using namespace std;

const int N = 1e5 + 2;
vector<array<int, 2>> g[N];
bool vis[N];
array<int, 2> par[N];
vector<array<int, 2>> cost;

array<int, 2> dfs(int v, int p, int d) {
    vis[v] = true;
    par[v] = {p, d};
    array<int, 2> ret = {d, v};
    for(auto tx : g[v]) {
        int u = tx[0], w = tx[1];
        if(u == p) continue;
        ret = max(ret, dfs(u, v, d + w));
    }
    return ret;
}

int travelTime(int N,int M,int L, int A[],int B[],int T[]) {
    for(int i = 0; i < M; i++) {
        g[A[i]].push_back({B[i], T[i]});
        g[B[i]].push_back({A[i], T[i]});
    }
    for(int i = 0; i < N; i++) {
        if(vis[i]) continue;
        array<int, 2> y = dfs(i, -1, 0);
        array<int, 2> d = dfs(y[1], -1, 0);
        array<int, 2> v = {d[1], d[0]};  //node, diameter
        array<int, 4> ans = {d[0], d[0], 0, d[1]}; //max of 2 sides, first side, other side, node
        while(v[0] != -1) {
            array<int, 2> x = {v[0], par[v[0]][1]};
            ans = min(ans, {max(d[0] - x[1], x[1]) , d[0] - x[1], x[1], x[0]}); //min max of 2sides
            v = par[v[0]];
        }
        //cout << ans[1] << ' ' << ans[2] << ' ' << ans[3] << '\n';
        cost.push_back({d[0], ans[3]});
    }
    sort(cost.begin(), cost.end());
    reverse(cost.begin(), cost.end());
    for(int i = 1; i < cost.size(); i++) {
        g[cost[0][1]].push_back({cost[i][1], L});
        g[cost[i][1]].push_back({cost[0][1], L});
    }
    array<int, 2> x = dfs(1, -1, 0);
    int answer = dfs(x[1], -1, 0)[0];
    return answer;
}

Compilation message

dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:44:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   44 |     for(int i = 1; i < cost.size(); i++) {
      |                    ~~^~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 83 ms 17004 KB Output is correct
2 Correct 81 ms 16876 KB Output is correct
3 Correct 63 ms 12224 KB Output is correct
4 Correct 10 ms 4844 KB Output is correct
5 Correct 8 ms 3820 KB Output is correct
6 Correct 16 ms 5868 KB Output is correct
7 Correct 3 ms 2668 KB Output is correct
8 Correct 32 ms 7532 KB Output is correct
9 Correct 47 ms 9708 KB Output is correct
10 Correct 2 ms 2796 KB Output is correct
11 Correct 80 ms 11628 KB Output is correct
12 Correct 104 ms 14316 KB Output is correct
13 Correct 3 ms 2796 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 83 ms 17004 KB Output is correct
2 Correct 81 ms 16876 KB Output is correct
3 Correct 63 ms 12224 KB Output is correct
4 Correct 10 ms 4844 KB Output is correct
5 Correct 8 ms 3820 KB Output is correct
6 Correct 16 ms 5868 KB Output is correct
7 Correct 3 ms 2668 KB Output is correct
8 Correct 32 ms 7532 KB Output is correct
9 Correct 47 ms 9708 KB Output is correct
10 Correct 2 ms 2796 KB Output is correct
11 Correct 80 ms 11628 KB Output is correct
12 Correct 104 ms 14316 KB Output is correct
13 Correct 3 ms 2796 KB Output is correct
14 Correct 2 ms 2668 KB Output is correct
15 Correct 2 ms 2668 KB Output is correct
16 Correct 2 ms 2668 KB Output is correct
17 Correct 2 ms 2668 KB Output is correct
18 Correct 2 ms 2668 KB Output is correct
19 Correct 2 ms 2668 KB Output is correct
20 Correct 2 ms 2668 KB Output is correct
21 Correct 2 ms 2668 KB Output is correct
22 Correct 2 ms 2668 KB Output is correct
23 Correct 2 ms 2668 KB Output is correct
24 Correct 3 ms 2668 KB Output is correct
25 Correct 2 ms 2668 KB Output is correct
26 Correct 2 ms 2668 KB Output is correct
27 Correct 2 ms 2668 KB Output is correct
28 Correct 3 ms 2668 KB Output is correct
29 Correct 3 ms 2668 KB Output is correct
30 Correct 2 ms 2668 KB Output is correct
31 Correct 2 ms 2668 KB Output is correct
32 Correct 2 ms 2668 KB Output is correct
33 Correct 2 ms 2668 KB Output is correct
34 Correct 2 ms 2668 KB Output is correct
35 Correct 2 ms 2668 KB Output is correct
36 Correct 2 ms 2696 KB Output is correct
37 Correct 3 ms 2668 KB Output is correct
38 Correct 2 ms 2668 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 83 ms 17004 KB Output is correct
2 Correct 81 ms 16876 KB Output is correct
3 Correct 63 ms 12224 KB Output is correct
4 Correct 10 ms 4844 KB Output is correct
5 Correct 8 ms 3820 KB Output is correct
6 Correct 16 ms 5868 KB Output is correct
7 Correct 3 ms 2668 KB Output is correct
8 Correct 32 ms 7532 KB Output is correct
9 Correct 47 ms 9708 KB Output is correct
10 Correct 2 ms 2796 KB Output is correct
11 Correct 80 ms 11628 KB Output is correct
12 Correct 104 ms 14316 KB Output is correct
13 Correct 3 ms 2796 KB Output is correct
14 Correct 2 ms 2668 KB Output is correct
15 Correct 2 ms 2668 KB Output is correct
16 Correct 2 ms 2668 KB Output is correct
17 Correct 2 ms 2668 KB Output is correct
18 Correct 2 ms 2668 KB Output is correct
19 Correct 2 ms 2668 KB Output is correct
20 Correct 2 ms 2668 KB Output is correct
21 Correct 2 ms 2668 KB Output is correct
22 Correct 2 ms 2668 KB Output is correct
23 Correct 2 ms 2668 KB Output is correct
24 Correct 3 ms 2668 KB Output is correct
25 Correct 2 ms 2668 KB Output is correct
26 Correct 2 ms 2668 KB Output is correct
27 Correct 2 ms 2668 KB Output is correct
28 Correct 3 ms 2668 KB Output is correct
29 Correct 3 ms 2668 KB Output is correct
30 Correct 2 ms 2668 KB Output is correct
31 Correct 2 ms 2668 KB Output is correct
32 Correct 2 ms 2668 KB Output is correct
33 Correct 2 ms 2668 KB Output is correct
34 Correct 2 ms 2668 KB Output is correct
35 Correct 2 ms 2668 KB Output is correct
36 Correct 2 ms 2696 KB Output is correct
37 Correct 3 ms 2668 KB Output is correct
38 Correct 2 ms 2668 KB Output is correct
39 Correct 77 ms 16876 KB Output is correct
40 Correct 74 ms 16876 KB Output is correct
41 Correct 46 ms 12268 KB Output is correct
42 Correct 11 ms 4844 KB Output is correct
43 Correct 2 ms 2668 KB Output is correct
44 Correct 2 ms 2668 KB Output is correct
45 Correct 2 ms 2796 KB Output is correct
46 Correct 2 ms 2796 KB Output is correct
47 Correct 2 ms 2668 KB Output is correct
48 Correct 2 ms 2668 KB Output is correct
49 Correct 2 ms 2668 KB Output is correct
50 Correct 2 ms 2668 KB Output is correct
51 Correct 2 ms 2668 KB Output is correct
52 Correct 2 ms 2668 KB Output is correct
53 Correct 2 ms 2668 KB Output is correct
54 Correct 2 ms 2668 KB Output is correct
55 Correct 3 ms 2668 KB Output is correct
56 Correct 3 ms 2668 KB Output is correct
57 Correct 130 ms 9964 KB Output is correct
58 Correct 127 ms 9872 KB Output is correct
59 Correct 117 ms 9964 KB Output is correct
60 Correct 113 ms 9836 KB Output is correct
61 Correct 117 ms 9964 KB Output is correct
62 Correct 118 ms 9836 KB Output is correct
63 Correct 114 ms 9452 KB Output is correct
64 Correct 112 ms 9580 KB Output is correct
65 Correct 104 ms 9580 KB Output is correct
66 Correct 114 ms 9452 KB Output is correct
67 Correct 122 ms 9836 KB Output is correct
68 Correct 114 ms 9964 KB Output is correct
69 Correct 130 ms 9836 KB Output is correct
70 Correct 129 ms 9964 KB Output is correct
71 Correct 2 ms 2668 KB Output is correct
72 Correct 4 ms 2924 KB Output is correct
73 Correct 4 ms 2924 KB Output is correct
74 Correct 4 ms 2924 KB Output is correct
75 Correct 4 ms 2924 KB Output is correct
76 Correct 4 ms 2924 KB Output is correct
77 Correct 5 ms 3052 KB Output is correct
78 Correct 4 ms 2924 KB Output is correct
79 Correct 4 ms 2924 KB Output is correct
80 Correct 126 ms 9452 KB Output is correct
81 Correct 122 ms 9324 KB Output is correct
82 Correct 106 ms 9324 KB Output is correct
83 Correct 110 ms 9324 KB Output is correct
84 Correct 3 ms 2924 KB Output is correct
85 Correct 3 ms 2796 KB Output is correct
86 Correct 3 ms 2924 KB Output is correct
87 Correct 5 ms 2924 KB Output is correct
88 Correct 4 ms 2924 KB Output is correct
89 Correct 4 ms 2924 KB Output is correct
90 Correct 4 ms 2924 KB Output is correct
91 Correct 4 ms 2924 KB Output is correct
92 Correct 4 ms 2924 KB Output is correct
93 Correct 4 ms 2924 KB Output is correct
94 Correct 2 ms 2668 KB Output is correct
95 Correct 2 ms 2668 KB Output is correct
96 Correct 2 ms 2668 KB Output is correct
97 Correct 2 ms 2668 KB Output is correct
98 Correct 2 ms 2668 KB Output is correct
99 Correct 2 ms 2668 KB Output is correct
100 Correct 2 ms 2668 KB Output is correct
101 Correct 2 ms 2668 KB Output is correct
102 Correct 2 ms 2668 KB Output is correct
103 Correct 2 ms 2668 KB Output is correct
104 Correct 9 ms 3820 KB Output is correct
105 Correct 17 ms 5740 KB Output is correct
106 Correct 2 ms 2668 KB Output is correct
107 Correct 35 ms 7020 KB Output is correct
108 Correct 51 ms 9088 KB Output is correct
109 Correct 2 ms 2796 KB Output is correct
110 Correct 76 ms 10732 KB Output is correct
111 Correct 102 ms 13420 KB Output is correct
112 Correct 3 ms 2796 KB Output is correct
113 Correct 146 ms 17260 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 47 ms 7840 KB Output is correct
2 Correct 50 ms 7828 KB Output is correct
3 Correct 49 ms 7840 KB Output is correct
4 Correct 48 ms 7832 KB Output is correct
5 Correct 50 ms 7836 KB Output is correct
6 Correct 51 ms 8700 KB Output is correct
7 Correct 52 ms 8048 KB Output is correct
8 Correct 53 ms 7860 KB Output is correct
9 Correct 50 ms 7724 KB Output is correct
10 Correct 63 ms 7924 KB Output is correct
11 Correct 2 ms 2668 KB Output is correct
12 Correct 33 ms 8288 KB Output is correct
13 Correct 34 ms 8288 KB Output is correct
14 Correct 35 ms 8288 KB Output is correct
15 Correct 35 ms 8288 KB Output is correct
16 Correct 32 ms 8288 KB Output is correct
17 Correct 33 ms 8288 KB Output is correct
18 Correct 31 ms 8288 KB Output is correct
19 Correct 35 ms 8288 KB Output is correct
20 Correct 2 ms 2668 KB Output is correct
21 Correct 2 ms 2668 KB Output is correct
22 Correct 3 ms 2924 KB Output is correct
23 Correct 32 ms 8288 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 83 ms 17004 KB Output is correct
2 Correct 81 ms 16876 KB Output is correct
3 Correct 63 ms 12224 KB Output is correct
4 Correct 10 ms 4844 KB Output is correct
5 Correct 8 ms 3820 KB Output is correct
6 Correct 16 ms 5868 KB Output is correct
7 Correct 3 ms 2668 KB Output is correct
8 Correct 32 ms 7532 KB Output is correct
9 Correct 47 ms 9708 KB Output is correct
10 Correct 2 ms 2796 KB Output is correct
11 Correct 80 ms 11628 KB Output is correct
12 Correct 104 ms 14316 KB Output is correct
13 Correct 3 ms 2796 KB Output is correct
14 Correct 3 ms 2796 KB Output is correct
15 Correct 3 ms 2796 KB Output is correct
16 Correct 4 ms 2924 KB Output is correct
17 Correct 3 ms 2796 KB Output is correct
18 Correct 3 ms 2796 KB Output is correct
19 Correct 4 ms 2924 KB Output is correct
20 Correct 3 ms 2796 KB Output is correct
21 Correct 4 ms 2796 KB Output is correct
22 Correct 3 ms 2924 KB Output is correct
23 Correct 2 ms 2668 KB Output is correct
24 Correct 2 ms 2668 KB Output is correct
25 Correct 2 ms 2668 KB Output is correct
26 Correct 2 ms 2668 KB Output is correct
27 Correct 2 ms 2668 KB Output is correct
28 Correct 2 ms 2668 KB Output is correct
29 Correct 2 ms 2668 KB Output is correct
30 Correct 2 ms 2668 KB Output is correct
31 Correct 2 ms 2668 KB Output is correct
32 Correct 2 ms 2668 KB Output is correct
33 Correct 3 ms 2668 KB Output is correct
34 Correct 2 ms 2668 KB Output is correct
35 Correct 2 ms 2668 KB Output is correct
36 Correct 2 ms 2668 KB Output is correct
37 Correct 2 ms 2668 KB Output is correct
38 Correct 2 ms 2668 KB Output is correct
39 Correct 2 ms 2668 KB Output is correct
40 Correct 2 ms 2668 KB Output is correct
41 Correct 2 ms 2668 KB Output is correct
42 Correct 4 ms 3180 KB Output is correct
43 Correct 4 ms 3308 KB Output is correct
44 Correct 3 ms 2924 KB Output is correct
45 Correct 3 ms 2924 KB Output is correct
46 Correct 4 ms 2924 KB Output is correct
47 Correct 4 ms 2924 KB Output is correct
48 Correct 3 ms 2924 KB Output is correct
49 Correct 3 ms 2924 KB Output is correct
50 Correct 4 ms 2924 KB Output is correct
51 Correct 4 ms 2924 KB Output is correct
52 Incorrect 3 ms 2924 KB Output isn't correct
53 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 83 ms 17004 KB Output is correct
2 Correct 81 ms 16876 KB Output is correct
3 Correct 63 ms 12224 KB Output is correct
4 Correct 10 ms 4844 KB Output is correct
5 Correct 8 ms 3820 KB Output is correct
6 Correct 16 ms 5868 KB Output is correct
7 Correct 3 ms 2668 KB Output is correct
8 Correct 32 ms 7532 KB Output is correct
9 Correct 47 ms 9708 KB Output is correct
10 Correct 2 ms 2796 KB Output is correct
11 Correct 80 ms 11628 KB Output is correct
12 Correct 104 ms 14316 KB Output is correct
13 Correct 3 ms 2796 KB Output is correct
14 Correct 2 ms 2668 KB Output is correct
15 Correct 2 ms 2668 KB Output is correct
16 Correct 2 ms 2668 KB Output is correct
17 Correct 2 ms 2668 KB Output is correct
18 Correct 2 ms 2668 KB Output is correct
19 Correct 2 ms 2668 KB Output is correct
20 Correct 2 ms 2668 KB Output is correct
21 Correct 2 ms 2668 KB Output is correct
22 Correct 2 ms 2668 KB Output is correct
23 Correct 2 ms 2668 KB Output is correct
24 Correct 3 ms 2668 KB Output is correct
25 Correct 2 ms 2668 KB Output is correct
26 Correct 2 ms 2668 KB Output is correct
27 Correct 2 ms 2668 KB Output is correct
28 Correct 3 ms 2668 KB Output is correct
29 Correct 3 ms 2668 KB Output is correct
30 Correct 2 ms 2668 KB Output is correct
31 Correct 2 ms 2668 KB Output is correct
32 Correct 2 ms 2668 KB Output is correct
33 Correct 2 ms 2668 KB Output is correct
34 Correct 2 ms 2668 KB Output is correct
35 Correct 2 ms 2668 KB Output is correct
36 Correct 2 ms 2696 KB Output is correct
37 Correct 3 ms 2668 KB Output is correct
38 Correct 2 ms 2668 KB Output is correct
39 Correct 77 ms 16876 KB Output is correct
40 Correct 74 ms 16876 KB Output is correct
41 Correct 46 ms 12268 KB Output is correct
42 Correct 11 ms 4844 KB Output is correct
43 Correct 2 ms 2668 KB Output is correct
44 Correct 2 ms 2668 KB Output is correct
45 Correct 2 ms 2796 KB Output is correct
46 Correct 2 ms 2796 KB Output is correct
47 Correct 2 ms 2668 KB Output is correct
48 Correct 2 ms 2668 KB Output is correct
49 Correct 2 ms 2668 KB Output is correct
50 Correct 2 ms 2668 KB Output is correct
51 Correct 2 ms 2668 KB Output is correct
52 Correct 2 ms 2668 KB Output is correct
53 Correct 2 ms 2668 KB Output is correct
54 Correct 2 ms 2668 KB Output is correct
55 Correct 3 ms 2668 KB Output is correct
56 Correct 3 ms 2668 KB Output is correct
57 Correct 130 ms 9964 KB Output is correct
58 Correct 127 ms 9872 KB Output is correct
59 Correct 117 ms 9964 KB Output is correct
60 Correct 113 ms 9836 KB Output is correct
61 Correct 117 ms 9964 KB Output is correct
62 Correct 118 ms 9836 KB Output is correct
63 Correct 114 ms 9452 KB Output is correct
64 Correct 112 ms 9580 KB Output is correct
65 Correct 104 ms 9580 KB Output is correct
66 Correct 114 ms 9452 KB Output is correct
67 Correct 122 ms 9836 KB Output is correct
68 Correct 114 ms 9964 KB Output is correct
69 Correct 130 ms 9836 KB Output is correct
70 Correct 129 ms 9964 KB Output is correct
71 Correct 2 ms 2668 KB Output is correct
72 Correct 4 ms 2924 KB Output is correct
73 Correct 4 ms 2924 KB Output is correct
74 Correct 4 ms 2924 KB Output is correct
75 Correct 4 ms 2924 KB Output is correct
76 Correct 4 ms 2924 KB Output is correct
77 Correct 5 ms 3052 KB Output is correct
78 Correct 4 ms 2924 KB Output is correct
79 Correct 4 ms 2924 KB Output is correct
80 Correct 126 ms 9452 KB Output is correct
81 Correct 122 ms 9324 KB Output is correct
82 Correct 106 ms 9324 KB Output is correct
83 Correct 110 ms 9324 KB Output is correct
84 Correct 3 ms 2924 KB Output is correct
85 Correct 3 ms 2796 KB Output is correct
86 Correct 3 ms 2924 KB Output is correct
87 Correct 5 ms 2924 KB Output is correct
88 Correct 4 ms 2924 KB Output is correct
89 Correct 4 ms 2924 KB Output is correct
90 Correct 4 ms 2924 KB Output is correct
91 Correct 4 ms 2924 KB Output is correct
92 Correct 4 ms 2924 KB Output is correct
93 Correct 4 ms 2924 KB Output is correct
94 Correct 2 ms 2668 KB Output is correct
95 Correct 2 ms 2668 KB Output is correct
96 Correct 2 ms 2668 KB Output is correct
97 Correct 2 ms 2668 KB Output is correct
98 Correct 2 ms 2668 KB Output is correct
99 Correct 2 ms 2668 KB Output is correct
100 Correct 2 ms 2668 KB Output is correct
101 Correct 2 ms 2668 KB Output is correct
102 Correct 2 ms 2668 KB Output is correct
103 Correct 2 ms 2668 KB Output is correct
104 Correct 9 ms 3820 KB Output is correct
105 Correct 17 ms 5740 KB Output is correct
106 Correct 2 ms 2668 KB Output is correct
107 Correct 35 ms 7020 KB Output is correct
108 Correct 51 ms 9088 KB Output is correct
109 Correct 2 ms 2796 KB Output is correct
110 Correct 76 ms 10732 KB Output is correct
111 Correct 102 ms 13420 KB Output is correct
112 Correct 3 ms 2796 KB Output is correct
113 Correct 146 ms 17260 KB Output is correct
114 Correct 47 ms 7840 KB Output is correct
115 Correct 50 ms 7828 KB Output is correct
116 Correct 49 ms 7840 KB Output is correct
117 Correct 48 ms 7832 KB Output is correct
118 Correct 50 ms 7836 KB Output is correct
119 Correct 51 ms 8700 KB Output is correct
120 Correct 52 ms 8048 KB Output is correct
121 Correct 53 ms 7860 KB Output is correct
122 Correct 50 ms 7724 KB Output is correct
123 Correct 63 ms 7924 KB Output is correct
124 Correct 2 ms 2668 KB Output is correct
125 Correct 33 ms 8288 KB Output is correct
126 Correct 34 ms 8288 KB Output is correct
127 Correct 35 ms 8288 KB Output is correct
128 Correct 35 ms 8288 KB Output is correct
129 Correct 32 ms 8288 KB Output is correct
130 Correct 33 ms 8288 KB Output is correct
131 Correct 31 ms 8288 KB Output is correct
132 Correct 35 ms 8288 KB Output is correct
133 Correct 2 ms 2668 KB Output is correct
134 Correct 2 ms 2668 KB Output is correct
135 Correct 3 ms 2924 KB Output is correct
136 Correct 32 ms 8288 KB Output is correct
137 Correct 3 ms 2796 KB Output is correct
138 Correct 3 ms 2796 KB Output is correct
139 Correct 4 ms 2924 KB Output is correct
140 Correct 3 ms 2796 KB Output is correct
141 Correct 3 ms 2796 KB Output is correct
142 Correct 4 ms 2924 KB Output is correct
143 Correct 3 ms 2796 KB Output is correct
144 Correct 4 ms 2796 KB Output is correct
145 Correct 3 ms 2924 KB Output is correct
146 Correct 2 ms 2668 KB Output is correct
147 Correct 2 ms 2668 KB Output is correct
148 Correct 2 ms 2668 KB Output is correct
149 Correct 2 ms 2668 KB Output is correct
150 Correct 2 ms 2668 KB Output is correct
151 Correct 2 ms 2668 KB Output is correct
152 Correct 2 ms 2668 KB Output is correct
153 Correct 2 ms 2668 KB Output is correct
154 Correct 2 ms 2668 KB Output is correct
155 Correct 2 ms 2668 KB Output is correct
156 Correct 3 ms 2668 KB Output is correct
157 Correct 2 ms 2668 KB Output is correct
158 Correct 2 ms 2668 KB Output is correct
159 Correct 2 ms 2668 KB Output is correct
160 Correct 2 ms 2668 KB Output is correct
161 Correct 2 ms 2668 KB Output is correct
162 Correct 2 ms 2668 KB Output is correct
163 Correct 2 ms 2668 KB Output is correct
164 Correct 2 ms 2668 KB Output is correct
165 Correct 4 ms 3180 KB Output is correct
166 Correct 4 ms 3308 KB Output is correct
167 Correct 3 ms 2924 KB Output is correct
168 Correct 3 ms 2924 KB Output is correct
169 Correct 4 ms 2924 KB Output is correct
170 Correct 4 ms 2924 KB Output is correct
171 Correct 3 ms 2924 KB Output is correct
172 Correct 3 ms 2924 KB Output is correct
173 Correct 4 ms 2924 KB Output is correct
174 Correct 4 ms 2924 KB Output is correct
175 Incorrect 3 ms 2924 KB Output isn't correct
176 Halted 0 ms 0 KB -