Submission #335955

# Submission time Handle Problem Language Result Execution time Memory
335955 2020-12-14T11:38:50 Z saarang123 Dreaming (IOI13_dreaming) C++14
65 / 100
144 ms 18540 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, {max(d[0] - x[1], 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 76 ms 17260 KB Output is correct
2 Correct 75 ms 17260 KB Output is correct
3 Correct 52 ms 12396 KB Output is correct
4 Correct 10 ms 4844 KB Output is correct
5 Correct 9 ms 3820 KB Output is correct
6 Correct 17 ms 5868 KB Output is correct
7 Correct 2 ms 2668 KB Output is correct
8 Correct 40 ms 7660 KB Output is correct
9 Correct 56 ms 9708 KB Output is correct
10 Correct 3 ms 2796 KB Output is correct
11 Correct 86 ms 12012 KB Output is correct
12 Correct 102 ms 14444 KB Output is correct
13 Correct 3 ms 2816 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 76 ms 17260 KB Output is correct
2 Correct 75 ms 17260 KB Output is correct
3 Correct 52 ms 12396 KB Output is correct
4 Correct 10 ms 4844 KB Output is correct
5 Correct 9 ms 3820 KB Output is correct
6 Correct 17 ms 5868 KB Output is correct
7 Correct 2 ms 2668 KB Output is correct
8 Correct 40 ms 7660 KB Output is correct
9 Correct 56 ms 9708 KB Output is correct
10 Correct 3 ms 2796 KB Output is correct
11 Correct 86 ms 12012 KB Output is correct
12 Correct 102 ms 14444 KB Output is correct
13 Correct 3 ms 2816 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 3 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 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 3 ms 2688 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 2668 KB Output is correct
37 Correct 2 ms 2668 KB Output is correct
38 Correct 2 ms 2668 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 76 ms 17260 KB Output is correct
2 Correct 75 ms 17260 KB Output is correct
3 Correct 52 ms 12396 KB Output is correct
4 Correct 10 ms 4844 KB Output is correct
5 Correct 9 ms 3820 KB Output is correct
6 Correct 17 ms 5868 KB Output is correct
7 Correct 2 ms 2668 KB Output is correct
8 Correct 40 ms 7660 KB Output is correct
9 Correct 56 ms 9708 KB Output is correct
10 Correct 3 ms 2796 KB Output is correct
11 Correct 86 ms 12012 KB Output is correct
12 Correct 102 ms 14444 KB Output is correct
13 Correct 3 ms 2816 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 3 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 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 3 ms 2688 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 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 73 ms 17260 KB Output is correct
40 Correct 82 ms 17132 KB Output is correct
41 Correct 44 ms 12396 KB Output is correct
42 Correct 10 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 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 3 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 2 ms 2668 KB Output is correct
56 Correct 2 ms 2668 KB Output is correct
57 Correct 124 ms 9708 KB Output is correct
58 Correct 119 ms 9964 KB Output is correct
59 Correct 120 ms 9772 KB Output is correct
60 Correct 144 ms 9836 KB Output is correct
61 Correct 124 ms 9884 KB Output is correct
62 Correct 116 ms 9812 KB Output is correct
63 Correct 122 ms 9580 KB Output is correct
64 Correct 121 ms 9548 KB Output is correct
65 Correct 115 ms 9748 KB Output is correct
66 Correct 115 ms 9836 KB Output is correct
67 Correct 118 ms 9836 KB Output is correct
68 Correct 136 ms 9708 KB Output is correct
69 Correct 114 ms 10092 KB Output is correct
70 Correct 133 ms 10092 KB Output is correct
71 Correct 3 ms 2688 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 3056 KB Output is correct
79 Correct 4 ms 2924 KB Output is correct
80 Correct 129 ms 9836 KB Output is correct
81 Correct 121 ms 9836 KB Output is correct
82 Correct 104 ms 9708 KB Output is correct
83 Correct 111 ms 9708 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 4 ms 2924 KB Output is correct
88 Correct 4 ms 2924 KB Output is correct
89 Correct 3 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 3 ms 2668 KB Output is correct
95 Correct 3 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 16 ms 5868 KB Output is correct
106 Correct 2 ms 2668 KB Output is correct
107 Correct 34 ms 7532 KB Output is correct
108 Correct 47 ms 9836 KB Output is correct
109 Correct 3 ms 2796 KB Output is correct
110 Correct 81 ms 11884 KB Output is correct
111 Correct 102 ms 14444 KB Output is correct
112 Correct 3 ms 2796 KB Output is correct
113 Correct 140 ms 18540 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 48 ms 8224 KB Output is correct
2 Correct 49 ms 8212 KB Output is correct
3 Correct 50 ms 8224 KB Output is correct
4 Correct 49 ms 8344 KB Output is correct
5 Correct 51 ms 8348 KB Output is correct
6 Correct 55 ms 9064 KB Output is correct
7 Correct 52 ms 8560 KB Output is correct
8 Correct 50 ms 8116 KB Output is correct
9 Correct 48 ms 8108 KB Output is correct
10 Correct 55 ms 8436 KB Output is correct
11 Correct 2 ms 2688 KB Output is correct
12 Correct 28 ms 8288 KB Output is correct
13 Correct 27 ms 8288 KB Output is correct
14 Correct 28 ms 8288 KB Output is correct
15 Correct 28 ms 8288 KB Output is correct
16 Correct 29 ms 8288 KB Output is correct
17 Correct 30 ms 8416 KB Output is correct
18 Correct 27 ms 8288 KB Output is correct
19 Correct 27 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 28 ms 8288 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 76 ms 17260 KB Output is correct
2 Correct 75 ms 17260 KB Output is correct
3 Correct 52 ms 12396 KB Output is correct
4 Correct 10 ms 4844 KB Output is correct
5 Correct 9 ms 3820 KB Output is correct
6 Correct 17 ms 5868 KB Output is correct
7 Correct 2 ms 2668 KB Output is correct
8 Correct 40 ms 7660 KB Output is correct
9 Correct 56 ms 9708 KB Output is correct
10 Correct 3 ms 2796 KB Output is correct
11 Correct 86 ms 12012 KB Output is correct
12 Correct 102 ms 14444 KB Output is correct
13 Correct 3 ms 2816 KB Output is correct
14 Correct 3 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 3 ms 2796 KB Output is correct
18 Correct 4 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 3 ms 2668 KB Output is correct
27 Correct 2 ms 2668 KB Output is correct
28 Correct 2 ms 2816 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 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 3 ms 2668 KB Output is correct
39 Correct 2 ms 2668 KB Output is correct
40 Correct 3 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 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 76 ms 17260 KB Output is correct
2 Correct 75 ms 17260 KB Output is correct
3 Correct 52 ms 12396 KB Output is correct
4 Correct 10 ms 4844 KB Output is correct
5 Correct 9 ms 3820 KB Output is correct
6 Correct 17 ms 5868 KB Output is correct
7 Correct 2 ms 2668 KB Output is correct
8 Correct 40 ms 7660 KB Output is correct
9 Correct 56 ms 9708 KB Output is correct
10 Correct 3 ms 2796 KB Output is correct
11 Correct 86 ms 12012 KB Output is correct
12 Correct 102 ms 14444 KB Output is correct
13 Correct 3 ms 2816 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 3 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 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 3 ms 2688 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 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 73 ms 17260 KB Output is correct
40 Correct 82 ms 17132 KB Output is correct
41 Correct 44 ms 12396 KB Output is correct
42 Correct 10 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 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 3 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 2 ms 2668 KB Output is correct
56 Correct 2 ms 2668 KB Output is correct
57 Correct 124 ms 9708 KB Output is correct
58 Correct 119 ms 9964 KB Output is correct
59 Correct 120 ms 9772 KB Output is correct
60 Correct 144 ms 9836 KB Output is correct
61 Correct 124 ms 9884 KB Output is correct
62 Correct 116 ms 9812 KB Output is correct
63 Correct 122 ms 9580 KB Output is correct
64 Correct 121 ms 9548 KB Output is correct
65 Correct 115 ms 9748 KB Output is correct
66 Correct 115 ms 9836 KB Output is correct
67 Correct 118 ms 9836 KB Output is correct
68 Correct 136 ms 9708 KB Output is correct
69 Correct 114 ms 10092 KB Output is correct
70 Correct 133 ms 10092 KB Output is correct
71 Correct 3 ms 2688 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 3056 KB Output is correct
79 Correct 4 ms 2924 KB Output is correct
80 Correct 129 ms 9836 KB Output is correct
81 Correct 121 ms 9836 KB Output is correct
82 Correct 104 ms 9708 KB Output is correct
83 Correct 111 ms 9708 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 4 ms 2924 KB Output is correct
88 Correct 4 ms 2924 KB Output is correct
89 Correct 3 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 3 ms 2668 KB Output is correct
95 Correct 3 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 16 ms 5868 KB Output is correct
106 Correct 2 ms 2668 KB Output is correct
107 Correct 34 ms 7532 KB Output is correct
108 Correct 47 ms 9836 KB Output is correct
109 Correct 3 ms 2796 KB Output is correct
110 Correct 81 ms 11884 KB Output is correct
111 Correct 102 ms 14444 KB Output is correct
112 Correct 3 ms 2796 KB Output is correct
113 Correct 140 ms 18540 KB Output is correct
114 Correct 48 ms 8224 KB Output is correct
115 Correct 49 ms 8212 KB Output is correct
116 Correct 50 ms 8224 KB Output is correct
117 Correct 49 ms 8344 KB Output is correct
118 Correct 51 ms 8348 KB Output is correct
119 Correct 55 ms 9064 KB Output is correct
120 Correct 52 ms 8560 KB Output is correct
121 Correct 50 ms 8116 KB Output is correct
122 Correct 48 ms 8108 KB Output is correct
123 Correct 55 ms 8436 KB Output is correct
124 Correct 2 ms 2688 KB Output is correct
125 Correct 28 ms 8288 KB Output is correct
126 Correct 27 ms 8288 KB Output is correct
127 Correct 28 ms 8288 KB Output is correct
128 Correct 28 ms 8288 KB Output is correct
129 Correct 29 ms 8288 KB Output is correct
130 Correct 30 ms 8416 KB Output is correct
131 Correct 27 ms 8288 KB Output is correct
132 Correct 27 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 28 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 3 ms 2924 KB Output is correct
140 Correct 3 ms 2796 KB Output is correct
141 Correct 4 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 3 ms 2668 KB Output is correct
150 Correct 2 ms 2668 KB Output is correct
151 Correct 2 ms 2816 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 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 2 ms 2668 KB Output is correct
160 Correct 2 ms 2668 KB Output is correct
161 Correct 3 ms 2668 KB Output is correct
162 Correct 2 ms 2668 KB Output is correct
163 Correct 3 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 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 -