Submission #335871

# Submission time Handle Problem Language Result Execution time Memory
335871 2020-12-14T07:20:09 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> x = dfs(i, -1, 0);
        array<int, 2> d = dfs(x[1], -1, 0);
        array<int, 2> v = {d[1], d[0]};
        array<int, 4> ans = {d[0], d[0], 0, d[1]};
        while(v[0] != -1) {
            array<int, 2> x = {v[0], par[v[0]][1]};
            ans = min(ans, {abs(d[0] - 2 * x[1]), d[0] - x[1], x[1], x[0]});
            v = par[v[0]];
        }
        //cout << ans[1] << ' ' << ans[2] << ' ' << ans[3] << '\n';
        cost.push_back({d[0], ans[3]});
    }
    sort(cost.rbegin(), cost.rend());
    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:43: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]
   43 |     for(int i = 1; i < cost.size(); i++) {
      |                    ~~^~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 86 ms 16108 KB Output is correct
2 Correct 73 ms 15980 KB Output is correct
3 Correct 42 ms 11372 KB Output is correct
4 Correct 9 ms 4588 KB Output is correct
5 Correct 8 ms 3692 KB Output is correct
6 Correct 16 ms 5612 KB Output is correct
7 Correct 2 ms 2668 KB Output is correct
8 Correct 36 ms 7020 KB Output is correct
9 Correct 52 ms 9068 KB Output is correct
10 Correct 3 ms 2796 KB Output is correct
11 Correct 94 ms 10752 KB Output is correct
12 Correct 102 ms 13292 KB Output is correct
13 Correct 2 ms 2796 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 86 ms 16108 KB Output is correct
2 Correct 73 ms 15980 KB Output is correct
3 Correct 42 ms 11372 KB Output is correct
4 Correct 9 ms 4588 KB Output is correct
5 Correct 8 ms 3692 KB Output is correct
6 Correct 16 ms 5612 KB Output is correct
7 Correct 2 ms 2668 KB Output is correct
8 Correct 36 ms 7020 KB Output is correct
9 Correct 52 ms 9068 KB Output is correct
10 Correct 3 ms 2796 KB Output is correct
11 Correct 94 ms 10752 KB Output is correct
12 Correct 102 ms 13292 KB Output is correct
13 Correct 2 ms 2796 KB Output is correct
14 Correct 3 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 3 ms 2796 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 2688 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 2 ms 2668 KB Output is correct
34 Correct 2 ms 2668 KB Output is correct
35 Correct 2 ms 2688 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 2688 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 86 ms 16108 KB Output is correct
2 Correct 73 ms 15980 KB Output is correct
3 Correct 42 ms 11372 KB Output is correct
4 Correct 9 ms 4588 KB Output is correct
5 Correct 8 ms 3692 KB Output is correct
6 Correct 16 ms 5612 KB Output is correct
7 Correct 2 ms 2668 KB Output is correct
8 Correct 36 ms 7020 KB Output is correct
9 Correct 52 ms 9068 KB Output is correct
10 Correct 3 ms 2796 KB Output is correct
11 Correct 94 ms 10752 KB Output is correct
12 Correct 102 ms 13292 KB Output is correct
13 Correct 2 ms 2796 KB Output is correct
14 Correct 3 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 3 ms 2796 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 2688 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 2 ms 2668 KB Output is correct
34 Correct 2 ms 2668 KB Output is correct
35 Correct 2 ms 2688 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 2688 KB Output is correct
39 Correct 72 ms 15980 KB Output is correct
40 Correct 81 ms 15980 KB Output is correct
41 Correct 52 ms 11372 KB Output is correct
42 Correct 9 ms 4588 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 2668 KB Output is correct
46 Correct 2 ms 2668 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 3 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 2688 KB Output is correct
56 Correct 2 ms 2668 KB Output is correct
57 Correct 108 ms 8684 KB Output is correct
58 Correct 124 ms 8684 KB Output is correct
59 Correct 113 ms 8684 KB Output is correct
60 Correct 136 ms 8684 KB Output is correct
61 Correct 114 ms 8556 KB Output is correct
62 Correct 107 ms 8556 KB Output is correct
63 Correct 98 ms 8428 KB Output is correct
64 Correct 102 ms 8428 KB Output is correct
65 Correct 105 ms 8428 KB Output is correct
66 Correct 103 ms 8428 KB Output is correct
67 Correct 125 ms 8684 KB Output is correct
68 Correct 112 ms 8688 KB Output is correct
69 Correct 121 ms 8812 KB Output is correct
70 Correct 113 ms 8684 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 4 ms 2924 KB Output is correct
78 Correct 4 ms 2924 KB Output is correct
79 Correct 4 ms 2924 KB Output is correct
80 Correct 132 ms 8644 KB Output is correct
81 Correct 128 ms 8628 KB Output is correct
82 Correct 119 ms 8556 KB Output is correct
83 Correct 114 ms 8556 KB Output is correct
84 Correct 3 ms 2796 KB Output is correct
85 Correct 3 ms 2796 KB Output is correct
86 Correct 3 ms 2796 KB Output is correct
87 Correct 4 ms 2796 KB Output is correct
88 Correct 4 ms 2796 KB Output is correct
89 Correct 3 ms 2796 KB Output is correct
90 Correct 4 ms 2796 KB Output is correct
91 Correct 5 ms 2924 KB Output is correct
92 Correct 5 ms 2796 KB Output is correct
93 Correct 3 ms 2796 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 3 ms 2668 KB Output is correct
98 Correct 2 ms 2668 KB Output is correct
99 Correct 3 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 3 ms 2668 KB Output is correct
104 Correct 9 ms 3692 KB Output is correct
105 Correct 21 ms 5612 KB Output is correct
106 Correct 2 ms 2668 KB Output is correct
107 Correct 38 ms 7004 KB Output is correct
108 Correct 52 ms 9068 KB Output is correct
109 Correct 3 ms 2796 KB Output is correct
110 Correct 89 ms 10732 KB Output is correct
111 Correct 114 ms 13292 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 58 ms 7840 KB Output is correct
2 Correct 50 ms 7828 KB Output is correct
3 Correct 50 ms 7840 KB Output is correct
4 Correct 51 ms 7832 KB Output is correct
5 Correct 48 ms 7708 KB Output is correct
6 Correct 55 ms 8572 KB Output is correct
7 Correct 53 ms 8048 KB Output is correct
8 Correct 49 ms 7732 KB Output is correct
9 Correct 47 ms 7596 KB Output is correct
10 Correct 52 ms 7924 KB Output is correct
11 Correct 2 ms 2668 KB Output is correct
12 Correct 40 ms 8288 KB Output is correct
13 Correct 32 ms 8288 KB Output is correct
14 Correct 28 ms 8244 KB Output is correct
15 Correct 27 ms 8288 KB Output is correct
16 Correct 29 ms 8288 KB Output is correct
17 Correct 38 ms 8288 KB Output is correct
18 Correct 30 ms 8436 KB Output is correct
19 Correct 29 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 41 ms 8288 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 86 ms 16108 KB Output is correct
2 Correct 73 ms 15980 KB Output is correct
3 Correct 42 ms 11372 KB Output is correct
4 Correct 9 ms 4588 KB Output is correct
5 Correct 8 ms 3692 KB Output is correct
6 Correct 16 ms 5612 KB Output is correct
7 Correct 2 ms 2668 KB Output is correct
8 Correct 36 ms 7020 KB Output is correct
9 Correct 52 ms 9068 KB Output is correct
10 Correct 3 ms 2796 KB Output is correct
11 Correct 94 ms 10752 KB Output is correct
12 Correct 102 ms 13292 KB Output is correct
13 Correct 2 ms 2796 KB Output is correct
14 Correct 4 ms 2796 KB Output is correct
15 Correct 3 ms 2796 KB Output is correct
16 Correct 3 ms 2924 KB Output is correct
17 Correct 2 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 2 ms 2796 KB Output is correct
21 Correct 3 ms 2796 KB Output is correct
22 Correct 4 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 3 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 3 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 2796 KB Output is correct
42 Correct 4 ms 3180 KB Output is correct
43 Correct 4 ms 3180 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 3072 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 86 ms 16108 KB Output is correct
2 Correct 73 ms 15980 KB Output is correct
3 Correct 42 ms 11372 KB Output is correct
4 Correct 9 ms 4588 KB Output is correct
5 Correct 8 ms 3692 KB Output is correct
6 Correct 16 ms 5612 KB Output is correct
7 Correct 2 ms 2668 KB Output is correct
8 Correct 36 ms 7020 KB Output is correct
9 Correct 52 ms 9068 KB Output is correct
10 Correct 3 ms 2796 KB Output is correct
11 Correct 94 ms 10752 KB Output is correct
12 Correct 102 ms 13292 KB Output is correct
13 Correct 2 ms 2796 KB Output is correct
14 Correct 3 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 3 ms 2796 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 2688 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 2 ms 2668 KB Output is correct
34 Correct 2 ms 2668 KB Output is correct
35 Correct 2 ms 2688 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 2688 KB Output is correct
39 Correct 72 ms 15980 KB Output is correct
40 Correct 81 ms 15980 KB Output is correct
41 Correct 52 ms 11372 KB Output is correct
42 Correct 9 ms 4588 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 2668 KB Output is correct
46 Correct 2 ms 2668 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 3 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 2688 KB Output is correct
56 Correct 2 ms 2668 KB Output is correct
57 Correct 108 ms 8684 KB Output is correct
58 Correct 124 ms 8684 KB Output is correct
59 Correct 113 ms 8684 KB Output is correct
60 Correct 136 ms 8684 KB Output is correct
61 Correct 114 ms 8556 KB Output is correct
62 Correct 107 ms 8556 KB Output is correct
63 Correct 98 ms 8428 KB Output is correct
64 Correct 102 ms 8428 KB Output is correct
65 Correct 105 ms 8428 KB Output is correct
66 Correct 103 ms 8428 KB Output is correct
67 Correct 125 ms 8684 KB Output is correct
68 Correct 112 ms 8688 KB Output is correct
69 Correct 121 ms 8812 KB Output is correct
70 Correct 113 ms 8684 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 4 ms 2924 KB Output is correct
78 Correct 4 ms 2924 KB Output is correct
79 Correct 4 ms 2924 KB Output is correct
80 Correct 132 ms 8644 KB Output is correct
81 Correct 128 ms 8628 KB Output is correct
82 Correct 119 ms 8556 KB Output is correct
83 Correct 114 ms 8556 KB Output is correct
84 Correct 3 ms 2796 KB Output is correct
85 Correct 3 ms 2796 KB Output is correct
86 Correct 3 ms 2796 KB Output is correct
87 Correct 4 ms 2796 KB Output is correct
88 Correct 4 ms 2796 KB Output is correct
89 Correct 3 ms 2796 KB Output is correct
90 Correct 4 ms 2796 KB Output is correct
91 Correct 5 ms 2924 KB Output is correct
92 Correct 5 ms 2796 KB Output is correct
93 Correct 3 ms 2796 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 3 ms 2668 KB Output is correct
98 Correct 2 ms 2668 KB Output is correct
99 Correct 3 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 3 ms 2668 KB Output is correct
104 Correct 9 ms 3692 KB Output is correct
105 Correct 21 ms 5612 KB Output is correct
106 Correct 2 ms 2668 KB Output is correct
107 Correct 38 ms 7004 KB Output is correct
108 Correct 52 ms 9068 KB Output is correct
109 Correct 3 ms 2796 KB Output is correct
110 Correct 89 ms 10732 KB Output is correct
111 Correct 114 ms 13292 KB Output is correct
112 Correct 3 ms 2796 KB Output is correct
113 Correct 146 ms 17260 KB Output is correct
114 Correct 58 ms 7840 KB Output is correct
115 Correct 50 ms 7828 KB Output is correct
116 Correct 50 ms 7840 KB Output is correct
117 Correct 51 ms 7832 KB Output is correct
118 Correct 48 ms 7708 KB Output is correct
119 Correct 55 ms 8572 KB Output is correct
120 Correct 53 ms 8048 KB Output is correct
121 Correct 49 ms 7732 KB Output is correct
122 Correct 47 ms 7596 KB Output is correct
123 Correct 52 ms 7924 KB Output is correct
124 Correct 2 ms 2668 KB Output is correct
125 Correct 40 ms 8288 KB Output is correct
126 Correct 32 ms 8288 KB Output is correct
127 Correct 28 ms 8244 KB Output is correct
128 Correct 27 ms 8288 KB Output is correct
129 Correct 29 ms 8288 KB Output is correct
130 Correct 38 ms 8288 KB Output is correct
131 Correct 30 ms 8436 KB Output is correct
132 Correct 29 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 41 ms 8288 KB Output is correct
137 Correct 4 ms 2796 KB Output is correct
138 Correct 3 ms 2796 KB Output is correct
139 Correct 3 ms 2924 KB Output is correct
140 Correct 2 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 2 ms 2796 KB Output is correct
144 Correct 3 ms 2796 KB Output is correct
145 Correct 4 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 3 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 2 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 3 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 2796 KB Output is correct
165 Correct 4 ms 3180 KB Output is correct
166 Correct 4 ms 3180 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 3072 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 -