Submission #839450

# Submission time Handle Problem Language Result Execution time Memory
839450 2023-08-30T04:18:46 Z dong_liu Maze (JOI23_ho_t3) C++17
100 / 100
1667 ms 580420 KB
#pragma GCC optimize("O3,unroll-loops")

#include "bits/stdc++.h"

using namespace std;

#ifdef LOCAL
#include "debug.h"
#else
#define debug(...)
#endif

const int NM = 6e6;

typedef pair<int, int> pi;

struct Range {
  int *p, n; char *rem;
  Range(int n) : n(n) {
    p = (int *) malloc(n * sizeof(int));
    rem = (char *) malloc(n * sizeof(char));
    for (int i = 0; i < n; i++) p[i] = i, rem[i] = false;
  }
  int dsf(int i) {
    return p[i] == i ? i : p[i] = dsf(p[i]);
  }
  void dsj(int i, int j) { p[dsf(i)] = dsf(j); }
  bool has(int i) { return !rem[i]; }
  void remove(int i) {
    if (i > 0 && rem[i-1]) dsj(i-1, i);
    if (i+1 < n && rem[i+1]) dsj(i, i+1);
    rem[i] = 1;
  }
  int next(int i) {
    return i == n ? n : !rem[i] ? i : dsf(i)+1;
  }
};

int main() {
  ios::sync_with_stdio(false);
  cin.exceptions(cin.failbit);
  cin.tie(NULL);
  int k, n, m;
  cin >> n >> m >> k;
  int i1, j1, i2, j2;
  cin >> i1 >> j1 >> i2 >> j2, i1--, j1--, i2--, j2--;
  static char g[NM+1];
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    for (int j = 0; j < m; j++) g[i*m+j] = s[j];
  }
  vector<Range> row, col;
  for (int i = 0; i < n; i++) row.push_back(Range(m));
  for (int i = 0; i < m; i++) col.push_back(Range(n));
  static int d[NM];
  for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) d[i*m+j] = -1;
  static bool fl[NM];
  vector<pi> f;
  d[i1*m+j1] = 0, f.push_back({i1, j1}), row[i1].remove(j1), col[j1].remove(i1);
  for (int x = 0; ; x++) {
    for (int p = 0; p < int(f.size()); p++) {
      auto [i,j] = f[p];
      fl[i*m+j] = true;
      if (i == i2 && j == j2) {
        cout << x << '\n';
        return 0;
      }
      if (i > 0 && g[(i-1)*m+j] == '.' && d[(i-1)*m+j] == -1)
        d[(i-1)*m+j] = x, f.push_back({i-1,j}), row[i-1].remove(j), col[j].remove(i-1);
      if (i+1 < n && g[(i+1)*m+j] == '.' && d[(i+1)*m+j] == -1)
        d[(i+1)*m+j] = x, f.push_back({i+1,j}), row[i+1].remove(j), col[j].remove(i+1);
      if (j > 0 && g[i*m+j-1] == '.' && d[i*m+j-1] == -1)
        d[i*m+j-1] = x, f.push_back({i,j-1}), row[i].remove(j-1), col[j-1].remove(i);
      if (j+1 < m && g[i*m+j+1] == '.' && d[i*m+j+1] == -1)
        d[i*m+j+1] = x, f.push_back({i,j+1}), row[i].remove(j+1), col[j+1].remove(i);
    }
    vector<pi> half = f, g;
    for (auto [i,j] : f) {
      int p = row[i].next(max(0,j-k));
      while (p < m && p <= j+k) {
        d[i*m+p] = x+1;
        if (abs(p-j) != k) {
          row[i].remove(p), col[p].remove(i);
          fl[i*m+p] = true;
        }
        half.push_back({i,p}), g.push_back({i,p});
        p = row[i].next(p+1);
      }
    }
    for (auto [i,j] : half) if (row[i].has(j))
      row[i].remove(j), col[j].remove(i);
    for (auto [i,j] : half) {
      int bound = k - (fl[i*m+j]?0:1);
      int p = col[j].next(max(0,i-bound));
      while (p < n && p <= i+bound) {
        d[p*m+j] = x+1;
        g.push_back({p,j});
        row[p].remove(j), col[j].remove(p);
        p = col[j].next(p+1);
      }
    }
    f = move(g);
  }
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 0 ms 340 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 0 ms 340 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 0 ms 340 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 1 ms 356 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 0 ms 340 KB Output is correct
18 Correct 0 ms 340 KB Output is correct
19 Correct 5 ms 1236 KB Output is correct
20 Correct 6 ms 4712 KB Output is correct
21 Correct 3 ms 1872 KB Output is correct
22 Correct 8 ms 1364 KB Output is correct
23 Correct 4 ms 1292 KB Output is correct
24 Correct 6 ms 6152 KB Output is correct
25 Correct 8 ms 6144 KB Output is correct
26 Correct 1 ms 1236 KB Output is correct
27 Correct 1 ms 1236 KB Output is correct
28 Correct 2 ms 1236 KB Output is correct
29 Correct 13 ms 2752 KB Output is correct
30 Correct 6 ms 3556 KB Output is correct
31 Correct 5 ms 4936 KB Output is correct
32 Correct 18 ms 2892 KB Output is correct
33 Correct 12 ms 2772 KB Output is correct
34 Correct 16 ms 15552 KB Output is correct
35 Correct 23 ms 15576 KB Output is correct
36 Correct 10 ms 3320 KB Output is correct
37 Correct 15 ms 3028 KB Output is correct
38 Correct 2 ms 2772 KB Output is correct
39 Correct 202 ms 24100 KB Output is correct
40 Correct 6 ms 3472 KB Output is correct
41 Correct 17 ms 18104 KB Output is correct
42 Correct 23 ms 3796 KB Output is correct
43 Correct 27 ms 13252 KB Output is correct
44 Correct 35 ms 18484 KB Output is correct
45 Correct 47 ms 22308 KB Output is correct
46 Correct 31 ms 27752 KB Output is correct
47 Correct 212 ms 24356 KB Output is correct
48 Correct 176 ms 24060 KB Output is correct
49 Correct 134 ms 145092 KB Output is correct
50 Correct 168 ms 144984 KB Output is correct
51 Correct 166 ms 27008 KB Output is correct
52 Correct 113 ms 24868 KB Output is correct
53 Correct 153 ms 24308 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 0 ms 340 KB Output is correct
6 Correct 1 ms 340 KB Output is correct
7 Correct 0 ms 340 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 0 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 0 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 0 ms 340 KB Output is correct
18 Correct 0 ms 340 KB Output is correct
19 Correct 1 ms 356 KB Output is correct
20 Correct 1 ms 340 KB Output is correct
21 Correct 0 ms 340 KB Output is correct
22 Correct 0 ms 340 KB Output is correct
23 Correct 1 ms 340 KB Output is correct
24 Correct 0 ms 340 KB Output is correct
25 Correct 0 ms 340 KB Output is correct
26 Correct 0 ms 340 KB Output is correct
27 Correct 0 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 0 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 340 KB Output is correct
2 Correct 0 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 340 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 0 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 0 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 0 ms 340 KB Output is correct
15 Correct 0 ms 340 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 340 KB Output is correct
18 Correct 0 ms 340 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 0 ms 340 KB Output is correct
21 Correct 0 ms 340 KB Output is correct
22 Correct 0 ms 340 KB Output is correct
23 Correct 0 ms 340 KB Output is correct
24 Correct 1 ms 340 KB Output is correct
25 Correct 1 ms 980 KB Output is correct
26 Correct 2 ms 1620 KB Output is correct
27 Correct 2 ms 1872 KB Output is correct
28 Correct 2 ms 1872 KB Output is correct
29 Correct 2 ms 1872 KB Output is correct
30 Correct 2 ms 1872 KB Output is correct
31 Correct 4 ms 2528 KB Output is correct
32 Correct 1 ms 1236 KB Output is correct
33 Correct 1 ms 1236 KB Output is correct
34 Correct 5 ms 3404 KB Output is correct
35 Correct 6 ms 4936 KB Output is correct
36 Correct 5 ms 3788 KB Output is correct
37 Correct 5 ms 4808 KB Output is correct
38 Correct 4 ms 4808 KB Output is correct
39 Correct 14 ms 9396 KB Output is correct
40 Correct 52 ms 29288 KB Output is correct
41 Correct 31 ms 27780 KB Output is correct
42 Correct 88 ms 40456 KB Output is correct
43 Correct 68 ms 39248 KB Output is correct
44 Correct 65 ms 39088 KB Output is correct
45 Correct 50 ms 33176 KB Output is correct
46 Correct 53 ms 32672 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 0 ms 340 KB Output is correct
6 Correct 1 ms 340 KB Output is correct
7 Correct 0 ms 340 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 0 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 0 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 0 ms 340 KB Output is correct
18 Correct 0 ms 340 KB Output is correct
19 Correct 1 ms 356 KB Output is correct
20 Correct 1 ms 340 KB Output is correct
21 Correct 0 ms 340 KB Output is correct
22 Correct 0 ms 340 KB Output is correct
23 Correct 1 ms 340 KB Output is correct
24 Correct 0 ms 340 KB Output is correct
25 Correct 0 ms 340 KB Output is correct
26 Correct 0 ms 340 KB Output is correct
27 Correct 0 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 0 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 340 KB Output is correct
33 Correct 5 ms 1236 KB Output is correct
34 Correct 0 ms 340 KB Output is correct
35 Correct 1 ms 596 KB Output is correct
36 Correct 1 ms 980 KB Output is correct
37 Correct 6 ms 4744 KB Output is correct
38 Correct 2 ms 1620 KB Output is correct
39 Correct 2 ms 1872 KB Output is correct
40 Correct 7 ms 1364 KB Output is correct
41 Correct 4 ms 1236 KB Output is correct
42 Correct 2 ms 1872 KB Output is correct
43 Correct 2 ms 1872 KB Output is correct
44 Correct 2 ms 1872 KB Output is correct
45 Correct 6 ms 6152 KB Output is correct
46 Correct 8 ms 6136 KB Output is correct
47 Correct 7 ms 3468 KB Output is correct
48 Correct 7 ms 1624 KB Output is correct
49 Correct 6 ms 1576 KB Output is correct
50 Correct 11 ms 2096 KB Output is correct
51 Correct 5 ms 2572 KB Output is correct
52 Correct 1 ms 1236 KB Output is correct
53 Correct 1 ms 1236 KB Output is correct
54 Correct 3 ms 1364 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 340 KB Output is correct
3 Correct 0 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 0 ms 340 KB Output is correct
6 Correct 1 ms 340 KB Output is correct
7 Correct 0 ms 340 KB Output is correct
8 Correct 0 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 0 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 0 ms 340 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 0 ms 340 KB Output is correct
18 Correct 0 ms 340 KB Output is correct
19 Correct 1 ms 356 KB Output is correct
20 Correct 1 ms 340 KB Output is correct
21 Correct 0 ms 340 KB Output is correct
22 Correct 0 ms 340 KB Output is correct
23 Correct 1 ms 340 KB Output is correct
24 Correct 0 ms 340 KB Output is correct
25 Correct 0 ms 340 KB Output is correct
26 Correct 0 ms 340 KB Output is correct
27 Correct 0 ms 340 KB Output is correct
28 Correct 0 ms 340 KB Output is correct
29 Correct 0 ms 340 KB Output is correct
30 Correct 0 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 0 ms 340 KB Output is correct
33 Correct 5 ms 1236 KB Output is correct
34 Correct 0 ms 340 KB Output is correct
35 Correct 1 ms 596 KB Output is correct
36 Correct 1 ms 980 KB Output is correct
37 Correct 6 ms 4744 KB Output is correct
38 Correct 2 ms 1620 KB Output is correct
39 Correct 2 ms 1872 KB Output is correct
40 Correct 7 ms 1364 KB Output is correct
41 Correct 4 ms 1236 KB Output is correct
42 Correct 2 ms 1872 KB Output is correct
43 Correct 2 ms 1872 KB Output is correct
44 Correct 2 ms 1872 KB Output is correct
45 Correct 6 ms 6152 KB Output is correct
46 Correct 8 ms 6136 KB Output is correct
47 Correct 7 ms 3468 KB Output is correct
48 Correct 7 ms 1624 KB Output is correct
49 Correct 6 ms 1576 KB Output is correct
50 Correct 11 ms 2096 KB Output is correct
51 Correct 5 ms 2572 KB Output is correct
52 Correct 1 ms 1236 KB Output is correct
53 Correct 1 ms 1236 KB Output is correct
54 Correct 3 ms 1364 KB Output is correct
55 Correct 13 ms 2772 KB Output is correct
56 Correct 7 ms 3596 KB Output is correct
57 Correct 5 ms 3404 KB Output is correct
58 Correct 14 ms 3072 KB Output is correct
59 Correct 11 ms 4988 KB Output is correct
60 Correct 18 ms 2888 KB Output is correct
61 Correct 13 ms 2764 KB Output is correct
62 Correct 5 ms 3788 KB Output is correct
63 Correct 5 ms 4772 KB Output is correct
64 Correct 4 ms 4808 KB Output is correct
65 Correct 17 ms 15552 KB Output is correct
66 Correct 23 ms 15552 KB Output is correct
67 Correct 21 ms 8448 KB Output is correct
68 Correct 22 ms 3156 KB Output is correct
69 Correct 26 ms 3416 KB Output is correct
70 Correct 16 ms 3372 KB Output is correct
71 Correct 22 ms 5708 KB Output is correct
72 Correct 10 ms 3320 KB Output is correct
73 Correct 14 ms 3100 KB Output is correct
74 Correct 2 ms 2772 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 0 ms 340 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 0 ms 340 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 0 ms 340 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 1 ms 356 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 0 ms 340 KB Output is correct
18 Correct 0 ms 340 KB Output is correct
19 Correct 5 ms 1236 KB Output is correct
20 Correct 6 ms 4712 KB Output is correct
21 Correct 3 ms 1872 KB Output is correct
22 Correct 8 ms 1364 KB Output is correct
23 Correct 4 ms 1292 KB Output is correct
24 Correct 6 ms 6152 KB Output is correct
25 Correct 8 ms 6144 KB Output is correct
26 Correct 1 ms 1236 KB Output is correct
27 Correct 1 ms 1236 KB Output is correct
28 Correct 2 ms 1236 KB Output is correct
29 Correct 13 ms 2752 KB Output is correct
30 Correct 6 ms 3556 KB Output is correct
31 Correct 5 ms 4936 KB Output is correct
32 Correct 18 ms 2892 KB Output is correct
33 Correct 12 ms 2772 KB Output is correct
34 Correct 16 ms 15552 KB Output is correct
35 Correct 23 ms 15576 KB Output is correct
36 Correct 10 ms 3320 KB Output is correct
37 Correct 15 ms 3028 KB Output is correct
38 Correct 2 ms 2772 KB Output is correct
39 Correct 202 ms 24100 KB Output is correct
40 Correct 6 ms 3472 KB Output is correct
41 Correct 17 ms 18104 KB Output is correct
42 Correct 23 ms 3796 KB Output is correct
43 Correct 27 ms 13252 KB Output is correct
44 Correct 35 ms 18484 KB Output is correct
45 Correct 47 ms 22308 KB Output is correct
46 Correct 31 ms 27752 KB Output is correct
47 Correct 212 ms 24356 KB Output is correct
48 Correct 176 ms 24060 KB Output is correct
49 Correct 134 ms 145092 KB Output is correct
50 Correct 168 ms 144984 KB Output is correct
51 Correct 166 ms 27008 KB Output is correct
52 Correct 113 ms 24868 KB Output is correct
53 Correct 153 ms 24308 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 0 ms 340 KB Output is correct
56 Correct 0 ms 340 KB Output is correct
57 Correct 0 ms 340 KB Output is correct
58 Correct 0 ms 340 KB Output is correct
59 Correct 1 ms 340 KB Output is correct
60 Correct 0 ms 340 KB Output is correct
61 Correct 0 ms 340 KB Output is correct
62 Correct 0 ms 340 KB Output is correct
63 Correct 0 ms 340 KB Output is correct
64 Correct 1 ms 340 KB Output is correct
65 Correct 0 ms 340 KB Output is correct
66 Correct 0 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 1 ms 340 KB Output is correct
69 Correct 0 ms 340 KB Output is correct
70 Correct 0 ms 340 KB Output is correct
71 Correct 0 ms 340 KB Output is correct
72 Correct 1 ms 356 KB Output is correct
73 Correct 1 ms 340 KB Output is correct
74 Correct 0 ms 340 KB Output is correct
75 Correct 0 ms 340 KB Output is correct
76 Correct 1 ms 340 KB Output is correct
77 Correct 0 ms 340 KB Output is correct
78 Correct 0 ms 340 KB Output is correct
79 Correct 0 ms 340 KB Output is correct
80 Correct 0 ms 340 KB Output is correct
81 Correct 0 ms 340 KB Output is correct
82 Correct 0 ms 340 KB Output is correct
83 Correct 0 ms 340 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 0 ms 340 KB Output is correct
86 Correct 0 ms 340 KB Output is correct
87 Correct 0 ms 340 KB Output is correct
88 Correct 0 ms 340 KB Output is correct
89 Correct 1 ms 340 KB Output is correct
90 Correct 0 ms 212 KB Output is correct
91 Correct 0 ms 340 KB Output is correct
92 Correct 1 ms 340 KB Output is correct
93 Correct 0 ms 340 KB Output is correct
94 Correct 0 ms 340 KB Output is correct
95 Correct 0 ms 340 KB Output is correct
96 Correct 1 ms 340 KB Output is correct
97 Correct 0 ms 340 KB Output is correct
98 Correct 0 ms 340 KB Output is correct
99 Correct 0 ms 340 KB Output is correct
100 Correct 0 ms 340 KB Output is correct
101 Correct 0 ms 348 KB Output is correct
102 Correct 0 ms 340 KB Output is correct
103 Correct 0 ms 340 KB Output is correct
104 Correct 0 ms 340 KB Output is correct
105 Correct 0 ms 340 KB Output is correct
106 Correct 0 ms 340 KB Output is correct
107 Correct 0 ms 340 KB Output is correct
108 Correct 0 ms 340 KB Output is correct
109 Correct 1 ms 340 KB Output is correct
110 Correct 1 ms 980 KB Output is correct
111 Correct 2 ms 1620 KB Output is correct
112 Correct 2 ms 1872 KB Output is correct
113 Correct 2 ms 1872 KB Output is correct
114 Correct 2 ms 1872 KB Output is correct
115 Correct 2 ms 1872 KB Output is correct
116 Correct 4 ms 2528 KB Output is correct
117 Correct 1 ms 1236 KB Output is correct
118 Correct 1 ms 1236 KB Output is correct
119 Correct 5 ms 3404 KB Output is correct
120 Correct 6 ms 4936 KB Output is correct
121 Correct 5 ms 3788 KB Output is correct
122 Correct 5 ms 4808 KB Output is correct
123 Correct 4 ms 4808 KB Output is correct
124 Correct 14 ms 9396 KB Output is correct
125 Correct 52 ms 29288 KB Output is correct
126 Correct 31 ms 27780 KB Output is correct
127 Correct 88 ms 40456 KB Output is correct
128 Correct 68 ms 39248 KB Output is correct
129 Correct 65 ms 39088 KB Output is correct
130 Correct 50 ms 33176 KB Output is correct
131 Correct 53 ms 32672 KB Output is correct
132 Correct 5 ms 1236 KB Output is correct
133 Correct 0 ms 340 KB Output is correct
134 Correct 1 ms 596 KB Output is correct
135 Correct 1 ms 980 KB Output is correct
136 Correct 6 ms 4744 KB Output is correct
137 Correct 2 ms 1620 KB Output is correct
138 Correct 2 ms 1872 KB Output is correct
139 Correct 7 ms 1364 KB Output is correct
140 Correct 4 ms 1236 KB Output is correct
141 Correct 2 ms 1872 KB Output is correct
142 Correct 2 ms 1872 KB Output is correct
143 Correct 2 ms 1872 KB Output is correct
144 Correct 6 ms 6152 KB Output is correct
145 Correct 8 ms 6136 KB Output is correct
146 Correct 7 ms 3468 KB Output is correct
147 Correct 7 ms 1624 KB Output is correct
148 Correct 6 ms 1576 KB Output is correct
149 Correct 11 ms 2096 KB Output is correct
150 Correct 5 ms 2572 KB Output is correct
151 Correct 1 ms 1236 KB Output is correct
152 Correct 1 ms 1236 KB Output is correct
153 Correct 3 ms 1364 KB Output is correct
154 Correct 13 ms 2772 KB Output is correct
155 Correct 7 ms 3596 KB Output is correct
156 Correct 5 ms 3404 KB Output is correct
157 Correct 14 ms 3072 KB Output is correct
158 Correct 11 ms 4988 KB Output is correct
159 Correct 18 ms 2888 KB Output is correct
160 Correct 13 ms 2764 KB Output is correct
161 Correct 5 ms 3788 KB Output is correct
162 Correct 5 ms 4772 KB Output is correct
163 Correct 4 ms 4808 KB Output is correct
164 Correct 17 ms 15552 KB Output is correct
165 Correct 23 ms 15552 KB Output is correct
166 Correct 21 ms 8448 KB Output is correct
167 Correct 22 ms 3156 KB Output is correct
168 Correct 26 ms 3416 KB Output is correct
169 Correct 16 ms 3372 KB Output is correct
170 Correct 22 ms 5708 KB Output is correct
171 Correct 10 ms 3320 KB Output is correct
172 Correct 14 ms 3100 KB Output is correct
173 Correct 2 ms 2772 KB Output is correct
174 Correct 7 ms 4152 KB Output is correct
175 Correct 59 ms 6468 KB Output is correct
176 Correct 52 ms 30044 KB Output is correct
177 Correct 98 ms 17800 KB Output is correct
178 Correct 18 ms 21512 KB Output is correct
179 Correct 147 ms 26164 KB Output is correct
180 Correct 284 ms 28360 KB Output is correct
181 Correct 271 ms 36008 KB Output is correct
182 Correct 286 ms 50968 KB Output is correct
183 Correct 151 ms 33036 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 0 ms 340 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 0 ms 340 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 0 ms 340 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 1 ms 356 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 0 ms 340 KB Output is correct
18 Correct 0 ms 340 KB Output is correct
19 Correct 5 ms 1236 KB Output is correct
20 Correct 6 ms 4712 KB Output is correct
21 Correct 3 ms 1872 KB Output is correct
22 Correct 8 ms 1364 KB Output is correct
23 Correct 4 ms 1292 KB Output is correct
24 Correct 6 ms 6152 KB Output is correct
25 Correct 8 ms 6144 KB Output is correct
26 Correct 1 ms 1236 KB Output is correct
27 Correct 1 ms 1236 KB Output is correct
28 Correct 2 ms 1236 KB Output is correct
29 Correct 13 ms 2752 KB Output is correct
30 Correct 6 ms 3556 KB Output is correct
31 Correct 5 ms 4936 KB Output is correct
32 Correct 18 ms 2892 KB Output is correct
33 Correct 12 ms 2772 KB Output is correct
34 Correct 16 ms 15552 KB Output is correct
35 Correct 23 ms 15576 KB Output is correct
36 Correct 10 ms 3320 KB Output is correct
37 Correct 15 ms 3028 KB Output is correct
38 Correct 2 ms 2772 KB Output is correct
39 Correct 202 ms 24100 KB Output is correct
40 Correct 6 ms 3472 KB Output is correct
41 Correct 17 ms 18104 KB Output is correct
42 Correct 23 ms 3796 KB Output is correct
43 Correct 27 ms 13252 KB Output is correct
44 Correct 35 ms 18484 KB Output is correct
45 Correct 47 ms 22308 KB Output is correct
46 Correct 31 ms 27752 KB Output is correct
47 Correct 212 ms 24356 KB Output is correct
48 Correct 176 ms 24060 KB Output is correct
49 Correct 134 ms 145092 KB Output is correct
50 Correct 168 ms 144984 KB Output is correct
51 Correct 166 ms 27008 KB Output is correct
52 Correct 113 ms 24868 KB Output is correct
53 Correct 153 ms 24308 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 0 ms 340 KB Output is correct
56 Correct 0 ms 340 KB Output is correct
57 Correct 0 ms 340 KB Output is correct
58 Correct 0 ms 340 KB Output is correct
59 Correct 1 ms 340 KB Output is correct
60 Correct 0 ms 340 KB Output is correct
61 Correct 0 ms 340 KB Output is correct
62 Correct 0 ms 340 KB Output is correct
63 Correct 0 ms 340 KB Output is correct
64 Correct 1 ms 340 KB Output is correct
65 Correct 0 ms 340 KB Output is correct
66 Correct 0 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 1 ms 340 KB Output is correct
69 Correct 0 ms 340 KB Output is correct
70 Correct 0 ms 340 KB Output is correct
71 Correct 0 ms 340 KB Output is correct
72 Correct 1 ms 356 KB Output is correct
73 Correct 1 ms 340 KB Output is correct
74 Correct 0 ms 340 KB Output is correct
75 Correct 0 ms 340 KB Output is correct
76 Correct 1 ms 340 KB Output is correct
77 Correct 0 ms 340 KB Output is correct
78 Correct 0 ms 340 KB Output is correct
79 Correct 0 ms 340 KB Output is correct
80 Correct 0 ms 340 KB Output is correct
81 Correct 0 ms 340 KB Output is correct
82 Correct 0 ms 340 KB Output is correct
83 Correct 0 ms 340 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 0 ms 340 KB Output is correct
86 Correct 0 ms 340 KB Output is correct
87 Correct 0 ms 340 KB Output is correct
88 Correct 0 ms 340 KB Output is correct
89 Correct 1 ms 340 KB Output is correct
90 Correct 0 ms 212 KB Output is correct
91 Correct 0 ms 340 KB Output is correct
92 Correct 1 ms 340 KB Output is correct
93 Correct 0 ms 340 KB Output is correct
94 Correct 0 ms 340 KB Output is correct
95 Correct 0 ms 340 KB Output is correct
96 Correct 1 ms 340 KB Output is correct
97 Correct 0 ms 340 KB Output is correct
98 Correct 0 ms 340 KB Output is correct
99 Correct 0 ms 340 KB Output is correct
100 Correct 0 ms 340 KB Output is correct
101 Correct 0 ms 348 KB Output is correct
102 Correct 0 ms 340 KB Output is correct
103 Correct 0 ms 340 KB Output is correct
104 Correct 0 ms 340 KB Output is correct
105 Correct 0 ms 340 KB Output is correct
106 Correct 0 ms 340 KB Output is correct
107 Correct 0 ms 340 KB Output is correct
108 Correct 0 ms 340 KB Output is correct
109 Correct 1 ms 340 KB Output is correct
110 Correct 1 ms 980 KB Output is correct
111 Correct 2 ms 1620 KB Output is correct
112 Correct 2 ms 1872 KB Output is correct
113 Correct 2 ms 1872 KB Output is correct
114 Correct 2 ms 1872 KB Output is correct
115 Correct 2 ms 1872 KB Output is correct
116 Correct 4 ms 2528 KB Output is correct
117 Correct 1 ms 1236 KB Output is correct
118 Correct 1 ms 1236 KB Output is correct
119 Correct 5 ms 3404 KB Output is correct
120 Correct 6 ms 4936 KB Output is correct
121 Correct 5 ms 3788 KB Output is correct
122 Correct 5 ms 4808 KB Output is correct
123 Correct 4 ms 4808 KB Output is correct
124 Correct 14 ms 9396 KB Output is correct
125 Correct 52 ms 29288 KB Output is correct
126 Correct 31 ms 27780 KB Output is correct
127 Correct 88 ms 40456 KB Output is correct
128 Correct 68 ms 39248 KB Output is correct
129 Correct 65 ms 39088 KB Output is correct
130 Correct 50 ms 33176 KB Output is correct
131 Correct 53 ms 32672 KB Output is correct
132 Correct 5 ms 1236 KB Output is correct
133 Correct 0 ms 340 KB Output is correct
134 Correct 1 ms 596 KB Output is correct
135 Correct 1 ms 980 KB Output is correct
136 Correct 6 ms 4744 KB Output is correct
137 Correct 2 ms 1620 KB Output is correct
138 Correct 2 ms 1872 KB Output is correct
139 Correct 7 ms 1364 KB Output is correct
140 Correct 4 ms 1236 KB Output is correct
141 Correct 2 ms 1872 KB Output is correct
142 Correct 2 ms 1872 KB Output is correct
143 Correct 2 ms 1872 KB Output is correct
144 Correct 6 ms 6152 KB Output is correct
145 Correct 8 ms 6136 KB Output is correct
146 Correct 7 ms 3468 KB Output is correct
147 Correct 7 ms 1624 KB Output is correct
148 Correct 6 ms 1576 KB Output is correct
149 Correct 11 ms 2096 KB Output is correct
150 Correct 5 ms 2572 KB Output is correct
151 Correct 1 ms 1236 KB Output is correct
152 Correct 1 ms 1236 KB Output is correct
153 Correct 3 ms 1364 KB Output is correct
154 Correct 13 ms 2772 KB Output is correct
155 Correct 7 ms 3596 KB Output is correct
156 Correct 5 ms 3404 KB Output is correct
157 Correct 14 ms 3072 KB Output is correct
158 Correct 11 ms 4988 KB Output is correct
159 Correct 18 ms 2888 KB Output is correct
160 Correct 13 ms 2764 KB Output is correct
161 Correct 5 ms 3788 KB Output is correct
162 Correct 5 ms 4772 KB Output is correct
163 Correct 4 ms 4808 KB Output is correct
164 Correct 17 ms 15552 KB Output is correct
165 Correct 23 ms 15552 KB Output is correct
166 Correct 21 ms 8448 KB Output is correct
167 Correct 22 ms 3156 KB Output is correct
168 Correct 26 ms 3416 KB Output is correct
169 Correct 16 ms 3372 KB Output is correct
170 Correct 22 ms 5708 KB Output is correct
171 Correct 10 ms 3320 KB Output is correct
172 Correct 14 ms 3100 KB Output is correct
173 Correct 2 ms 2772 KB Output is correct
174 Correct 7 ms 4152 KB Output is correct
175 Correct 59 ms 6468 KB Output is correct
176 Correct 52 ms 30044 KB Output is correct
177 Correct 98 ms 17800 KB Output is correct
178 Correct 18 ms 21512 KB Output is correct
179 Correct 147 ms 26164 KB Output is correct
180 Correct 284 ms 28360 KB Output is correct
181 Correct 271 ms 36008 KB Output is correct
182 Correct 286 ms 50968 KB Output is correct
183 Correct 151 ms 33036 KB Output is correct
184 Correct 487 ms 47692 KB Output is correct
185 Correct 71 ms 27756 KB Output is correct
186 Correct 62 ms 36064 KB Output is correct
187 Correct 37 ms 39160 KB Output is correct
188 Correct 240 ms 80436 KB Output is correct
189 Correct 384 ms 48416 KB Output is correct
190 Correct 171 ms 46584 KB Output is correct
191 Correct 239 ms 80420 KB Output is correct
192 Correct 204 ms 77612 KB Output is correct
193 Correct 140 ms 77476 KB Output is correct
194 Correct 305 ms 290892 KB Output is correct
195 Correct 367 ms 289704 KB Output is correct
196 Correct 347 ms 51072 KB Output is correct
197 Correct 187 ms 52600 KB Output is correct
198 Correct 366 ms 64020 KB Output is correct
199 Correct 300 ms 56348 KB Output is correct
200 Correct 190 ms 50820 KB Output is correct
201 Correct 308 ms 48980 KB Output is correct
202 Correct 403 ms 47908 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 0 ms 340 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 0 ms 340 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 0 ms 340 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
9 Correct 0 ms 340 KB Output is correct
10 Correct 0 ms 340 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 0 ms 340 KB Output is correct
14 Correct 1 ms 356 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 0 ms 340 KB Output is correct
18 Correct 0 ms 340 KB Output is correct
19 Correct 5 ms 1236 KB Output is correct
20 Correct 6 ms 4712 KB Output is correct
21 Correct 3 ms 1872 KB Output is correct
22 Correct 8 ms 1364 KB Output is correct
23 Correct 4 ms 1292 KB Output is correct
24 Correct 6 ms 6152 KB Output is correct
25 Correct 8 ms 6144 KB Output is correct
26 Correct 1 ms 1236 KB Output is correct
27 Correct 1 ms 1236 KB Output is correct
28 Correct 2 ms 1236 KB Output is correct
29 Correct 13 ms 2752 KB Output is correct
30 Correct 6 ms 3556 KB Output is correct
31 Correct 5 ms 4936 KB Output is correct
32 Correct 18 ms 2892 KB Output is correct
33 Correct 12 ms 2772 KB Output is correct
34 Correct 16 ms 15552 KB Output is correct
35 Correct 23 ms 15576 KB Output is correct
36 Correct 10 ms 3320 KB Output is correct
37 Correct 15 ms 3028 KB Output is correct
38 Correct 2 ms 2772 KB Output is correct
39 Correct 202 ms 24100 KB Output is correct
40 Correct 6 ms 3472 KB Output is correct
41 Correct 17 ms 18104 KB Output is correct
42 Correct 23 ms 3796 KB Output is correct
43 Correct 27 ms 13252 KB Output is correct
44 Correct 35 ms 18484 KB Output is correct
45 Correct 47 ms 22308 KB Output is correct
46 Correct 31 ms 27752 KB Output is correct
47 Correct 212 ms 24356 KB Output is correct
48 Correct 176 ms 24060 KB Output is correct
49 Correct 134 ms 145092 KB Output is correct
50 Correct 168 ms 144984 KB Output is correct
51 Correct 166 ms 27008 KB Output is correct
52 Correct 113 ms 24868 KB Output is correct
53 Correct 153 ms 24308 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 0 ms 340 KB Output is correct
56 Correct 0 ms 340 KB Output is correct
57 Correct 0 ms 340 KB Output is correct
58 Correct 0 ms 340 KB Output is correct
59 Correct 1 ms 340 KB Output is correct
60 Correct 0 ms 340 KB Output is correct
61 Correct 0 ms 340 KB Output is correct
62 Correct 0 ms 340 KB Output is correct
63 Correct 0 ms 340 KB Output is correct
64 Correct 1 ms 340 KB Output is correct
65 Correct 0 ms 340 KB Output is correct
66 Correct 0 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 1 ms 340 KB Output is correct
69 Correct 0 ms 340 KB Output is correct
70 Correct 0 ms 340 KB Output is correct
71 Correct 0 ms 340 KB Output is correct
72 Correct 1 ms 356 KB Output is correct
73 Correct 1 ms 340 KB Output is correct
74 Correct 0 ms 340 KB Output is correct
75 Correct 0 ms 340 KB Output is correct
76 Correct 1 ms 340 KB Output is correct
77 Correct 0 ms 340 KB Output is correct
78 Correct 0 ms 340 KB Output is correct
79 Correct 0 ms 340 KB Output is correct
80 Correct 0 ms 340 KB Output is correct
81 Correct 0 ms 340 KB Output is correct
82 Correct 0 ms 340 KB Output is correct
83 Correct 0 ms 340 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 0 ms 340 KB Output is correct
86 Correct 0 ms 340 KB Output is correct
87 Correct 0 ms 340 KB Output is correct
88 Correct 0 ms 340 KB Output is correct
89 Correct 1 ms 340 KB Output is correct
90 Correct 0 ms 212 KB Output is correct
91 Correct 0 ms 340 KB Output is correct
92 Correct 1 ms 340 KB Output is correct
93 Correct 0 ms 340 KB Output is correct
94 Correct 0 ms 340 KB Output is correct
95 Correct 0 ms 340 KB Output is correct
96 Correct 1 ms 340 KB Output is correct
97 Correct 0 ms 340 KB Output is correct
98 Correct 0 ms 340 KB Output is correct
99 Correct 0 ms 340 KB Output is correct
100 Correct 0 ms 340 KB Output is correct
101 Correct 0 ms 348 KB Output is correct
102 Correct 0 ms 340 KB Output is correct
103 Correct 0 ms 340 KB Output is correct
104 Correct 0 ms 340 KB Output is correct
105 Correct 0 ms 340 KB Output is correct
106 Correct 0 ms 340 KB Output is correct
107 Correct 0 ms 340 KB Output is correct
108 Correct 0 ms 340 KB Output is correct
109 Correct 1 ms 340 KB Output is correct
110 Correct 1 ms 980 KB Output is correct
111 Correct 2 ms 1620 KB Output is correct
112 Correct 2 ms 1872 KB Output is correct
113 Correct 2 ms 1872 KB Output is correct
114 Correct 2 ms 1872 KB Output is correct
115 Correct 2 ms 1872 KB Output is correct
116 Correct 4 ms 2528 KB Output is correct
117 Correct 1 ms 1236 KB Output is correct
118 Correct 1 ms 1236 KB Output is correct
119 Correct 5 ms 3404 KB Output is correct
120 Correct 6 ms 4936 KB Output is correct
121 Correct 5 ms 3788 KB Output is correct
122 Correct 5 ms 4808 KB Output is correct
123 Correct 4 ms 4808 KB Output is correct
124 Correct 14 ms 9396 KB Output is correct
125 Correct 52 ms 29288 KB Output is correct
126 Correct 31 ms 27780 KB Output is correct
127 Correct 88 ms 40456 KB Output is correct
128 Correct 68 ms 39248 KB Output is correct
129 Correct 65 ms 39088 KB Output is correct
130 Correct 50 ms 33176 KB Output is correct
131 Correct 53 ms 32672 KB Output is correct
132 Correct 5 ms 1236 KB Output is correct
133 Correct 0 ms 340 KB Output is correct
134 Correct 1 ms 596 KB Output is correct
135 Correct 1 ms 980 KB Output is correct
136 Correct 6 ms 4744 KB Output is correct
137 Correct 2 ms 1620 KB Output is correct
138 Correct 2 ms 1872 KB Output is correct
139 Correct 7 ms 1364 KB Output is correct
140 Correct 4 ms 1236 KB Output is correct
141 Correct 2 ms 1872 KB Output is correct
142 Correct 2 ms 1872 KB Output is correct
143 Correct 2 ms 1872 KB Output is correct
144 Correct 6 ms 6152 KB Output is correct
145 Correct 8 ms 6136 KB Output is correct
146 Correct 7 ms 3468 KB Output is correct
147 Correct 7 ms 1624 KB Output is correct
148 Correct 6 ms 1576 KB Output is correct
149 Correct 11 ms 2096 KB Output is correct
150 Correct 5 ms 2572 KB Output is correct
151 Correct 1 ms 1236 KB Output is correct
152 Correct 1 ms 1236 KB Output is correct
153 Correct 3 ms 1364 KB Output is correct
154 Correct 13 ms 2772 KB Output is correct
155 Correct 7 ms 3596 KB Output is correct
156 Correct 5 ms 3404 KB Output is correct
157 Correct 14 ms 3072 KB Output is correct
158 Correct 11 ms 4988 KB Output is correct
159 Correct 18 ms 2888 KB Output is correct
160 Correct 13 ms 2764 KB Output is correct
161 Correct 5 ms 3788 KB Output is correct
162 Correct 5 ms 4772 KB Output is correct
163 Correct 4 ms 4808 KB Output is correct
164 Correct 17 ms 15552 KB Output is correct
165 Correct 23 ms 15552 KB Output is correct
166 Correct 21 ms 8448 KB Output is correct
167 Correct 22 ms 3156 KB Output is correct
168 Correct 26 ms 3416 KB Output is correct
169 Correct 16 ms 3372 KB Output is correct
170 Correct 22 ms 5708 KB Output is correct
171 Correct 10 ms 3320 KB Output is correct
172 Correct 14 ms 3100 KB Output is correct
173 Correct 2 ms 2772 KB Output is correct
174 Correct 7 ms 4152 KB Output is correct
175 Correct 59 ms 6468 KB Output is correct
176 Correct 52 ms 30044 KB Output is correct
177 Correct 98 ms 17800 KB Output is correct
178 Correct 18 ms 21512 KB Output is correct
179 Correct 147 ms 26164 KB Output is correct
180 Correct 284 ms 28360 KB Output is correct
181 Correct 271 ms 36008 KB Output is correct
182 Correct 286 ms 50968 KB Output is correct
183 Correct 151 ms 33036 KB Output is correct
184 Correct 487 ms 47692 KB Output is correct
185 Correct 71 ms 27756 KB Output is correct
186 Correct 62 ms 36064 KB Output is correct
187 Correct 37 ms 39160 KB Output is correct
188 Correct 240 ms 80436 KB Output is correct
189 Correct 384 ms 48416 KB Output is correct
190 Correct 171 ms 46584 KB Output is correct
191 Correct 239 ms 80420 KB Output is correct
192 Correct 204 ms 77612 KB Output is correct
193 Correct 140 ms 77476 KB Output is correct
194 Correct 305 ms 290892 KB Output is correct
195 Correct 367 ms 289704 KB Output is correct
196 Correct 347 ms 51072 KB Output is correct
197 Correct 187 ms 52600 KB Output is correct
198 Correct 366 ms 64020 KB Output is correct
199 Correct 300 ms 56348 KB Output is correct
200 Correct 190 ms 50820 KB Output is correct
201 Correct 308 ms 48980 KB Output is correct
202 Correct 403 ms 47908 KB Output is correct
203 Correct 1014 ms 94636 KB Output is correct
204 Correct 534 ms 152244 KB Output is correct
205 Correct 483 ms 59780 KB Output is correct
206 Correct 164 ms 98056 KB Output is correct
207 Correct 438 ms 160356 KB Output is correct
208 Correct 845 ms 95520 KB Output is correct
209 Correct 1038 ms 94684 KB Output is correct
210 Correct 276 ms 125980 KB Output is correct
211 Correct 324 ms 154800 KB Output is correct
212 Correct 291 ms 154436 KB Output is correct
213 Correct 539 ms 579340 KB Output is correct
214 Correct 739 ms 580420 KB Output is correct
215 Correct 1058 ms 100952 KB Output is correct
216 Correct 1281 ms 105344 KB Output is correct
217 Correct 1667 ms 126984 KB Output is correct
218 Correct 1152 ms 191960 KB Output is correct
219 Correct 515 ms 149884 KB Output is correct
220 Correct 114 ms 112892 KB Output is correct
221 Correct 220 ms 128628 KB Output is correct
222 Correct 724 ms 239616 KB Output is correct
223 Correct 804 ms 98928 KB Output is correct
224 Correct 761 ms 97648 KB Output is correct
225 Correct 370 ms 95208 KB Output is correct