Submission #1105284

# Submission time Handle Problem Language Result Execution time Memory
1105284 2024-10-26T03:18:10 Z vjudge1 Maze (JOI23_ho_t3) C++17
100 / 100
1587 ms 288328 KB
#include <bits/stdc++.h>

	 

	// #define int int64_t

	 

	const int kMaxT = 6e6 + 5, kMaxN = 3e3 + 5;

	const int kD4[][2] = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};

	const int kD8[][2] = {{1, 1}, {1, -1}, {-1, 1}, {-1, -1}, {0, 1}, {0, -1}, {1, 0}, {-1, 0}};

	 

	int n, m, k;

	int sx, sy, tx, ty;

	std::vector<int> G[kMaxT];

	std::string s[kMaxN];

	 

	void dijkstra() {

	  std::vector<std::vector<std::pair<int, int>>> dis(n + 1, std::vector<std::pair<int, int>>(m + 1));

	  std::vector<std::vector<bool>> vis(n + 1, std::vector<bool>(m + 1));

	  std::priority_queue<std::tuple<int, int, int, int>> q;

	  for (int i = 1; i <= n; ++i)

	    for (int j = 1; j <= m; ++j)

	      dis[i][j] = {1e9, 1e9};

	  dis[sx][sy] = {0, k - 1};

	  q.emplace(0, -(k - 1), sx, sy);

	  for (; !q.empty();) {

	    auto [d, w, x, y] = q.top();

	    q.pop();

	    if (vis[x][y]) continue;

	    vis[x][y] = 1;

	    for (auto [dx, dy] : kD4) {

	      int tx = x + dx, ty = y + dy;

	      if (tx < 1 || tx > n || ty < 1 || ty > m) continue;

	      if (s[tx][ty] == '.') {

	        std::pair<int, int> p = {dis[x][y].first, k - 1};

	        if (dis[tx][ty] > p) {

	          dis[tx][ty] = p;

	          q.emplace(-p.first, -p.second, tx, ty);

	        }

	      }

	      std::pair<int, int> p = {dis[x][y].first + 1, 0};

	      if (dis[tx][ty] > p) {

	        dis[tx][ty] = p;

	        q.emplace(-p.first, -p.second, tx, ty);

	      }

	    }

	    if (dis[x][y].second < k - 1) {

	      for (auto [dx, dy] : kD8) {

	        int tx = x + dx, ty = y + dy;

	        if (tx < 1 || tx > n || ty < 1 || ty > m) continue;

	        std::pair<int, int> p = {dis[x][y].first, dis[x][y].second + 1};

	        if (dis[tx][ty] > p) {

	          dis[tx][ty] = p;

	          q.emplace(-p.first, -p.second, tx, ty);

	        }

	      }

	    }

	  }

	  std::cout << dis[tx][ty].first << '\n';

	}

	 

	void dickdreamer() {

	  std::cin >> n >> m >> k >> sx >> sy >> tx >> ty;

	  for (int i = 1; i <= n; ++i) {

	    std::cin >> s[i];

	    s[i] = " " + s[i];

	  }

	  dijkstra();

	}

	 

	int32_t main() {

	#ifdef ORZXKR

	  freopen("in.txt", "r", stdin);

	  freopen("out.txt", "w", stdout);

	#endif

	  std::ios::sync_with_stdio(0), std::cin.tie(0), std::cout.tie(0);

	  int T = 1;

	  // std::cin >> T;

	  while (T--) dickdreamer();

	  // std::cerr << 1.0 * clock() / CLOCKS_PER_SEC << "s\n";

	  return 0;

	}
# Verdict Execution time Memory Grader output
1 Correct 26 ms 141392 KB Output is correct
2 Correct 24 ms 141392 KB Output is correct
3 Correct 25 ms 141392 KB Output is correct
4 Correct 23 ms 141392 KB Output is correct
5 Correct 23 ms 141392 KB Output is correct
6 Correct 24 ms 141392 KB Output is correct
7 Correct 24 ms 141392 KB Output is correct
8 Correct 26 ms 141436 KB Output is correct
9 Correct 23 ms 141224 KB Output is correct
10 Correct 23 ms 141392 KB Output is correct
11 Correct 24 ms 141392 KB Output is correct
12 Correct 25 ms 141392 KB Output is correct
13 Correct 25 ms 141392 KB Output is correct
14 Correct 23 ms 141392 KB Output is correct
15 Correct 25 ms 141648 KB Output is correct
16 Correct 29 ms 141392 KB Output is correct
17 Correct 25 ms 141392 KB Output is correct
18 Correct 25 ms 141404 KB Output is correct
19 Correct 32 ms 142144 KB Output is correct
20 Correct 30 ms 142492 KB Output is correct
21 Correct 31 ms 141904 KB Output is correct
22 Correct 39 ms 141904 KB Output is correct
23 Correct 32 ms 141904 KB Output is correct
24 Correct 29 ms 142920 KB Output is correct
25 Correct 27 ms 142928 KB Output is correct
26 Correct 37 ms 142160 KB Output is correct
27 Correct 39 ms 141984 KB Output is correct
28 Correct 37 ms 142016 KB Output is correct
29 Correct 42 ms 143004 KB Output is correct
30 Correct 30 ms 142416 KB Output is correct
31 Correct 43 ms 142892 KB Output is correct
32 Correct 49 ms 142672 KB Output is correct
33 Correct 39 ms 142760 KB Output is correct
34 Correct 31 ms 145224 KB Output is correct
35 Correct 30 ms 145236 KB Output is correct
36 Correct 52 ms 142928 KB Output is correct
37 Correct 50 ms 143184 KB Output is correct
38 Correct 44 ms 142988 KB Output is correct
39 Correct 238 ms 156488 KB Output is correct
40 Correct 49 ms 142928 KB Output is correct
41 Correct 33 ms 146268 KB Output is correct
42 Correct 60 ms 143184 KB Output is correct
43 Correct 37 ms 145608 KB Output is correct
44 Correct 127 ms 150684 KB Output is correct
45 Correct 83 ms 152116 KB Output is correct
46 Correct 238 ms 156364 KB Output is correct
47 Correct 285 ms 156640 KB Output is correct
48 Correct 212 ms 154960 KB Output is correct
49 Correct 93 ms 178220 KB Output is correct
50 Correct 81 ms 179248 KB Output is correct
51 Correct 341 ms 157132 KB Output is correct
52 Correct 323 ms 156400 KB Output is correct
53 Correct 266 ms 156488 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 23 ms 141392 KB Output is correct
2 Correct 24 ms 141216 KB Output is correct
3 Correct 25 ms 141392 KB Output is correct
4 Correct 26 ms 141392 KB Output is correct
5 Correct 24 ms 141392 KB Output is correct
6 Correct 25 ms 141456 KB Output is correct
7 Correct 30 ms 141392 KB Output is correct
8 Correct 28 ms 141384 KB Output is correct
9 Correct 29 ms 141560 KB Output is correct
10 Correct 30 ms 141404 KB Output is correct
11 Correct 32 ms 141392 KB Output is correct
12 Correct 37 ms 141384 KB Output is correct
13 Correct 36 ms 141300 KB Output is correct
14 Correct 34 ms 141344 KB Output is correct
15 Correct 32 ms 141384 KB Output is correct
16 Correct 24 ms 141392 KB Output is correct
17 Correct 26 ms 141260 KB Output is correct
18 Correct 25 ms 141392 KB Output is correct
19 Correct 24 ms 141472 KB Output is correct
20 Correct 26 ms 141392 KB Output is correct
21 Correct 25 ms 141272 KB Output is correct
22 Correct 24 ms 141280 KB Output is correct
23 Correct 24 ms 141392 KB Output is correct
24 Correct 27 ms 141392 KB Output is correct
25 Correct 26 ms 141412 KB Output is correct
26 Correct 25 ms 141276 KB Output is correct
27 Correct 23 ms 141276 KB Output is correct
28 Correct 31 ms 141392 KB Output is correct
29 Correct 29 ms 141392 KB Output is correct
30 Correct 24 ms 141392 KB Output is correct
31 Correct 48 ms 141480 KB Output is correct
32 Correct 49 ms 141384 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 26 ms 141640 KB Output is correct
2 Correct 24 ms 141404 KB Output is correct
3 Correct 24 ms 141392 KB Output is correct
4 Correct 26 ms 141392 KB Output is correct
5 Correct 23 ms 141392 KB Output is correct
6 Correct 23 ms 141276 KB Output is correct
7 Correct 26 ms 141392 KB Output is correct
8 Correct 27 ms 141392 KB Output is correct
9 Correct 24 ms 141392 KB Output is correct
10 Correct 28 ms 141408 KB Output is correct
11 Correct 26 ms 141392 KB Output is correct
12 Correct 26 ms 141392 KB Output is correct
13 Correct 25 ms 141392 KB Output is correct
14 Correct 23 ms 141392 KB Output is correct
15 Correct 25 ms 141392 KB Output is correct
16 Correct 27 ms 141304 KB Output is correct
17 Correct 24 ms 141460 KB Output is correct
18 Correct 30 ms 141452 KB Output is correct
19 Correct 32 ms 141392 KB Output is correct
20 Correct 34 ms 141224 KB Output is correct
21 Correct 33 ms 141652 KB Output is correct
22 Correct 28 ms 141384 KB Output is correct
23 Correct 27 ms 141468 KB Output is correct
24 Correct 27 ms 141392 KB Output is correct
25 Correct 46 ms 141768 KB Output is correct
26 Correct 35 ms 142152 KB Output is correct
27 Correct 31 ms 141904 KB Output is correct
28 Correct 39 ms 141904 KB Output is correct
29 Correct 35 ms 142032 KB Output is correct
30 Correct 38 ms 142136 KB Output is correct
31 Correct 42 ms 142040 KB Output is correct
32 Correct 49 ms 142160 KB Output is correct
33 Correct 44 ms 142160 KB Output is correct
34 Correct 57 ms 143300 KB Output is correct
35 Correct 49 ms 143036 KB Output is correct
36 Correct 44 ms 143016 KB Output is correct
37 Correct 64 ms 142952 KB Output is correct
38 Correct 61 ms 142664 KB Output is correct
39 Correct 111 ms 148924 KB Output is correct
40 Correct 282 ms 162476 KB Output is correct
41 Correct 248 ms 155656 KB Output is correct
42 Correct 219 ms 155340 KB Output is correct
43 Correct 262 ms 156700 KB Output is correct
44 Correct 243 ms 155208 KB Output is correct
45 Correct 379 ms 165472 KB Output is correct
46 Correct 398 ms 166932 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 23 ms 141392 KB Output is correct
2 Correct 24 ms 141216 KB Output is correct
3 Correct 25 ms 141392 KB Output is correct
4 Correct 26 ms 141392 KB Output is correct
5 Correct 24 ms 141392 KB Output is correct
6 Correct 25 ms 141456 KB Output is correct
7 Correct 30 ms 141392 KB Output is correct
8 Correct 28 ms 141384 KB Output is correct
9 Correct 29 ms 141560 KB Output is correct
10 Correct 30 ms 141404 KB Output is correct
11 Correct 32 ms 141392 KB Output is correct
12 Correct 37 ms 141384 KB Output is correct
13 Correct 36 ms 141300 KB Output is correct
14 Correct 34 ms 141344 KB Output is correct
15 Correct 32 ms 141384 KB Output is correct
16 Correct 24 ms 141392 KB Output is correct
17 Correct 26 ms 141260 KB Output is correct
18 Correct 25 ms 141392 KB Output is correct
19 Correct 24 ms 141472 KB Output is correct
20 Correct 26 ms 141392 KB Output is correct
21 Correct 25 ms 141272 KB Output is correct
22 Correct 24 ms 141280 KB Output is correct
23 Correct 24 ms 141392 KB Output is correct
24 Correct 27 ms 141392 KB Output is correct
25 Correct 26 ms 141412 KB Output is correct
26 Correct 25 ms 141276 KB Output is correct
27 Correct 23 ms 141276 KB Output is correct
28 Correct 31 ms 141392 KB Output is correct
29 Correct 29 ms 141392 KB Output is correct
30 Correct 24 ms 141392 KB Output is correct
31 Correct 48 ms 141480 KB Output is correct
32 Correct 49 ms 141384 KB Output is correct
33 Correct 31 ms 141904 KB Output is correct
34 Correct 25 ms 141564 KB Output is correct
35 Correct 26 ms 141392 KB Output is correct
36 Correct 33 ms 141648 KB Output is correct
37 Correct 47 ms 142624 KB Output is correct
38 Correct 52 ms 142284 KB Output is correct
39 Correct 50 ms 141896 KB Output is correct
40 Correct 61 ms 141896 KB Output is correct
41 Correct 50 ms 141968 KB Output is correct
42 Correct 31 ms 141904 KB Output is correct
43 Correct 35 ms 142076 KB Output is correct
44 Correct 41 ms 141924 KB Output is correct
45 Correct 27 ms 142940 KB Output is correct
46 Correct 34 ms 142920 KB Output is correct
47 Correct 33 ms 142416 KB Output is correct
48 Correct 50 ms 142152 KB Output is correct
49 Correct 43 ms 142008 KB Output is correct
50 Correct 44 ms 141904 KB Output is correct
51 Correct 41 ms 141916 KB Output is correct
52 Correct 42 ms 142192 KB Output is correct
53 Correct 55 ms 141896 KB Output is correct
54 Correct 49 ms 141968 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 23 ms 141392 KB Output is correct
2 Correct 24 ms 141216 KB Output is correct
3 Correct 25 ms 141392 KB Output is correct
4 Correct 26 ms 141392 KB Output is correct
5 Correct 24 ms 141392 KB Output is correct
6 Correct 25 ms 141456 KB Output is correct
7 Correct 30 ms 141392 KB Output is correct
8 Correct 28 ms 141384 KB Output is correct
9 Correct 29 ms 141560 KB Output is correct
10 Correct 30 ms 141404 KB Output is correct
11 Correct 32 ms 141392 KB Output is correct
12 Correct 37 ms 141384 KB Output is correct
13 Correct 36 ms 141300 KB Output is correct
14 Correct 34 ms 141344 KB Output is correct
15 Correct 32 ms 141384 KB Output is correct
16 Correct 24 ms 141392 KB Output is correct
17 Correct 26 ms 141260 KB Output is correct
18 Correct 25 ms 141392 KB Output is correct
19 Correct 24 ms 141472 KB Output is correct
20 Correct 26 ms 141392 KB Output is correct
21 Correct 25 ms 141272 KB Output is correct
22 Correct 24 ms 141280 KB Output is correct
23 Correct 24 ms 141392 KB Output is correct
24 Correct 27 ms 141392 KB Output is correct
25 Correct 26 ms 141412 KB Output is correct
26 Correct 25 ms 141276 KB Output is correct
27 Correct 23 ms 141276 KB Output is correct
28 Correct 31 ms 141392 KB Output is correct
29 Correct 29 ms 141392 KB Output is correct
30 Correct 24 ms 141392 KB Output is correct
31 Correct 48 ms 141480 KB Output is correct
32 Correct 49 ms 141384 KB Output is correct
33 Correct 31 ms 141904 KB Output is correct
34 Correct 25 ms 141564 KB Output is correct
35 Correct 26 ms 141392 KB Output is correct
36 Correct 33 ms 141648 KB Output is correct
37 Correct 47 ms 142624 KB Output is correct
38 Correct 52 ms 142284 KB Output is correct
39 Correct 50 ms 141896 KB Output is correct
40 Correct 61 ms 141896 KB Output is correct
41 Correct 50 ms 141968 KB Output is correct
42 Correct 31 ms 141904 KB Output is correct
43 Correct 35 ms 142076 KB Output is correct
44 Correct 41 ms 141924 KB Output is correct
45 Correct 27 ms 142940 KB Output is correct
46 Correct 34 ms 142920 KB Output is correct
47 Correct 33 ms 142416 KB Output is correct
48 Correct 50 ms 142152 KB Output is correct
49 Correct 43 ms 142008 KB Output is correct
50 Correct 44 ms 141904 KB Output is correct
51 Correct 41 ms 141916 KB Output is correct
52 Correct 42 ms 142192 KB Output is correct
53 Correct 55 ms 141896 KB Output is correct
54 Correct 49 ms 141968 KB Output is correct
55 Correct 67 ms 142828 KB Output is correct
56 Correct 51 ms 142408 KB Output is correct
57 Correct 58 ms 143048 KB Output is correct
58 Correct 57 ms 142668 KB Output is correct
59 Correct 50 ms 142888 KB Output is correct
60 Correct 57 ms 142860 KB Output is correct
61 Correct 53 ms 142996 KB Output is correct
62 Correct 53 ms 142988 KB Output is correct
63 Correct 55 ms 142920 KB Output is correct
64 Correct 49 ms 142900 KB Output is correct
65 Correct 33 ms 145312 KB Output is correct
66 Correct 34 ms 145224 KB Output is correct
67 Correct 40 ms 144116 KB Output is correct
68 Correct 51 ms 142768 KB Output is correct
69 Correct 59 ms 142844 KB Output is correct
70 Correct 45 ms 142928 KB Output is correct
71 Correct 46 ms 142852 KB Output is correct
72 Correct 54 ms 143184 KB Output is correct
73 Correct 52 ms 143140 KB Output is correct
74 Correct 43 ms 142672 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 26 ms 141392 KB Output is correct
2 Correct 24 ms 141392 KB Output is correct
3 Correct 25 ms 141392 KB Output is correct
4 Correct 23 ms 141392 KB Output is correct
5 Correct 23 ms 141392 KB Output is correct
6 Correct 24 ms 141392 KB Output is correct
7 Correct 24 ms 141392 KB Output is correct
8 Correct 26 ms 141436 KB Output is correct
9 Correct 23 ms 141224 KB Output is correct
10 Correct 23 ms 141392 KB Output is correct
11 Correct 24 ms 141392 KB Output is correct
12 Correct 25 ms 141392 KB Output is correct
13 Correct 25 ms 141392 KB Output is correct
14 Correct 23 ms 141392 KB Output is correct
15 Correct 25 ms 141648 KB Output is correct
16 Correct 29 ms 141392 KB Output is correct
17 Correct 25 ms 141392 KB Output is correct
18 Correct 25 ms 141404 KB Output is correct
19 Correct 32 ms 142144 KB Output is correct
20 Correct 30 ms 142492 KB Output is correct
21 Correct 31 ms 141904 KB Output is correct
22 Correct 39 ms 141904 KB Output is correct
23 Correct 32 ms 141904 KB Output is correct
24 Correct 29 ms 142920 KB Output is correct
25 Correct 27 ms 142928 KB Output is correct
26 Correct 37 ms 142160 KB Output is correct
27 Correct 39 ms 141984 KB Output is correct
28 Correct 37 ms 142016 KB Output is correct
29 Correct 42 ms 143004 KB Output is correct
30 Correct 30 ms 142416 KB Output is correct
31 Correct 43 ms 142892 KB Output is correct
32 Correct 49 ms 142672 KB Output is correct
33 Correct 39 ms 142760 KB Output is correct
34 Correct 31 ms 145224 KB Output is correct
35 Correct 30 ms 145236 KB Output is correct
36 Correct 52 ms 142928 KB Output is correct
37 Correct 50 ms 143184 KB Output is correct
38 Correct 44 ms 142988 KB Output is correct
39 Correct 238 ms 156488 KB Output is correct
40 Correct 49 ms 142928 KB Output is correct
41 Correct 33 ms 146268 KB Output is correct
42 Correct 60 ms 143184 KB Output is correct
43 Correct 37 ms 145608 KB Output is correct
44 Correct 127 ms 150684 KB Output is correct
45 Correct 83 ms 152116 KB Output is correct
46 Correct 238 ms 156364 KB Output is correct
47 Correct 285 ms 156640 KB Output is correct
48 Correct 212 ms 154960 KB Output is correct
49 Correct 93 ms 178220 KB Output is correct
50 Correct 81 ms 179248 KB Output is correct
51 Correct 341 ms 157132 KB Output is correct
52 Correct 323 ms 156400 KB Output is correct
53 Correct 266 ms 156488 KB Output is correct
54 Correct 23 ms 141392 KB Output is correct
55 Correct 24 ms 141216 KB Output is correct
56 Correct 25 ms 141392 KB Output is correct
57 Correct 26 ms 141392 KB Output is correct
58 Correct 24 ms 141392 KB Output is correct
59 Correct 25 ms 141456 KB Output is correct
60 Correct 30 ms 141392 KB Output is correct
61 Correct 28 ms 141384 KB Output is correct
62 Correct 29 ms 141560 KB Output is correct
63 Correct 30 ms 141404 KB Output is correct
64 Correct 32 ms 141392 KB Output is correct
65 Correct 37 ms 141384 KB Output is correct
66 Correct 36 ms 141300 KB Output is correct
67 Correct 34 ms 141344 KB Output is correct
68 Correct 32 ms 141384 KB Output is correct
69 Correct 24 ms 141392 KB Output is correct
70 Correct 26 ms 141260 KB Output is correct
71 Correct 25 ms 141392 KB Output is correct
72 Correct 24 ms 141472 KB Output is correct
73 Correct 26 ms 141392 KB Output is correct
74 Correct 25 ms 141272 KB Output is correct
75 Correct 24 ms 141280 KB Output is correct
76 Correct 24 ms 141392 KB Output is correct
77 Correct 27 ms 141392 KB Output is correct
78 Correct 26 ms 141412 KB Output is correct
79 Correct 25 ms 141276 KB Output is correct
80 Correct 23 ms 141276 KB Output is correct
81 Correct 31 ms 141392 KB Output is correct
82 Correct 29 ms 141392 KB Output is correct
83 Correct 24 ms 141392 KB Output is correct
84 Correct 48 ms 141480 KB Output is correct
85 Correct 49 ms 141384 KB Output is correct
86 Correct 26 ms 141640 KB Output is correct
87 Correct 24 ms 141404 KB Output is correct
88 Correct 24 ms 141392 KB Output is correct
89 Correct 26 ms 141392 KB Output is correct
90 Correct 23 ms 141392 KB Output is correct
91 Correct 23 ms 141276 KB Output is correct
92 Correct 26 ms 141392 KB Output is correct
93 Correct 27 ms 141392 KB Output is correct
94 Correct 24 ms 141392 KB Output is correct
95 Correct 28 ms 141408 KB Output is correct
96 Correct 26 ms 141392 KB Output is correct
97 Correct 26 ms 141392 KB Output is correct
98 Correct 25 ms 141392 KB Output is correct
99 Correct 23 ms 141392 KB Output is correct
100 Correct 25 ms 141392 KB Output is correct
101 Correct 27 ms 141304 KB Output is correct
102 Correct 24 ms 141460 KB Output is correct
103 Correct 30 ms 141452 KB Output is correct
104 Correct 32 ms 141392 KB Output is correct
105 Correct 34 ms 141224 KB Output is correct
106 Correct 33 ms 141652 KB Output is correct
107 Correct 28 ms 141384 KB Output is correct
108 Correct 27 ms 141468 KB Output is correct
109 Correct 27 ms 141392 KB Output is correct
110 Correct 46 ms 141768 KB Output is correct
111 Correct 35 ms 142152 KB Output is correct
112 Correct 31 ms 141904 KB Output is correct
113 Correct 39 ms 141904 KB Output is correct
114 Correct 35 ms 142032 KB Output is correct
115 Correct 38 ms 142136 KB Output is correct
116 Correct 42 ms 142040 KB Output is correct
117 Correct 49 ms 142160 KB Output is correct
118 Correct 44 ms 142160 KB Output is correct
119 Correct 57 ms 143300 KB Output is correct
120 Correct 49 ms 143036 KB Output is correct
121 Correct 44 ms 143016 KB Output is correct
122 Correct 64 ms 142952 KB Output is correct
123 Correct 61 ms 142664 KB Output is correct
124 Correct 111 ms 148924 KB Output is correct
125 Correct 282 ms 162476 KB Output is correct
126 Correct 248 ms 155656 KB Output is correct
127 Correct 219 ms 155340 KB Output is correct
128 Correct 262 ms 156700 KB Output is correct
129 Correct 243 ms 155208 KB Output is correct
130 Correct 379 ms 165472 KB Output is correct
131 Correct 398 ms 166932 KB Output is correct
132 Correct 31 ms 141904 KB Output is correct
133 Correct 25 ms 141564 KB Output is correct
134 Correct 26 ms 141392 KB Output is correct
135 Correct 33 ms 141648 KB Output is correct
136 Correct 47 ms 142624 KB Output is correct
137 Correct 52 ms 142284 KB Output is correct
138 Correct 50 ms 141896 KB Output is correct
139 Correct 61 ms 141896 KB Output is correct
140 Correct 50 ms 141968 KB Output is correct
141 Correct 31 ms 141904 KB Output is correct
142 Correct 35 ms 142076 KB Output is correct
143 Correct 41 ms 141924 KB Output is correct
144 Correct 27 ms 142940 KB Output is correct
145 Correct 34 ms 142920 KB Output is correct
146 Correct 33 ms 142416 KB Output is correct
147 Correct 50 ms 142152 KB Output is correct
148 Correct 43 ms 142008 KB Output is correct
149 Correct 44 ms 141904 KB Output is correct
150 Correct 41 ms 141916 KB Output is correct
151 Correct 42 ms 142192 KB Output is correct
152 Correct 55 ms 141896 KB Output is correct
153 Correct 49 ms 141968 KB Output is correct
154 Correct 67 ms 142828 KB Output is correct
155 Correct 51 ms 142408 KB Output is correct
156 Correct 58 ms 143048 KB Output is correct
157 Correct 57 ms 142668 KB Output is correct
158 Correct 50 ms 142888 KB Output is correct
159 Correct 57 ms 142860 KB Output is correct
160 Correct 53 ms 142996 KB Output is correct
161 Correct 53 ms 142988 KB Output is correct
162 Correct 55 ms 142920 KB Output is correct
163 Correct 49 ms 142900 KB Output is correct
164 Correct 33 ms 145312 KB Output is correct
165 Correct 34 ms 145224 KB Output is correct
166 Correct 40 ms 144116 KB Output is correct
167 Correct 51 ms 142768 KB Output is correct
168 Correct 59 ms 142844 KB Output is correct
169 Correct 45 ms 142928 KB Output is correct
170 Correct 46 ms 142852 KB Output is correct
171 Correct 54 ms 143184 KB Output is correct
172 Correct 52 ms 143140 KB Output is correct
173 Correct 43 ms 142672 KB Output is correct
174 Correct 55 ms 143440 KB Output is correct
175 Correct 79 ms 144712 KB Output is correct
176 Correct 117 ms 153304 KB Output is correct
177 Correct 187 ms 151112 KB Output is correct
178 Correct 280 ms 153680 KB Output is correct
179 Correct 284 ms 156312 KB Output is correct
180 Correct 278 ms 156244 KB Output is correct
181 Correct 294 ms 156488 KB Output is correct
182 Correct 285 ms 154996 KB Output is correct
183 Correct 336 ms 158472 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 26 ms 141392 KB Output is correct
2 Correct 24 ms 141392 KB Output is correct
3 Correct 25 ms 141392 KB Output is correct
4 Correct 23 ms 141392 KB Output is correct
5 Correct 23 ms 141392 KB Output is correct
6 Correct 24 ms 141392 KB Output is correct
7 Correct 24 ms 141392 KB Output is correct
8 Correct 26 ms 141436 KB Output is correct
9 Correct 23 ms 141224 KB Output is correct
10 Correct 23 ms 141392 KB Output is correct
11 Correct 24 ms 141392 KB Output is correct
12 Correct 25 ms 141392 KB Output is correct
13 Correct 25 ms 141392 KB Output is correct
14 Correct 23 ms 141392 KB Output is correct
15 Correct 25 ms 141648 KB Output is correct
16 Correct 29 ms 141392 KB Output is correct
17 Correct 25 ms 141392 KB Output is correct
18 Correct 25 ms 141404 KB Output is correct
19 Correct 32 ms 142144 KB Output is correct
20 Correct 30 ms 142492 KB Output is correct
21 Correct 31 ms 141904 KB Output is correct
22 Correct 39 ms 141904 KB Output is correct
23 Correct 32 ms 141904 KB Output is correct
24 Correct 29 ms 142920 KB Output is correct
25 Correct 27 ms 142928 KB Output is correct
26 Correct 37 ms 142160 KB Output is correct
27 Correct 39 ms 141984 KB Output is correct
28 Correct 37 ms 142016 KB Output is correct
29 Correct 42 ms 143004 KB Output is correct
30 Correct 30 ms 142416 KB Output is correct
31 Correct 43 ms 142892 KB Output is correct
32 Correct 49 ms 142672 KB Output is correct
33 Correct 39 ms 142760 KB Output is correct
34 Correct 31 ms 145224 KB Output is correct
35 Correct 30 ms 145236 KB Output is correct
36 Correct 52 ms 142928 KB Output is correct
37 Correct 50 ms 143184 KB Output is correct
38 Correct 44 ms 142988 KB Output is correct
39 Correct 238 ms 156488 KB Output is correct
40 Correct 49 ms 142928 KB Output is correct
41 Correct 33 ms 146268 KB Output is correct
42 Correct 60 ms 143184 KB Output is correct
43 Correct 37 ms 145608 KB Output is correct
44 Correct 127 ms 150684 KB Output is correct
45 Correct 83 ms 152116 KB Output is correct
46 Correct 238 ms 156364 KB Output is correct
47 Correct 285 ms 156640 KB Output is correct
48 Correct 212 ms 154960 KB Output is correct
49 Correct 93 ms 178220 KB Output is correct
50 Correct 81 ms 179248 KB Output is correct
51 Correct 341 ms 157132 KB Output is correct
52 Correct 323 ms 156400 KB Output is correct
53 Correct 266 ms 156488 KB Output is correct
54 Correct 23 ms 141392 KB Output is correct
55 Correct 24 ms 141216 KB Output is correct
56 Correct 25 ms 141392 KB Output is correct
57 Correct 26 ms 141392 KB Output is correct
58 Correct 24 ms 141392 KB Output is correct
59 Correct 25 ms 141456 KB Output is correct
60 Correct 30 ms 141392 KB Output is correct
61 Correct 28 ms 141384 KB Output is correct
62 Correct 29 ms 141560 KB Output is correct
63 Correct 30 ms 141404 KB Output is correct
64 Correct 32 ms 141392 KB Output is correct
65 Correct 37 ms 141384 KB Output is correct
66 Correct 36 ms 141300 KB Output is correct
67 Correct 34 ms 141344 KB Output is correct
68 Correct 32 ms 141384 KB Output is correct
69 Correct 24 ms 141392 KB Output is correct
70 Correct 26 ms 141260 KB Output is correct
71 Correct 25 ms 141392 KB Output is correct
72 Correct 24 ms 141472 KB Output is correct
73 Correct 26 ms 141392 KB Output is correct
74 Correct 25 ms 141272 KB Output is correct
75 Correct 24 ms 141280 KB Output is correct
76 Correct 24 ms 141392 KB Output is correct
77 Correct 27 ms 141392 KB Output is correct
78 Correct 26 ms 141412 KB Output is correct
79 Correct 25 ms 141276 KB Output is correct
80 Correct 23 ms 141276 KB Output is correct
81 Correct 31 ms 141392 KB Output is correct
82 Correct 29 ms 141392 KB Output is correct
83 Correct 24 ms 141392 KB Output is correct
84 Correct 48 ms 141480 KB Output is correct
85 Correct 49 ms 141384 KB Output is correct
86 Correct 26 ms 141640 KB Output is correct
87 Correct 24 ms 141404 KB Output is correct
88 Correct 24 ms 141392 KB Output is correct
89 Correct 26 ms 141392 KB Output is correct
90 Correct 23 ms 141392 KB Output is correct
91 Correct 23 ms 141276 KB Output is correct
92 Correct 26 ms 141392 KB Output is correct
93 Correct 27 ms 141392 KB Output is correct
94 Correct 24 ms 141392 KB Output is correct
95 Correct 28 ms 141408 KB Output is correct
96 Correct 26 ms 141392 KB Output is correct
97 Correct 26 ms 141392 KB Output is correct
98 Correct 25 ms 141392 KB Output is correct
99 Correct 23 ms 141392 KB Output is correct
100 Correct 25 ms 141392 KB Output is correct
101 Correct 27 ms 141304 KB Output is correct
102 Correct 24 ms 141460 KB Output is correct
103 Correct 30 ms 141452 KB Output is correct
104 Correct 32 ms 141392 KB Output is correct
105 Correct 34 ms 141224 KB Output is correct
106 Correct 33 ms 141652 KB Output is correct
107 Correct 28 ms 141384 KB Output is correct
108 Correct 27 ms 141468 KB Output is correct
109 Correct 27 ms 141392 KB Output is correct
110 Correct 46 ms 141768 KB Output is correct
111 Correct 35 ms 142152 KB Output is correct
112 Correct 31 ms 141904 KB Output is correct
113 Correct 39 ms 141904 KB Output is correct
114 Correct 35 ms 142032 KB Output is correct
115 Correct 38 ms 142136 KB Output is correct
116 Correct 42 ms 142040 KB Output is correct
117 Correct 49 ms 142160 KB Output is correct
118 Correct 44 ms 142160 KB Output is correct
119 Correct 57 ms 143300 KB Output is correct
120 Correct 49 ms 143036 KB Output is correct
121 Correct 44 ms 143016 KB Output is correct
122 Correct 64 ms 142952 KB Output is correct
123 Correct 61 ms 142664 KB Output is correct
124 Correct 111 ms 148924 KB Output is correct
125 Correct 282 ms 162476 KB Output is correct
126 Correct 248 ms 155656 KB Output is correct
127 Correct 219 ms 155340 KB Output is correct
128 Correct 262 ms 156700 KB Output is correct
129 Correct 243 ms 155208 KB Output is correct
130 Correct 379 ms 165472 KB Output is correct
131 Correct 398 ms 166932 KB Output is correct
132 Correct 31 ms 141904 KB Output is correct
133 Correct 25 ms 141564 KB Output is correct
134 Correct 26 ms 141392 KB Output is correct
135 Correct 33 ms 141648 KB Output is correct
136 Correct 47 ms 142624 KB Output is correct
137 Correct 52 ms 142284 KB Output is correct
138 Correct 50 ms 141896 KB Output is correct
139 Correct 61 ms 141896 KB Output is correct
140 Correct 50 ms 141968 KB Output is correct
141 Correct 31 ms 141904 KB Output is correct
142 Correct 35 ms 142076 KB Output is correct
143 Correct 41 ms 141924 KB Output is correct
144 Correct 27 ms 142940 KB Output is correct
145 Correct 34 ms 142920 KB Output is correct
146 Correct 33 ms 142416 KB Output is correct
147 Correct 50 ms 142152 KB Output is correct
148 Correct 43 ms 142008 KB Output is correct
149 Correct 44 ms 141904 KB Output is correct
150 Correct 41 ms 141916 KB Output is correct
151 Correct 42 ms 142192 KB Output is correct
152 Correct 55 ms 141896 KB Output is correct
153 Correct 49 ms 141968 KB Output is correct
154 Correct 67 ms 142828 KB Output is correct
155 Correct 51 ms 142408 KB Output is correct
156 Correct 58 ms 143048 KB Output is correct
157 Correct 57 ms 142668 KB Output is correct
158 Correct 50 ms 142888 KB Output is correct
159 Correct 57 ms 142860 KB Output is correct
160 Correct 53 ms 142996 KB Output is correct
161 Correct 53 ms 142988 KB Output is correct
162 Correct 55 ms 142920 KB Output is correct
163 Correct 49 ms 142900 KB Output is correct
164 Correct 33 ms 145312 KB Output is correct
165 Correct 34 ms 145224 KB Output is correct
166 Correct 40 ms 144116 KB Output is correct
167 Correct 51 ms 142768 KB Output is correct
168 Correct 59 ms 142844 KB Output is correct
169 Correct 45 ms 142928 KB Output is correct
170 Correct 46 ms 142852 KB Output is correct
171 Correct 54 ms 143184 KB Output is correct
172 Correct 52 ms 143140 KB Output is correct
173 Correct 43 ms 142672 KB Output is correct
174 Correct 55 ms 143440 KB Output is correct
175 Correct 79 ms 144712 KB Output is correct
176 Correct 117 ms 153304 KB Output is correct
177 Correct 187 ms 151112 KB Output is correct
178 Correct 280 ms 153680 KB Output is correct
179 Correct 284 ms 156312 KB Output is correct
180 Correct 278 ms 156244 KB Output is correct
181 Correct 294 ms 156488 KB Output is correct
182 Correct 285 ms 154996 KB Output is correct
183 Correct 336 ms 158472 KB Output is correct
184 Correct 453 ms 168776 KB Output is correct
185 Correct 286 ms 157008 KB Output is correct
186 Correct 361 ms 168368 KB Output is correct
187 Correct 343 ms 162916 KB Output is correct
188 Correct 442 ms 168968 KB Output is correct
189 Correct 614 ms 170256 KB Output is correct
190 Correct 441 ms 170056 KB Output is correct
191 Correct 462 ms 169044 KB Output is correct
192 Correct 589 ms 170568 KB Output is correct
193 Correct 447 ms 169544 KB Output is correct
194 Correct 128 ms 214956 KB Output is correct
195 Correct 119 ms 217212 KB Output is correct
196 Correct 454 ms 171608 KB Output is correct
197 Correct 447 ms 170700 KB Output is correct
198 Correct 498 ms 168868 KB Output is correct
199 Correct 456 ms 168520 KB Output is correct
200 Correct 657 ms 169408 KB Output is correct
201 Correct 653 ms 170436 KB Output is correct
202 Correct 481 ms 171080 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 26 ms 141392 KB Output is correct
2 Correct 24 ms 141392 KB Output is correct
3 Correct 25 ms 141392 KB Output is correct
4 Correct 23 ms 141392 KB Output is correct
5 Correct 23 ms 141392 KB Output is correct
6 Correct 24 ms 141392 KB Output is correct
7 Correct 24 ms 141392 KB Output is correct
8 Correct 26 ms 141436 KB Output is correct
9 Correct 23 ms 141224 KB Output is correct
10 Correct 23 ms 141392 KB Output is correct
11 Correct 24 ms 141392 KB Output is correct
12 Correct 25 ms 141392 KB Output is correct
13 Correct 25 ms 141392 KB Output is correct
14 Correct 23 ms 141392 KB Output is correct
15 Correct 25 ms 141648 KB Output is correct
16 Correct 29 ms 141392 KB Output is correct
17 Correct 25 ms 141392 KB Output is correct
18 Correct 25 ms 141404 KB Output is correct
19 Correct 32 ms 142144 KB Output is correct
20 Correct 30 ms 142492 KB Output is correct
21 Correct 31 ms 141904 KB Output is correct
22 Correct 39 ms 141904 KB Output is correct
23 Correct 32 ms 141904 KB Output is correct
24 Correct 29 ms 142920 KB Output is correct
25 Correct 27 ms 142928 KB Output is correct
26 Correct 37 ms 142160 KB Output is correct
27 Correct 39 ms 141984 KB Output is correct
28 Correct 37 ms 142016 KB Output is correct
29 Correct 42 ms 143004 KB Output is correct
30 Correct 30 ms 142416 KB Output is correct
31 Correct 43 ms 142892 KB Output is correct
32 Correct 49 ms 142672 KB Output is correct
33 Correct 39 ms 142760 KB Output is correct
34 Correct 31 ms 145224 KB Output is correct
35 Correct 30 ms 145236 KB Output is correct
36 Correct 52 ms 142928 KB Output is correct
37 Correct 50 ms 143184 KB Output is correct
38 Correct 44 ms 142988 KB Output is correct
39 Correct 238 ms 156488 KB Output is correct
40 Correct 49 ms 142928 KB Output is correct
41 Correct 33 ms 146268 KB Output is correct
42 Correct 60 ms 143184 KB Output is correct
43 Correct 37 ms 145608 KB Output is correct
44 Correct 127 ms 150684 KB Output is correct
45 Correct 83 ms 152116 KB Output is correct
46 Correct 238 ms 156364 KB Output is correct
47 Correct 285 ms 156640 KB Output is correct
48 Correct 212 ms 154960 KB Output is correct
49 Correct 93 ms 178220 KB Output is correct
50 Correct 81 ms 179248 KB Output is correct
51 Correct 341 ms 157132 KB Output is correct
52 Correct 323 ms 156400 KB Output is correct
53 Correct 266 ms 156488 KB Output is correct
54 Correct 23 ms 141392 KB Output is correct
55 Correct 24 ms 141216 KB Output is correct
56 Correct 25 ms 141392 KB Output is correct
57 Correct 26 ms 141392 KB Output is correct
58 Correct 24 ms 141392 KB Output is correct
59 Correct 25 ms 141456 KB Output is correct
60 Correct 30 ms 141392 KB Output is correct
61 Correct 28 ms 141384 KB Output is correct
62 Correct 29 ms 141560 KB Output is correct
63 Correct 30 ms 141404 KB Output is correct
64 Correct 32 ms 141392 KB Output is correct
65 Correct 37 ms 141384 KB Output is correct
66 Correct 36 ms 141300 KB Output is correct
67 Correct 34 ms 141344 KB Output is correct
68 Correct 32 ms 141384 KB Output is correct
69 Correct 24 ms 141392 KB Output is correct
70 Correct 26 ms 141260 KB Output is correct
71 Correct 25 ms 141392 KB Output is correct
72 Correct 24 ms 141472 KB Output is correct
73 Correct 26 ms 141392 KB Output is correct
74 Correct 25 ms 141272 KB Output is correct
75 Correct 24 ms 141280 KB Output is correct
76 Correct 24 ms 141392 KB Output is correct
77 Correct 27 ms 141392 KB Output is correct
78 Correct 26 ms 141412 KB Output is correct
79 Correct 25 ms 141276 KB Output is correct
80 Correct 23 ms 141276 KB Output is correct
81 Correct 31 ms 141392 KB Output is correct
82 Correct 29 ms 141392 KB Output is correct
83 Correct 24 ms 141392 KB Output is correct
84 Correct 48 ms 141480 KB Output is correct
85 Correct 49 ms 141384 KB Output is correct
86 Correct 26 ms 141640 KB Output is correct
87 Correct 24 ms 141404 KB Output is correct
88 Correct 24 ms 141392 KB Output is correct
89 Correct 26 ms 141392 KB Output is correct
90 Correct 23 ms 141392 KB Output is correct
91 Correct 23 ms 141276 KB Output is correct
92 Correct 26 ms 141392 KB Output is correct
93 Correct 27 ms 141392 KB Output is correct
94 Correct 24 ms 141392 KB Output is correct
95 Correct 28 ms 141408 KB Output is correct
96 Correct 26 ms 141392 KB Output is correct
97 Correct 26 ms 141392 KB Output is correct
98 Correct 25 ms 141392 KB Output is correct
99 Correct 23 ms 141392 KB Output is correct
100 Correct 25 ms 141392 KB Output is correct
101 Correct 27 ms 141304 KB Output is correct
102 Correct 24 ms 141460 KB Output is correct
103 Correct 30 ms 141452 KB Output is correct
104 Correct 32 ms 141392 KB Output is correct
105 Correct 34 ms 141224 KB Output is correct
106 Correct 33 ms 141652 KB Output is correct
107 Correct 28 ms 141384 KB Output is correct
108 Correct 27 ms 141468 KB Output is correct
109 Correct 27 ms 141392 KB Output is correct
110 Correct 46 ms 141768 KB Output is correct
111 Correct 35 ms 142152 KB Output is correct
112 Correct 31 ms 141904 KB Output is correct
113 Correct 39 ms 141904 KB Output is correct
114 Correct 35 ms 142032 KB Output is correct
115 Correct 38 ms 142136 KB Output is correct
116 Correct 42 ms 142040 KB Output is correct
117 Correct 49 ms 142160 KB Output is correct
118 Correct 44 ms 142160 KB Output is correct
119 Correct 57 ms 143300 KB Output is correct
120 Correct 49 ms 143036 KB Output is correct
121 Correct 44 ms 143016 KB Output is correct
122 Correct 64 ms 142952 KB Output is correct
123 Correct 61 ms 142664 KB Output is correct
124 Correct 111 ms 148924 KB Output is correct
125 Correct 282 ms 162476 KB Output is correct
126 Correct 248 ms 155656 KB Output is correct
127 Correct 219 ms 155340 KB Output is correct
128 Correct 262 ms 156700 KB Output is correct
129 Correct 243 ms 155208 KB Output is correct
130 Correct 379 ms 165472 KB Output is correct
131 Correct 398 ms 166932 KB Output is correct
132 Correct 31 ms 141904 KB Output is correct
133 Correct 25 ms 141564 KB Output is correct
134 Correct 26 ms 141392 KB Output is correct
135 Correct 33 ms 141648 KB Output is correct
136 Correct 47 ms 142624 KB Output is correct
137 Correct 52 ms 142284 KB Output is correct
138 Correct 50 ms 141896 KB Output is correct
139 Correct 61 ms 141896 KB Output is correct
140 Correct 50 ms 141968 KB Output is correct
141 Correct 31 ms 141904 KB Output is correct
142 Correct 35 ms 142076 KB Output is correct
143 Correct 41 ms 141924 KB Output is correct
144 Correct 27 ms 142940 KB Output is correct
145 Correct 34 ms 142920 KB Output is correct
146 Correct 33 ms 142416 KB Output is correct
147 Correct 50 ms 142152 KB Output is correct
148 Correct 43 ms 142008 KB Output is correct
149 Correct 44 ms 141904 KB Output is correct
150 Correct 41 ms 141916 KB Output is correct
151 Correct 42 ms 142192 KB Output is correct
152 Correct 55 ms 141896 KB Output is correct
153 Correct 49 ms 141968 KB Output is correct
154 Correct 67 ms 142828 KB Output is correct
155 Correct 51 ms 142408 KB Output is correct
156 Correct 58 ms 143048 KB Output is correct
157 Correct 57 ms 142668 KB Output is correct
158 Correct 50 ms 142888 KB Output is correct
159 Correct 57 ms 142860 KB Output is correct
160 Correct 53 ms 142996 KB Output is correct
161 Correct 53 ms 142988 KB Output is correct
162 Correct 55 ms 142920 KB Output is correct
163 Correct 49 ms 142900 KB Output is correct
164 Correct 33 ms 145312 KB Output is correct
165 Correct 34 ms 145224 KB Output is correct
166 Correct 40 ms 144116 KB Output is correct
167 Correct 51 ms 142768 KB Output is correct
168 Correct 59 ms 142844 KB Output is correct
169 Correct 45 ms 142928 KB Output is correct
170 Correct 46 ms 142852 KB Output is correct
171 Correct 54 ms 143184 KB Output is correct
172 Correct 52 ms 143140 KB Output is correct
173 Correct 43 ms 142672 KB Output is correct
174 Correct 55 ms 143440 KB Output is correct
175 Correct 79 ms 144712 KB Output is correct
176 Correct 117 ms 153304 KB Output is correct
177 Correct 187 ms 151112 KB Output is correct
178 Correct 280 ms 153680 KB Output is correct
179 Correct 284 ms 156312 KB Output is correct
180 Correct 278 ms 156244 KB Output is correct
181 Correct 294 ms 156488 KB Output is correct
182 Correct 285 ms 154996 KB Output is correct
183 Correct 336 ms 158472 KB Output is correct
184 Correct 453 ms 168776 KB Output is correct
185 Correct 286 ms 157008 KB Output is correct
186 Correct 361 ms 168368 KB Output is correct
187 Correct 343 ms 162916 KB Output is correct
188 Correct 442 ms 168968 KB Output is correct
189 Correct 614 ms 170256 KB Output is correct
190 Correct 441 ms 170056 KB Output is correct
191 Correct 462 ms 169044 KB Output is correct
192 Correct 589 ms 170568 KB Output is correct
193 Correct 447 ms 169544 KB Output is correct
194 Correct 128 ms 214956 KB Output is correct
195 Correct 119 ms 217212 KB Output is correct
196 Correct 454 ms 171608 KB Output is correct
197 Correct 447 ms 170700 KB Output is correct
198 Correct 498 ms 168868 KB Output is correct
199 Correct 456 ms 168520 KB Output is correct
200 Correct 657 ms 169408 KB Output is correct
201 Correct 653 ms 170436 KB Output is correct
202 Correct 481 ms 171080 KB Output is correct
203 Correct 971 ms 197824 KB Output is correct
204 Correct 503 ms 170956 KB Output is correct
205 Correct 869 ms 176344 KB Output is correct
206 Correct 754 ms 200120 KB Output is correct
207 Correct 915 ms 198276 KB Output is correct
208 Correct 1178 ms 198156 KB Output is correct
209 Correct 742 ms 197224 KB Output is correct
210 Correct 918 ms 198088 KB Output is correct
211 Correct 1039 ms 197328 KB Output is correct
212 Correct 1020 ms 195676 KB Output is correct
213 Correct 248 ms 288304 KB Output is correct
214 Correct 241 ms 288328 KB Output is correct
215 Correct 1035 ms 195992 KB Output is correct
216 Correct 1047 ms 195836 KB Output is correct
217 Correct 1058 ms 195652 KB Output is correct
218 Correct 1189 ms 196004 KB Output is correct
219 Correct 1368 ms 217540 KB Output is correct
220 Correct 1398 ms 233500 KB Output is correct
221 Correct 1437 ms 231084 KB Output is correct
222 Correct 1587 ms 230572 KB Output is correct
223 Correct 1345 ms 196292 KB Output is correct
224 Correct 1285 ms 196296 KB Output is correct
225 Correct 1010 ms 195540 KB Output is correct