# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
838002 |
2023-08-26T04:06:24 Z |
gun_gan |
Maze (JOI23_ho_t3) |
C++17 |
|
2000 ms |
215864 KB |
#include <bits/stdc++.h>
using namespace std;
const int MX = 6e6 + 5;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
int N, R, C;
int sc, sr, gc, gr;
string s[MX];
int main() {
cin.tie(0); ios_base::sync_with_stdio(0);
cin >> R >> C >> N;
cin >> sr >> sc >> gr >> gc;
for(int i = 0; i < R; i++) cin >> s[i];
sc--, sr--, gc--, gr--;
vector<vector<int>> dist(R, vector<int>(C, 1e9));
vector<vector<bool>> vis(R, vector<bool>(C));
deque<pair<int,int>> dq;
dq.push_back({sr, sc});
dist[sr][sc] = 0;
while(!dq.empty()) {
auto [x, y] = dq.front(); dq.pop_front();
if(vis[x][y]) continue;
vis[x][y] = 1;
for(int r = max(0, x - N); r <= min(R - 1, x + N); r++) {
for(int c = max(0, y - N); c <= min(C - 1, y + N); c++) {
if((abs(r - x) < N || abs(c - y) < N) && dist[r][c] > dist[x][y] + 1) {
dist[r][c] = dist[x][y] + 1;
dq.push_back({r, c});
}
}
}
for(int k = 0; k < 4; k++) {
int r = x + dx[k], c = y + dy[k];
if(r >= 0 && r < R && c >= 0 && c < C && dist[r][c] > dist[x][y] && s[r][c] == '.') {
dist[r][c] = dist[x][y];
dq.push_front({r, c});
}
}
}
cout << dist[gr][gc] << '\n';
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
78 ms |
188132 KB |
Output is correct |
2 |
Correct |
77 ms |
188160 KB |
Output is correct |
3 |
Correct |
79 ms |
188056 KB |
Output is correct |
4 |
Correct |
78 ms |
188120 KB |
Output is correct |
5 |
Correct |
78 ms |
188124 KB |
Output is correct |
6 |
Correct |
81 ms |
188072 KB |
Output is correct |
7 |
Correct |
82 ms |
188272 KB |
Output is correct |
8 |
Correct |
78 ms |
188072 KB |
Output is correct |
9 |
Correct |
78 ms |
188056 KB |
Output is correct |
10 |
Correct |
92 ms |
188084 KB |
Output is correct |
11 |
Correct |
80 ms |
188168 KB |
Output is correct |
12 |
Correct |
79 ms |
188172 KB |
Output is correct |
13 |
Correct |
98 ms |
188108 KB |
Output is correct |
14 |
Correct |
80 ms |
188092 KB |
Output is correct |
15 |
Correct |
79 ms |
188168 KB |
Output is correct |
16 |
Correct |
83 ms |
188108 KB |
Output is correct |
17 |
Correct |
84 ms |
188256 KB |
Output is correct |
18 |
Correct |
81 ms |
188140 KB |
Output is correct |
19 |
Correct |
82 ms |
188516 KB |
Output is correct |
20 |
Correct |
81 ms |
188604 KB |
Output is correct |
21 |
Correct |
83 ms |
189200 KB |
Output is correct |
22 |
Correct |
92 ms |
188576 KB |
Output is correct |
23 |
Correct |
88 ms |
188492 KB |
Output is correct |
24 |
Correct |
84 ms |
188744 KB |
Output is correct |
25 |
Correct |
85 ms |
188728 KB |
Output is correct |
26 |
Correct |
84 ms |
188564 KB |
Output is correct |
27 |
Correct |
83 ms |
188592 KB |
Output is correct |
28 |
Correct |
85 ms |
188540 KB |
Output is correct |
29 |
Correct |
94 ms |
189040 KB |
Output is correct |
30 |
Correct |
82 ms |
188620 KB |
Output is correct |
31 |
Correct |
87 ms |
190904 KB |
Output is correct |
32 |
Correct |
88 ms |
189064 KB |
Output is correct |
33 |
Correct |
87 ms |
189004 KB |
Output is correct |
34 |
Correct |
86 ms |
189696 KB |
Output is correct |
35 |
Correct |
82 ms |
189756 KB |
Output is correct |
36 |
Correct |
89 ms |
189236 KB |
Output is correct |
37 |
Correct |
89 ms |
189124 KB |
Output is correct |
38 |
Correct |
86 ms |
189136 KB |
Output is correct |
39 |
Correct |
158 ms |
197532 KB |
Output is correct |
40 |
Correct |
88 ms |
189232 KB |
Output is correct |
41 |
Correct |
100 ms |
190024 KB |
Output is correct |
42 |
Correct |
92 ms |
189416 KB |
Output is correct |
43 |
Correct |
93 ms |
190184 KB |
Output is correct |
44 |
Correct |
126 ms |
193260 KB |
Output is correct |
45 |
Correct |
118 ms |
193612 KB |
Output is correct |
46 |
Correct |
156 ms |
215864 KB |
Output is correct |
47 |
Correct |
176 ms |
197512 KB |
Output is correct |
48 |
Correct |
154 ms |
197400 KB |
Output is correct |
49 |
Correct |
124 ms |
203028 KB |
Output is correct |
50 |
Correct |
118 ms |
202872 KB |
Output is correct |
51 |
Correct |
177 ms |
197980 KB |
Output is correct |
52 |
Correct |
169 ms |
197548 KB |
Output is correct |
53 |
Correct |
152 ms |
197452 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
80 ms |
188140 KB |
Output is correct |
2 |
Correct |
80 ms |
188144 KB |
Output is correct |
3 |
Correct |
83 ms |
188108 KB |
Output is correct |
4 |
Correct |
80 ms |
188072 KB |
Output is correct |
5 |
Correct |
81 ms |
188108 KB |
Output is correct |
6 |
Correct |
81 ms |
188108 KB |
Output is correct |
7 |
Correct |
83 ms |
188112 KB |
Output is correct |
8 |
Correct |
80 ms |
188160 KB |
Output is correct |
9 |
Correct |
81 ms |
188104 KB |
Output is correct |
10 |
Correct |
85 ms |
188176 KB |
Output is correct |
11 |
Correct |
81 ms |
188124 KB |
Output is correct |
12 |
Correct |
85 ms |
188168 KB |
Output is correct |
13 |
Correct |
82 ms |
188168 KB |
Output is correct |
14 |
Correct |
82 ms |
188128 KB |
Output is correct |
15 |
Correct |
81 ms |
188120 KB |
Output is correct |
16 |
Correct |
81 ms |
188076 KB |
Output is correct |
17 |
Correct |
81 ms |
188128 KB |
Output is correct |
18 |
Correct |
86 ms |
188236 KB |
Output is correct |
19 |
Correct |
81 ms |
188100 KB |
Output is correct |
20 |
Correct |
81 ms |
188104 KB |
Output is correct |
21 |
Correct |
80 ms |
188140 KB |
Output is correct |
22 |
Correct |
81 ms |
188172 KB |
Output is correct |
23 |
Correct |
81 ms |
188172 KB |
Output is correct |
24 |
Correct |
85 ms |
188200 KB |
Output is correct |
25 |
Correct |
81 ms |
188136 KB |
Output is correct |
26 |
Correct |
87 ms |
188160 KB |
Output is correct |
27 |
Correct |
82 ms |
188168 KB |
Output is correct |
28 |
Correct |
84 ms |
188108 KB |
Output is correct |
29 |
Correct |
83 ms |
188140 KB |
Output is correct |
30 |
Correct |
81 ms |
188136 KB |
Output is correct |
31 |
Correct |
82 ms |
188068 KB |
Output is correct |
32 |
Correct |
85 ms |
188072 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
79 ms |
188040 KB |
Output is correct |
2 |
Correct |
82 ms |
188120 KB |
Output is correct |
3 |
Correct |
81 ms |
188056 KB |
Output is correct |
4 |
Correct |
82 ms |
188056 KB |
Output is correct |
5 |
Correct |
82 ms |
188108 KB |
Output is correct |
6 |
Correct |
80 ms |
188104 KB |
Output is correct |
7 |
Correct |
82 ms |
188108 KB |
Output is correct |
8 |
Correct |
85 ms |
188288 KB |
Output is correct |
9 |
Correct |
82 ms |
188180 KB |
Output is correct |
10 |
Correct |
82 ms |
188176 KB |
Output is correct |
11 |
Correct |
82 ms |
188144 KB |
Output is correct |
12 |
Correct |
81 ms |
188140 KB |
Output is correct |
13 |
Correct |
81 ms |
188128 KB |
Output is correct |
14 |
Correct |
83 ms |
188084 KB |
Output is correct |
15 |
Correct |
81 ms |
188080 KB |
Output is correct |
16 |
Correct |
80 ms |
188068 KB |
Output is correct |
17 |
Correct |
82 ms |
188172 KB |
Output is correct |
18 |
Correct |
80 ms |
188168 KB |
Output is correct |
19 |
Correct |
83 ms |
188272 KB |
Output is correct |
20 |
Correct |
82 ms |
188204 KB |
Output is correct |
21 |
Correct |
80 ms |
188168 KB |
Output is correct |
22 |
Correct |
80 ms |
188084 KB |
Output is correct |
23 |
Correct |
83 ms |
188092 KB |
Output is correct |
24 |
Correct |
88 ms |
188236 KB |
Output is correct |
25 |
Correct |
86 ms |
188332 KB |
Output is correct |
26 |
Correct |
92 ms |
189052 KB |
Output is correct |
27 |
Correct |
85 ms |
189260 KB |
Output is correct |
28 |
Execution timed out |
2099 ms |
189312 KB |
Time limit exceeded |
29 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
80 ms |
188140 KB |
Output is correct |
2 |
Correct |
80 ms |
188144 KB |
Output is correct |
3 |
Correct |
83 ms |
188108 KB |
Output is correct |
4 |
Correct |
80 ms |
188072 KB |
Output is correct |
5 |
Correct |
81 ms |
188108 KB |
Output is correct |
6 |
Correct |
81 ms |
188108 KB |
Output is correct |
7 |
Correct |
83 ms |
188112 KB |
Output is correct |
8 |
Correct |
80 ms |
188160 KB |
Output is correct |
9 |
Correct |
81 ms |
188104 KB |
Output is correct |
10 |
Correct |
85 ms |
188176 KB |
Output is correct |
11 |
Correct |
81 ms |
188124 KB |
Output is correct |
12 |
Correct |
85 ms |
188168 KB |
Output is correct |
13 |
Correct |
82 ms |
188168 KB |
Output is correct |
14 |
Correct |
82 ms |
188128 KB |
Output is correct |
15 |
Correct |
81 ms |
188120 KB |
Output is correct |
16 |
Correct |
81 ms |
188076 KB |
Output is correct |
17 |
Correct |
81 ms |
188128 KB |
Output is correct |
18 |
Correct |
86 ms |
188236 KB |
Output is correct |
19 |
Correct |
81 ms |
188100 KB |
Output is correct |
20 |
Correct |
81 ms |
188104 KB |
Output is correct |
21 |
Correct |
80 ms |
188140 KB |
Output is correct |
22 |
Correct |
81 ms |
188172 KB |
Output is correct |
23 |
Correct |
81 ms |
188172 KB |
Output is correct |
24 |
Correct |
85 ms |
188200 KB |
Output is correct |
25 |
Correct |
81 ms |
188136 KB |
Output is correct |
26 |
Correct |
87 ms |
188160 KB |
Output is correct |
27 |
Correct |
82 ms |
188168 KB |
Output is correct |
28 |
Correct |
84 ms |
188108 KB |
Output is correct |
29 |
Correct |
83 ms |
188140 KB |
Output is correct |
30 |
Correct |
81 ms |
188136 KB |
Output is correct |
31 |
Correct |
82 ms |
188068 KB |
Output is correct |
32 |
Correct |
85 ms |
188072 KB |
Output is correct |
33 |
Correct |
85 ms |
188568 KB |
Output is correct |
34 |
Correct |
83 ms |
188204 KB |
Output is correct |
35 |
Correct |
81 ms |
188192 KB |
Output is correct |
36 |
Correct |
95 ms |
188360 KB |
Output is correct |
37 |
Correct |
83 ms |
188620 KB |
Output is correct |
38 |
Correct |
94 ms |
189052 KB |
Output is correct |
39 |
Correct |
86 ms |
189272 KB |
Output is correct |
40 |
Correct |
84 ms |
188516 KB |
Output is correct |
41 |
Correct |
84 ms |
188548 KB |
Output is correct |
42 |
Execution timed out |
2081 ms |
189260 KB |
Time limit exceeded |
43 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
80 ms |
188140 KB |
Output is correct |
2 |
Correct |
80 ms |
188144 KB |
Output is correct |
3 |
Correct |
83 ms |
188108 KB |
Output is correct |
4 |
Correct |
80 ms |
188072 KB |
Output is correct |
5 |
Correct |
81 ms |
188108 KB |
Output is correct |
6 |
Correct |
81 ms |
188108 KB |
Output is correct |
7 |
Correct |
83 ms |
188112 KB |
Output is correct |
8 |
Correct |
80 ms |
188160 KB |
Output is correct |
9 |
Correct |
81 ms |
188104 KB |
Output is correct |
10 |
Correct |
85 ms |
188176 KB |
Output is correct |
11 |
Correct |
81 ms |
188124 KB |
Output is correct |
12 |
Correct |
85 ms |
188168 KB |
Output is correct |
13 |
Correct |
82 ms |
188168 KB |
Output is correct |
14 |
Correct |
82 ms |
188128 KB |
Output is correct |
15 |
Correct |
81 ms |
188120 KB |
Output is correct |
16 |
Correct |
81 ms |
188076 KB |
Output is correct |
17 |
Correct |
81 ms |
188128 KB |
Output is correct |
18 |
Correct |
86 ms |
188236 KB |
Output is correct |
19 |
Correct |
81 ms |
188100 KB |
Output is correct |
20 |
Correct |
81 ms |
188104 KB |
Output is correct |
21 |
Correct |
80 ms |
188140 KB |
Output is correct |
22 |
Correct |
81 ms |
188172 KB |
Output is correct |
23 |
Correct |
81 ms |
188172 KB |
Output is correct |
24 |
Correct |
85 ms |
188200 KB |
Output is correct |
25 |
Correct |
81 ms |
188136 KB |
Output is correct |
26 |
Correct |
87 ms |
188160 KB |
Output is correct |
27 |
Correct |
82 ms |
188168 KB |
Output is correct |
28 |
Correct |
84 ms |
188108 KB |
Output is correct |
29 |
Correct |
83 ms |
188140 KB |
Output is correct |
30 |
Correct |
81 ms |
188136 KB |
Output is correct |
31 |
Correct |
82 ms |
188068 KB |
Output is correct |
32 |
Correct |
85 ms |
188072 KB |
Output is correct |
33 |
Correct |
85 ms |
188568 KB |
Output is correct |
34 |
Correct |
83 ms |
188204 KB |
Output is correct |
35 |
Correct |
81 ms |
188192 KB |
Output is correct |
36 |
Correct |
95 ms |
188360 KB |
Output is correct |
37 |
Correct |
83 ms |
188620 KB |
Output is correct |
38 |
Correct |
94 ms |
189052 KB |
Output is correct |
39 |
Correct |
86 ms |
189272 KB |
Output is correct |
40 |
Correct |
84 ms |
188516 KB |
Output is correct |
41 |
Correct |
84 ms |
188548 KB |
Output is correct |
42 |
Execution timed out |
2081 ms |
189260 KB |
Time limit exceeded |
43 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
78 ms |
188132 KB |
Output is correct |
2 |
Correct |
77 ms |
188160 KB |
Output is correct |
3 |
Correct |
79 ms |
188056 KB |
Output is correct |
4 |
Correct |
78 ms |
188120 KB |
Output is correct |
5 |
Correct |
78 ms |
188124 KB |
Output is correct |
6 |
Correct |
81 ms |
188072 KB |
Output is correct |
7 |
Correct |
82 ms |
188272 KB |
Output is correct |
8 |
Correct |
78 ms |
188072 KB |
Output is correct |
9 |
Correct |
78 ms |
188056 KB |
Output is correct |
10 |
Correct |
92 ms |
188084 KB |
Output is correct |
11 |
Correct |
80 ms |
188168 KB |
Output is correct |
12 |
Correct |
79 ms |
188172 KB |
Output is correct |
13 |
Correct |
98 ms |
188108 KB |
Output is correct |
14 |
Correct |
80 ms |
188092 KB |
Output is correct |
15 |
Correct |
79 ms |
188168 KB |
Output is correct |
16 |
Correct |
83 ms |
188108 KB |
Output is correct |
17 |
Correct |
84 ms |
188256 KB |
Output is correct |
18 |
Correct |
81 ms |
188140 KB |
Output is correct |
19 |
Correct |
82 ms |
188516 KB |
Output is correct |
20 |
Correct |
81 ms |
188604 KB |
Output is correct |
21 |
Correct |
83 ms |
189200 KB |
Output is correct |
22 |
Correct |
92 ms |
188576 KB |
Output is correct |
23 |
Correct |
88 ms |
188492 KB |
Output is correct |
24 |
Correct |
84 ms |
188744 KB |
Output is correct |
25 |
Correct |
85 ms |
188728 KB |
Output is correct |
26 |
Correct |
84 ms |
188564 KB |
Output is correct |
27 |
Correct |
83 ms |
188592 KB |
Output is correct |
28 |
Correct |
85 ms |
188540 KB |
Output is correct |
29 |
Correct |
94 ms |
189040 KB |
Output is correct |
30 |
Correct |
82 ms |
188620 KB |
Output is correct |
31 |
Correct |
87 ms |
190904 KB |
Output is correct |
32 |
Correct |
88 ms |
189064 KB |
Output is correct |
33 |
Correct |
87 ms |
189004 KB |
Output is correct |
34 |
Correct |
86 ms |
189696 KB |
Output is correct |
35 |
Correct |
82 ms |
189756 KB |
Output is correct |
36 |
Correct |
89 ms |
189236 KB |
Output is correct |
37 |
Correct |
89 ms |
189124 KB |
Output is correct |
38 |
Correct |
86 ms |
189136 KB |
Output is correct |
39 |
Correct |
158 ms |
197532 KB |
Output is correct |
40 |
Correct |
88 ms |
189232 KB |
Output is correct |
41 |
Correct |
100 ms |
190024 KB |
Output is correct |
42 |
Correct |
92 ms |
189416 KB |
Output is correct |
43 |
Correct |
93 ms |
190184 KB |
Output is correct |
44 |
Correct |
126 ms |
193260 KB |
Output is correct |
45 |
Correct |
118 ms |
193612 KB |
Output is correct |
46 |
Correct |
156 ms |
215864 KB |
Output is correct |
47 |
Correct |
176 ms |
197512 KB |
Output is correct |
48 |
Correct |
154 ms |
197400 KB |
Output is correct |
49 |
Correct |
124 ms |
203028 KB |
Output is correct |
50 |
Correct |
118 ms |
202872 KB |
Output is correct |
51 |
Correct |
177 ms |
197980 KB |
Output is correct |
52 |
Correct |
169 ms |
197548 KB |
Output is correct |
53 |
Correct |
152 ms |
197452 KB |
Output is correct |
54 |
Correct |
80 ms |
188140 KB |
Output is correct |
55 |
Correct |
80 ms |
188144 KB |
Output is correct |
56 |
Correct |
83 ms |
188108 KB |
Output is correct |
57 |
Correct |
80 ms |
188072 KB |
Output is correct |
58 |
Correct |
81 ms |
188108 KB |
Output is correct |
59 |
Correct |
81 ms |
188108 KB |
Output is correct |
60 |
Correct |
83 ms |
188112 KB |
Output is correct |
61 |
Correct |
80 ms |
188160 KB |
Output is correct |
62 |
Correct |
81 ms |
188104 KB |
Output is correct |
63 |
Correct |
85 ms |
188176 KB |
Output is correct |
64 |
Correct |
81 ms |
188124 KB |
Output is correct |
65 |
Correct |
85 ms |
188168 KB |
Output is correct |
66 |
Correct |
82 ms |
188168 KB |
Output is correct |
67 |
Correct |
82 ms |
188128 KB |
Output is correct |
68 |
Correct |
81 ms |
188120 KB |
Output is correct |
69 |
Correct |
81 ms |
188076 KB |
Output is correct |
70 |
Correct |
81 ms |
188128 KB |
Output is correct |
71 |
Correct |
86 ms |
188236 KB |
Output is correct |
72 |
Correct |
81 ms |
188100 KB |
Output is correct |
73 |
Correct |
81 ms |
188104 KB |
Output is correct |
74 |
Correct |
80 ms |
188140 KB |
Output is correct |
75 |
Correct |
81 ms |
188172 KB |
Output is correct |
76 |
Correct |
81 ms |
188172 KB |
Output is correct |
77 |
Correct |
85 ms |
188200 KB |
Output is correct |
78 |
Correct |
81 ms |
188136 KB |
Output is correct |
79 |
Correct |
87 ms |
188160 KB |
Output is correct |
80 |
Correct |
82 ms |
188168 KB |
Output is correct |
81 |
Correct |
84 ms |
188108 KB |
Output is correct |
82 |
Correct |
83 ms |
188140 KB |
Output is correct |
83 |
Correct |
81 ms |
188136 KB |
Output is correct |
84 |
Correct |
82 ms |
188068 KB |
Output is correct |
85 |
Correct |
85 ms |
188072 KB |
Output is correct |
86 |
Correct |
79 ms |
188040 KB |
Output is correct |
87 |
Correct |
82 ms |
188120 KB |
Output is correct |
88 |
Correct |
81 ms |
188056 KB |
Output is correct |
89 |
Correct |
82 ms |
188056 KB |
Output is correct |
90 |
Correct |
82 ms |
188108 KB |
Output is correct |
91 |
Correct |
80 ms |
188104 KB |
Output is correct |
92 |
Correct |
82 ms |
188108 KB |
Output is correct |
93 |
Correct |
85 ms |
188288 KB |
Output is correct |
94 |
Correct |
82 ms |
188180 KB |
Output is correct |
95 |
Correct |
82 ms |
188176 KB |
Output is correct |
96 |
Correct |
82 ms |
188144 KB |
Output is correct |
97 |
Correct |
81 ms |
188140 KB |
Output is correct |
98 |
Correct |
81 ms |
188128 KB |
Output is correct |
99 |
Correct |
83 ms |
188084 KB |
Output is correct |
100 |
Correct |
81 ms |
188080 KB |
Output is correct |
101 |
Correct |
80 ms |
188068 KB |
Output is correct |
102 |
Correct |
82 ms |
188172 KB |
Output is correct |
103 |
Correct |
80 ms |
188168 KB |
Output is correct |
104 |
Correct |
83 ms |
188272 KB |
Output is correct |
105 |
Correct |
82 ms |
188204 KB |
Output is correct |
106 |
Correct |
80 ms |
188168 KB |
Output is correct |
107 |
Correct |
80 ms |
188084 KB |
Output is correct |
108 |
Correct |
83 ms |
188092 KB |
Output is correct |
109 |
Correct |
88 ms |
188236 KB |
Output is correct |
110 |
Correct |
86 ms |
188332 KB |
Output is correct |
111 |
Correct |
92 ms |
189052 KB |
Output is correct |
112 |
Correct |
85 ms |
189260 KB |
Output is correct |
113 |
Execution timed out |
2099 ms |
189312 KB |
Time limit exceeded |
114 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
78 ms |
188132 KB |
Output is correct |
2 |
Correct |
77 ms |
188160 KB |
Output is correct |
3 |
Correct |
79 ms |
188056 KB |
Output is correct |
4 |
Correct |
78 ms |
188120 KB |
Output is correct |
5 |
Correct |
78 ms |
188124 KB |
Output is correct |
6 |
Correct |
81 ms |
188072 KB |
Output is correct |
7 |
Correct |
82 ms |
188272 KB |
Output is correct |
8 |
Correct |
78 ms |
188072 KB |
Output is correct |
9 |
Correct |
78 ms |
188056 KB |
Output is correct |
10 |
Correct |
92 ms |
188084 KB |
Output is correct |
11 |
Correct |
80 ms |
188168 KB |
Output is correct |
12 |
Correct |
79 ms |
188172 KB |
Output is correct |
13 |
Correct |
98 ms |
188108 KB |
Output is correct |
14 |
Correct |
80 ms |
188092 KB |
Output is correct |
15 |
Correct |
79 ms |
188168 KB |
Output is correct |
16 |
Correct |
83 ms |
188108 KB |
Output is correct |
17 |
Correct |
84 ms |
188256 KB |
Output is correct |
18 |
Correct |
81 ms |
188140 KB |
Output is correct |
19 |
Correct |
82 ms |
188516 KB |
Output is correct |
20 |
Correct |
81 ms |
188604 KB |
Output is correct |
21 |
Correct |
83 ms |
189200 KB |
Output is correct |
22 |
Correct |
92 ms |
188576 KB |
Output is correct |
23 |
Correct |
88 ms |
188492 KB |
Output is correct |
24 |
Correct |
84 ms |
188744 KB |
Output is correct |
25 |
Correct |
85 ms |
188728 KB |
Output is correct |
26 |
Correct |
84 ms |
188564 KB |
Output is correct |
27 |
Correct |
83 ms |
188592 KB |
Output is correct |
28 |
Correct |
85 ms |
188540 KB |
Output is correct |
29 |
Correct |
94 ms |
189040 KB |
Output is correct |
30 |
Correct |
82 ms |
188620 KB |
Output is correct |
31 |
Correct |
87 ms |
190904 KB |
Output is correct |
32 |
Correct |
88 ms |
189064 KB |
Output is correct |
33 |
Correct |
87 ms |
189004 KB |
Output is correct |
34 |
Correct |
86 ms |
189696 KB |
Output is correct |
35 |
Correct |
82 ms |
189756 KB |
Output is correct |
36 |
Correct |
89 ms |
189236 KB |
Output is correct |
37 |
Correct |
89 ms |
189124 KB |
Output is correct |
38 |
Correct |
86 ms |
189136 KB |
Output is correct |
39 |
Correct |
158 ms |
197532 KB |
Output is correct |
40 |
Correct |
88 ms |
189232 KB |
Output is correct |
41 |
Correct |
100 ms |
190024 KB |
Output is correct |
42 |
Correct |
92 ms |
189416 KB |
Output is correct |
43 |
Correct |
93 ms |
190184 KB |
Output is correct |
44 |
Correct |
126 ms |
193260 KB |
Output is correct |
45 |
Correct |
118 ms |
193612 KB |
Output is correct |
46 |
Correct |
156 ms |
215864 KB |
Output is correct |
47 |
Correct |
176 ms |
197512 KB |
Output is correct |
48 |
Correct |
154 ms |
197400 KB |
Output is correct |
49 |
Correct |
124 ms |
203028 KB |
Output is correct |
50 |
Correct |
118 ms |
202872 KB |
Output is correct |
51 |
Correct |
177 ms |
197980 KB |
Output is correct |
52 |
Correct |
169 ms |
197548 KB |
Output is correct |
53 |
Correct |
152 ms |
197452 KB |
Output is correct |
54 |
Correct |
80 ms |
188140 KB |
Output is correct |
55 |
Correct |
80 ms |
188144 KB |
Output is correct |
56 |
Correct |
83 ms |
188108 KB |
Output is correct |
57 |
Correct |
80 ms |
188072 KB |
Output is correct |
58 |
Correct |
81 ms |
188108 KB |
Output is correct |
59 |
Correct |
81 ms |
188108 KB |
Output is correct |
60 |
Correct |
83 ms |
188112 KB |
Output is correct |
61 |
Correct |
80 ms |
188160 KB |
Output is correct |
62 |
Correct |
81 ms |
188104 KB |
Output is correct |
63 |
Correct |
85 ms |
188176 KB |
Output is correct |
64 |
Correct |
81 ms |
188124 KB |
Output is correct |
65 |
Correct |
85 ms |
188168 KB |
Output is correct |
66 |
Correct |
82 ms |
188168 KB |
Output is correct |
67 |
Correct |
82 ms |
188128 KB |
Output is correct |
68 |
Correct |
81 ms |
188120 KB |
Output is correct |
69 |
Correct |
81 ms |
188076 KB |
Output is correct |
70 |
Correct |
81 ms |
188128 KB |
Output is correct |
71 |
Correct |
86 ms |
188236 KB |
Output is correct |
72 |
Correct |
81 ms |
188100 KB |
Output is correct |
73 |
Correct |
81 ms |
188104 KB |
Output is correct |
74 |
Correct |
80 ms |
188140 KB |
Output is correct |
75 |
Correct |
81 ms |
188172 KB |
Output is correct |
76 |
Correct |
81 ms |
188172 KB |
Output is correct |
77 |
Correct |
85 ms |
188200 KB |
Output is correct |
78 |
Correct |
81 ms |
188136 KB |
Output is correct |
79 |
Correct |
87 ms |
188160 KB |
Output is correct |
80 |
Correct |
82 ms |
188168 KB |
Output is correct |
81 |
Correct |
84 ms |
188108 KB |
Output is correct |
82 |
Correct |
83 ms |
188140 KB |
Output is correct |
83 |
Correct |
81 ms |
188136 KB |
Output is correct |
84 |
Correct |
82 ms |
188068 KB |
Output is correct |
85 |
Correct |
85 ms |
188072 KB |
Output is correct |
86 |
Correct |
79 ms |
188040 KB |
Output is correct |
87 |
Correct |
82 ms |
188120 KB |
Output is correct |
88 |
Correct |
81 ms |
188056 KB |
Output is correct |
89 |
Correct |
82 ms |
188056 KB |
Output is correct |
90 |
Correct |
82 ms |
188108 KB |
Output is correct |
91 |
Correct |
80 ms |
188104 KB |
Output is correct |
92 |
Correct |
82 ms |
188108 KB |
Output is correct |
93 |
Correct |
85 ms |
188288 KB |
Output is correct |
94 |
Correct |
82 ms |
188180 KB |
Output is correct |
95 |
Correct |
82 ms |
188176 KB |
Output is correct |
96 |
Correct |
82 ms |
188144 KB |
Output is correct |
97 |
Correct |
81 ms |
188140 KB |
Output is correct |
98 |
Correct |
81 ms |
188128 KB |
Output is correct |
99 |
Correct |
83 ms |
188084 KB |
Output is correct |
100 |
Correct |
81 ms |
188080 KB |
Output is correct |
101 |
Correct |
80 ms |
188068 KB |
Output is correct |
102 |
Correct |
82 ms |
188172 KB |
Output is correct |
103 |
Correct |
80 ms |
188168 KB |
Output is correct |
104 |
Correct |
83 ms |
188272 KB |
Output is correct |
105 |
Correct |
82 ms |
188204 KB |
Output is correct |
106 |
Correct |
80 ms |
188168 KB |
Output is correct |
107 |
Correct |
80 ms |
188084 KB |
Output is correct |
108 |
Correct |
83 ms |
188092 KB |
Output is correct |
109 |
Correct |
88 ms |
188236 KB |
Output is correct |
110 |
Correct |
86 ms |
188332 KB |
Output is correct |
111 |
Correct |
92 ms |
189052 KB |
Output is correct |
112 |
Correct |
85 ms |
189260 KB |
Output is correct |
113 |
Execution timed out |
2099 ms |
189312 KB |
Time limit exceeded |
114 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
78 ms |
188132 KB |
Output is correct |
2 |
Correct |
77 ms |
188160 KB |
Output is correct |
3 |
Correct |
79 ms |
188056 KB |
Output is correct |
4 |
Correct |
78 ms |
188120 KB |
Output is correct |
5 |
Correct |
78 ms |
188124 KB |
Output is correct |
6 |
Correct |
81 ms |
188072 KB |
Output is correct |
7 |
Correct |
82 ms |
188272 KB |
Output is correct |
8 |
Correct |
78 ms |
188072 KB |
Output is correct |
9 |
Correct |
78 ms |
188056 KB |
Output is correct |
10 |
Correct |
92 ms |
188084 KB |
Output is correct |
11 |
Correct |
80 ms |
188168 KB |
Output is correct |
12 |
Correct |
79 ms |
188172 KB |
Output is correct |
13 |
Correct |
98 ms |
188108 KB |
Output is correct |
14 |
Correct |
80 ms |
188092 KB |
Output is correct |
15 |
Correct |
79 ms |
188168 KB |
Output is correct |
16 |
Correct |
83 ms |
188108 KB |
Output is correct |
17 |
Correct |
84 ms |
188256 KB |
Output is correct |
18 |
Correct |
81 ms |
188140 KB |
Output is correct |
19 |
Correct |
82 ms |
188516 KB |
Output is correct |
20 |
Correct |
81 ms |
188604 KB |
Output is correct |
21 |
Correct |
83 ms |
189200 KB |
Output is correct |
22 |
Correct |
92 ms |
188576 KB |
Output is correct |
23 |
Correct |
88 ms |
188492 KB |
Output is correct |
24 |
Correct |
84 ms |
188744 KB |
Output is correct |
25 |
Correct |
85 ms |
188728 KB |
Output is correct |
26 |
Correct |
84 ms |
188564 KB |
Output is correct |
27 |
Correct |
83 ms |
188592 KB |
Output is correct |
28 |
Correct |
85 ms |
188540 KB |
Output is correct |
29 |
Correct |
94 ms |
189040 KB |
Output is correct |
30 |
Correct |
82 ms |
188620 KB |
Output is correct |
31 |
Correct |
87 ms |
190904 KB |
Output is correct |
32 |
Correct |
88 ms |
189064 KB |
Output is correct |
33 |
Correct |
87 ms |
189004 KB |
Output is correct |
34 |
Correct |
86 ms |
189696 KB |
Output is correct |
35 |
Correct |
82 ms |
189756 KB |
Output is correct |
36 |
Correct |
89 ms |
189236 KB |
Output is correct |
37 |
Correct |
89 ms |
189124 KB |
Output is correct |
38 |
Correct |
86 ms |
189136 KB |
Output is correct |
39 |
Correct |
158 ms |
197532 KB |
Output is correct |
40 |
Correct |
88 ms |
189232 KB |
Output is correct |
41 |
Correct |
100 ms |
190024 KB |
Output is correct |
42 |
Correct |
92 ms |
189416 KB |
Output is correct |
43 |
Correct |
93 ms |
190184 KB |
Output is correct |
44 |
Correct |
126 ms |
193260 KB |
Output is correct |
45 |
Correct |
118 ms |
193612 KB |
Output is correct |
46 |
Correct |
156 ms |
215864 KB |
Output is correct |
47 |
Correct |
176 ms |
197512 KB |
Output is correct |
48 |
Correct |
154 ms |
197400 KB |
Output is correct |
49 |
Correct |
124 ms |
203028 KB |
Output is correct |
50 |
Correct |
118 ms |
202872 KB |
Output is correct |
51 |
Correct |
177 ms |
197980 KB |
Output is correct |
52 |
Correct |
169 ms |
197548 KB |
Output is correct |
53 |
Correct |
152 ms |
197452 KB |
Output is correct |
54 |
Correct |
80 ms |
188140 KB |
Output is correct |
55 |
Correct |
80 ms |
188144 KB |
Output is correct |
56 |
Correct |
83 ms |
188108 KB |
Output is correct |
57 |
Correct |
80 ms |
188072 KB |
Output is correct |
58 |
Correct |
81 ms |
188108 KB |
Output is correct |
59 |
Correct |
81 ms |
188108 KB |
Output is correct |
60 |
Correct |
83 ms |
188112 KB |
Output is correct |
61 |
Correct |
80 ms |
188160 KB |
Output is correct |
62 |
Correct |
81 ms |
188104 KB |
Output is correct |
63 |
Correct |
85 ms |
188176 KB |
Output is correct |
64 |
Correct |
81 ms |
188124 KB |
Output is correct |
65 |
Correct |
85 ms |
188168 KB |
Output is correct |
66 |
Correct |
82 ms |
188168 KB |
Output is correct |
67 |
Correct |
82 ms |
188128 KB |
Output is correct |
68 |
Correct |
81 ms |
188120 KB |
Output is correct |
69 |
Correct |
81 ms |
188076 KB |
Output is correct |
70 |
Correct |
81 ms |
188128 KB |
Output is correct |
71 |
Correct |
86 ms |
188236 KB |
Output is correct |
72 |
Correct |
81 ms |
188100 KB |
Output is correct |
73 |
Correct |
81 ms |
188104 KB |
Output is correct |
74 |
Correct |
80 ms |
188140 KB |
Output is correct |
75 |
Correct |
81 ms |
188172 KB |
Output is correct |
76 |
Correct |
81 ms |
188172 KB |
Output is correct |
77 |
Correct |
85 ms |
188200 KB |
Output is correct |
78 |
Correct |
81 ms |
188136 KB |
Output is correct |
79 |
Correct |
87 ms |
188160 KB |
Output is correct |
80 |
Correct |
82 ms |
188168 KB |
Output is correct |
81 |
Correct |
84 ms |
188108 KB |
Output is correct |
82 |
Correct |
83 ms |
188140 KB |
Output is correct |
83 |
Correct |
81 ms |
188136 KB |
Output is correct |
84 |
Correct |
82 ms |
188068 KB |
Output is correct |
85 |
Correct |
85 ms |
188072 KB |
Output is correct |
86 |
Correct |
79 ms |
188040 KB |
Output is correct |
87 |
Correct |
82 ms |
188120 KB |
Output is correct |
88 |
Correct |
81 ms |
188056 KB |
Output is correct |
89 |
Correct |
82 ms |
188056 KB |
Output is correct |
90 |
Correct |
82 ms |
188108 KB |
Output is correct |
91 |
Correct |
80 ms |
188104 KB |
Output is correct |
92 |
Correct |
82 ms |
188108 KB |
Output is correct |
93 |
Correct |
85 ms |
188288 KB |
Output is correct |
94 |
Correct |
82 ms |
188180 KB |
Output is correct |
95 |
Correct |
82 ms |
188176 KB |
Output is correct |
96 |
Correct |
82 ms |
188144 KB |
Output is correct |
97 |
Correct |
81 ms |
188140 KB |
Output is correct |
98 |
Correct |
81 ms |
188128 KB |
Output is correct |
99 |
Correct |
83 ms |
188084 KB |
Output is correct |
100 |
Correct |
81 ms |
188080 KB |
Output is correct |
101 |
Correct |
80 ms |
188068 KB |
Output is correct |
102 |
Correct |
82 ms |
188172 KB |
Output is correct |
103 |
Correct |
80 ms |
188168 KB |
Output is correct |
104 |
Correct |
83 ms |
188272 KB |
Output is correct |
105 |
Correct |
82 ms |
188204 KB |
Output is correct |
106 |
Correct |
80 ms |
188168 KB |
Output is correct |
107 |
Correct |
80 ms |
188084 KB |
Output is correct |
108 |
Correct |
83 ms |
188092 KB |
Output is correct |
109 |
Correct |
88 ms |
188236 KB |
Output is correct |
110 |
Correct |
86 ms |
188332 KB |
Output is correct |
111 |
Correct |
92 ms |
189052 KB |
Output is correct |
112 |
Correct |
85 ms |
189260 KB |
Output is correct |
113 |
Execution timed out |
2099 ms |
189312 KB |
Time limit exceeded |
114 |
Halted |
0 ms |
0 KB |
- |