Submission #839451

# Submission time Handle Problem Language Result Execution time Memory
839451 2023-08-30T04:23:42 Z dong_liu Maze (JOI23_ho_t3) C++17
100 / 100
1642 ms 300120 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[NM], n, m;
  bool rem[NM];

  Range(int n, int m) : n(n), m(m) {
    for (int i = 0; i < n*m; 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 next(int i, int j) { return min(m,next(i*m+j)-i*m); }
  void remove(int i, int j) { remove(i*m+j); }
  bool has(int i, int j) { return has(i*m+j); }
};

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];
  }
  Range row(n, m), col(m, 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.remove(i1,j1), col.remove(j1,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.remove(i-1,j), col.remove(j,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.remove(i+1,j), col.remove(j,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.remove(i,j-1), col.remove(j-1,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.remove(i,j+1), col.remove(j+1,i);
    }
    vector<pi> half = f, g;
    for (auto [i,j] : f) {
      int p = row.next(i,max(0,j-k));
      while (p < m && p <= j+k) {
        d[i*m+p] = x+1;
        if (abs(p-j) != k) {
          row.remove(i,p), col.remove(p,i);
          fl[i*m+p] = true;
        }
        half.push_back({i,p}), g.push_back({i,p});
        p = row.next(i,p+1);
      }
    }
    for (auto [i,j] : half) if (row.has(i,j))
      row.remove(i,j), col.remove(j,i);
    for (auto [i,j] : half) {
      int bound = k - (fl[i*m+j]?0:1);
      int p = col.next(j,max(0,i-bound));
      while (p < n && p <= i+bound) {
        d[p*m+j] = x+1;
        g.push_back({p,j});
        row.remove(p,j), col.remove(j,p);
        p = col.next(j,p+1);
      }
    }
    f = move(g);
  }
}
# Verdict Execution time Memory Grader output
1 Correct 21 ms 58964 KB Output is correct
2 Correct 20 ms 58956 KB Output is correct
3 Correct 21 ms 58964 KB Output is correct
4 Correct 21 ms 59000 KB Output is correct
5 Correct 25 ms 58964 KB Output is correct
6 Correct 21 ms 59080 KB Output is correct
7 Correct 20 ms 58964 KB Output is correct
8 Correct 21 ms 58964 KB Output is correct
9 Correct 21 ms 58964 KB Output is correct
10 Correct 20 ms 58952 KB Output is correct
11 Correct 22 ms 58964 KB Output is correct
12 Correct 21 ms 59088 KB Output is correct
13 Correct 20 ms 58964 KB Output is correct
14 Correct 20 ms 58964 KB Output is correct
15 Correct 20 ms 58964 KB Output is correct
16 Correct 21 ms 58964 KB Output is correct
17 Correct 21 ms 58992 KB Output is correct
18 Correct 22 ms 58964 KB Output is correct
19 Correct 32 ms 59468 KB Output is correct
20 Correct 27 ms 59348 KB Output is correct
21 Correct 22 ms 59980 KB Output is correct
22 Correct 31 ms 59476 KB Output is correct
23 Correct 27 ms 59356 KB Output is correct
24 Correct 24 ms 59604 KB Output is correct
25 Correct 27 ms 59476 KB Output is correct
26 Correct 21 ms 59340 KB Output is correct
27 Correct 21 ms 59368 KB Output is correct
28 Correct 23 ms 59544 KB Output is correct
29 Correct 38 ms 60012 KB Output is correct
30 Correct 29 ms 59476 KB Output is correct
31 Correct 23 ms 62076 KB Output is correct
32 Correct 47 ms 60196 KB Output is correct
33 Correct 37 ms 59988 KB Output is correct
34 Correct 27 ms 59980 KB Output is correct
35 Correct 42 ms 59928 KB Output is correct
36 Correct 37 ms 60944 KB Output is correct
37 Correct 41 ms 60592 KB Output is correct
38 Correct 21 ms 60080 KB Output is correct
39 Correct 316 ms 68288 KB Output is correct
40 Correct 28 ms 59988 KB Output is correct
41 Correct 27 ms 60072 KB Output is correct
42 Correct 56 ms 60400 KB Output is correct
43 Correct 47 ms 60500 KB Output is correct
44 Correct 61 ms 62948 KB Output is correct
45 Correct 66 ms 63620 KB Output is correct
46 Correct 35 ms 71636 KB Output is correct
47 Correct 355 ms 68800 KB Output is correct
48 Correct 270 ms 68052 KB Output is correct
49 Correct 56 ms 67360 KB Output is correct
50 Correct 143 ms 67260 KB Output is correct
51 Correct 272 ms 73800 KB Output is correct
52 Correct 185 ms 70140 KB Output is correct
53 Correct 239 ms 68484 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 20 ms 58964 KB Output is correct
2 Correct 20 ms 58964 KB Output is correct
3 Correct 20 ms 58964 KB Output is correct
4 Correct 20 ms 58964 KB Output is correct
5 Correct 21 ms 58964 KB Output is correct
6 Correct 21 ms 58964 KB Output is correct
7 Correct 21 ms 58908 KB Output is correct
8 Correct 21 ms 58964 KB Output is correct
9 Correct 21 ms 58936 KB Output is correct
10 Correct 23 ms 58964 KB Output is correct
11 Correct 21 ms 58964 KB Output is correct
12 Correct 23 ms 58964 KB Output is correct
13 Correct 21 ms 58964 KB Output is correct
14 Correct 21 ms 58964 KB Output is correct
15 Correct 21 ms 59028 KB Output is correct
16 Correct 22 ms 58964 KB Output is correct
17 Correct 21 ms 58964 KB Output is correct
18 Correct 21 ms 58964 KB Output is correct
19 Correct 21 ms 59024 KB Output is correct
20 Correct 23 ms 58964 KB Output is correct
21 Correct 24 ms 58964 KB Output is correct
22 Correct 22 ms 58964 KB Output is correct
23 Correct 23 ms 58956 KB Output is correct
24 Correct 21 ms 58964 KB Output is correct
25 Correct 21 ms 58920 KB Output is correct
26 Correct 21 ms 58964 KB Output is correct
27 Correct 21 ms 58924 KB Output is correct
28 Correct 21 ms 58956 KB Output is correct
29 Correct 21 ms 58964 KB Output is correct
30 Correct 20 ms 58964 KB Output is correct
31 Correct 22 ms 58964 KB Output is correct
32 Correct 21 ms 59016 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 21 ms 58964 KB Output is correct
2 Correct 21 ms 59012 KB Output is correct
3 Correct 21 ms 58964 KB Output is correct
4 Correct 21 ms 58964 KB Output is correct
5 Correct 21 ms 58964 KB Output is correct
6 Correct 23 ms 58956 KB Output is correct
7 Correct 21 ms 58964 KB Output is correct
8 Correct 22 ms 58964 KB Output is correct
9 Correct 21 ms 58964 KB Output is correct
10 Correct 20 ms 58992 KB Output is correct
11 Correct 20 ms 58964 KB Output is correct
12 Correct 21 ms 58964 KB Output is correct
13 Correct 21 ms 58964 KB Output is correct
14 Correct 20 ms 58964 KB Output is correct
15 Correct 20 ms 58964 KB Output is correct
16 Correct 20 ms 58964 KB Output is correct
17 Correct 21 ms 58964 KB Output is correct
18 Correct 21 ms 58960 KB Output is correct
19 Correct 20 ms 58960 KB Output is correct
20 Correct 20 ms 58948 KB Output is correct
21 Correct 21 ms 58964 KB Output is correct
22 Correct 21 ms 58964 KB Output is correct
23 Correct 21 ms 58964 KB Output is correct
24 Correct 21 ms 59008 KB Output is correct
25 Correct 24 ms 59348 KB Output is correct
26 Correct 22 ms 59856 KB Output is correct
27 Correct 22 ms 59960 KB Output is correct
28 Correct 22 ms 59988 KB Output is correct
29 Correct 22 ms 60020 KB Output is correct
30 Correct 22 ms 59988 KB Output is correct
31 Correct 25 ms 60684 KB Output is correct
32 Correct 21 ms 59352 KB Output is correct
33 Correct 21 ms 59332 KB Output is correct
34 Correct 24 ms 60864 KB Output is correct
35 Correct 24 ms 62032 KB Output is correct
36 Correct 24 ms 61012 KB Output is correct
37 Correct 26 ms 61904 KB Output is correct
38 Correct 24 ms 61904 KB Output is correct
39 Correct 31 ms 63696 KB Output is correct
40 Correct 62 ms 74684 KB Output is correct
41 Correct 36 ms 71744 KB Output is correct
42 Correct 90 ms 84376 KB Output is correct
43 Correct 78 ms 83088 KB Output is correct
44 Correct 72 ms 82996 KB Output is correct
45 Correct 60 ms 75760 KB Output is correct
46 Correct 60 ms 75968 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 20 ms 58964 KB Output is correct
2 Correct 20 ms 58964 KB Output is correct
3 Correct 20 ms 58964 KB Output is correct
4 Correct 20 ms 58964 KB Output is correct
5 Correct 21 ms 58964 KB Output is correct
6 Correct 21 ms 58964 KB Output is correct
7 Correct 21 ms 58908 KB Output is correct
8 Correct 21 ms 58964 KB Output is correct
9 Correct 21 ms 58936 KB Output is correct
10 Correct 23 ms 58964 KB Output is correct
11 Correct 21 ms 58964 KB Output is correct
12 Correct 23 ms 58964 KB Output is correct
13 Correct 21 ms 58964 KB Output is correct
14 Correct 21 ms 58964 KB Output is correct
15 Correct 21 ms 59028 KB Output is correct
16 Correct 22 ms 58964 KB Output is correct
17 Correct 21 ms 58964 KB Output is correct
18 Correct 21 ms 58964 KB Output is correct
19 Correct 21 ms 59024 KB Output is correct
20 Correct 23 ms 58964 KB Output is correct
21 Correct 24 ms 58964 KB Output is correct
22 Correct 22 ms 58964 KB Output is correct
23 Correct 23 ms 58956 KB Output is correct
24 Correct 21 ms 58964 KB Output is correct
25 Correct 21 ms 58920 KB Output is correct
26 Correct 21 ms 58964 KB Output is correct
27 Correct 21 ms 58924 KB Output is correct
28 Correct 21 ms 58956 KB Output is correct
29 Correct 21 ms 58964 KB Output is correct
30 Correct 20 ms 58964 KB Output is correct
31 Correct 22 ms 58964 KB Output is correct
32 Correct 21 ms 59016 KB Output is correct
33 Correct 27 ms 59448 KB Output is correct
34 Correct 21 ms 59088 KB Output is correct
35 Correct 21 ms 59092 KB Output is correct
36 Correct 22 ms 59472 KB Output is correct
37 Correct 26 ms 59336 KB Output is correct
38 Correct 24 ms 59732 KB Output is correct
39 Correct 22 ms 59988 KB Output is correct
40 Correct 30 ms 59476 KB Output is correct
41 Correct 29 ms 59340 KB Output is correct
42 Correct 22 ms 59988 KB Output is correct
43 Correct 22 ms 60020 KB Output is correct
44 Correct 21 ms 59900 KB Output is correct
45 Correct 24 ms 59440 KB Output is correct
46 Correct 28 ms 59468 KB Output is correct
47 Correct 27 ms 59348 KB Output is correct
48 Correct 28 ms 59476 KB Output is correct
49 Correct 27 ms 59700 KB Output is correct
50 Correct 36 ms 60068 KB Output is correct
51 Correct 27 ms 60664 KB Output is correct
52 Correct 21 ms 59348 KB Output is correct
53 Correct 22 ms 59348 KB Output is correct
54 Correct 23 ms 59476 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 20 ms 58964 KB Output is correct
2 Correct 20 ms 58964 KB Output is correct
3 Correct 20 ms 58964 KB Output is correct
4 Correct 20 ms 58964 KB Output is correct
5 Correct 21 ms 58964 KB Output is correct
6 Correct 21 ms 58964 KB Output is correct
7 Correct 21 ms 58908 KB Output is correct
8 Correct 21 ms 58964 KB Output is correct
9 Correct 21 ms 58936 KB Output is correct
10 Correct 23 ms 58964 KB Output is correct
11 Correct 21 ms 58964 KB Output is correct
12 Correct 23 ms 58964 KB Output is correct
13 Correct 21 ms 58964 KB Output is correct
14 Correct 21 ms 58964 KB Output is correct
15 Correct 21 ms 59028 KB Output is correct
16 Correct 22 ms 58964 KB Output is correct
17 Correct 21 ms 58964 KB Output is correct
18 Correct 21 ms 58964 KB Output is correct
19 Correct 21 ms 59024 KB Output is correct
20 Correct 23 ms 58964 KB Output is correct
21 Correct 24 ms 58964 KB Output is correct
22 Correct 22 ms 58964 KB Output is correct
23 Correct 23 ms 58956 KB Output is correct
24 Correct 21 ms 58964 KB Output is correct
25 Correct 21 ms 58920 KB Output is correct
26 Correct 21 ms 58964 KB Output is correct
27 Correct 21 ms 58924 KB Output is correct
28 Correct 21 ms 58956 KB Output is correct
29 Correct 21 ms 58964 KB Output is correct
30 Correct 20 ms 58964 KB Output is correct
31 Correct 22 ms 58964 KB Output is correct
32 Correct 21 ms 59016 KB Output is correct
33 Correct 27 ms 59448 KB Output is correct
34 Correct 21 ms 59088 KB Output is correct
35 Correct 21 ms 59092 KB Output is correct
36 Correct 22 ms 59472 KB Output is correct
37 Correct 26 ms 59336 KB Output is correct
38 Correct 24 ms 59732 KB Output is correct
39 Correct 22 ms 59988 KB Output is correct
40 Correct 30 ms 59476 KB Output is correct
41 Correct 29 ms 59340 KB Output is correct
42 Correct 22 ms 59988 KB Output is correct
43 Correct 22 ms 60020 KB Output is correct
44 Correct 21 ms 59900 KB Output is correct
45 Correct 24 ms 59440 KB Output is correct
46 Correct 28 ms 59468 KB Output is correct
47 Correct 27 ms 59348 KB Output is correct
48 Correct 28 ms 59476 KB Output is correct
49 Correct 27 ms 59700 KB Output is correct
50 Correct 36 ms 60068 KB Output is correct
51 Correct 27 ms 60664 KB Output is correct
52 Correct 21 ms 59348 KB Output is correct
53 Correct 22 ms 59348 KB Output is correct
54 Correct 23 ms 59476 KB Output is correct
55 Correct 44 ms 59988 KB Output is correct
56 Correct 27 ms 59348 KB Output is correct
57 Correct 24 ms 60884 KB Output is correct
58 Correct 40 ms 59852 KB Output is correct
59 Correct 24 ms 62024 KB Output is correct
60 Correct 49 ms 60228 KB Output is correct
61 Correct 35 ms 59988 KB Output is correct
62 Correct 24 ms 61012 KB Output is correct
63 Correct 24 ms 61904 KB Output is correct
64 Correct 23 ms 61896 KB Output is correct
65 Correct 29 ms 60016 KB Output is correct
66 Correct 41 ms 59968 KB Output is correct
67 Correct 47 ms 60028 KB Output is correct
68 Correct 44 ms 60116 KB Output is correct
69 Correct 46 ms 60684 KB Output is correct
70 Correct 41 ms 60632 KB Output is correct
71 Correct 40 ms 62928 KB Output is correct
72 Correct 35 ms 60992 KB Output is correct
73 Correct 43 ms 60592 KB Output is correct
74 Correct 22 ms 60080 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 21 ms 58964 KB Output is correct
2 Correct 20 ms 58956 KB Output is correct
3 Correct 21 ms 58964 KB Output is correct
4 Correct 21 ms 59000 KB Output is correct
5 Correct 25 ms 58964 KB Output is correct
6 Correct 21 ms 59080 KB Output is correct
7 Correct 20 ms 58964 KB Output is correct
8 Correct 21 ms 58964 KB Output is correct
9 Correct 21 ms 58964 KB Output is correct
10 Correct 20 ms 58952 KB Output is correct
11 Correct 22 ms 58964 KB Output is correct
12 Correct 21 ms 59088 KB Output is correct
13 Correct 20 ms 58964 KB Output is correct
14 Correct 20 ms 58964 KB Output is correct
15 Correct 20 ms 58964 KB Output is correct
16 Correct 21 ms 58964 KB Output is correct
17 Correct 21 ms 58992 KB Output is correct
18 Correct 22 ms 58964 KB Output is correct
19 Correct 32 ms 59468 KB Output is correct
20 Correct 27 ms 59348 KB Output is correct
21 Correct 22 ms 59980 KB Output is correct
22 Correct 31 ms 59476 KB Output is correct
23 Correct 27 ms 59356 KB Output is correct
24 Correct 24 ms 59604 KB Output is correct
25 Correct 27 ms 59476 KB Output is correct
26 Correct 21 ms 59340 KB Output is correct
27 Correct 21 ms 59368 KB Output is correct
28 Correct 23 ms 59544 KB Output is correct
29 Correct 38 ms 60012 KB Output is correct
30 Correct 29 ms 59476 KB Output is correct
31 Correct 23 ms 62076 KB Output is correct
32 Correct 47 ms 60196 KB Output is correct
33 Correct 37 ms 59988 KB Output is correct
34 Correct 27 ms 59980 KB Output is correct
35 Correct 42 ms 59928 KB Output is correct
36 Correct 37 ms 60944 KB Output is correct
37 Correct 41 ms 60592 KB Output is correct
38 Correct 21 ms 60080 KB Output is correct
39 Correct 316 ms 68288 KB Output is correct
40 Correct 28 ms 59988 KB Output is correct
41 Correct 27 ms 60072 KB Output is correct
42 Correct 56 ms 60400 KB Output is correct
43 Correct 47 ms 60500 KB Output is correct
44 Correct 61 ms 62948 KB Output is correct
45 Correct 66 ms 63620 KB Output is correct
46 Correct 35 ms 71636 KB Output is correct
47 Correct 355 ms 68800 KB Output is correct
48 Correct 270 ms 68052 KB Output is correct
49 Correct 56 ms 67360 KB Output is correct
50 Correct 143 ms 67260 KB Output is correct
51 Correct 272 ms 73800 KB Output is correct
52 Correct 185 ms 70140 KB Output is correct
53 Correct 239 ms 68484 KB Output is correct
54 Correct 20 ms 58964 KB Output is correct
55 Correct 20 ms 58964 KB Output is correct
56 Correct 20 ms 58964 KB Output is correct
57 Correct 20 ms 58964 KB Output is correct
58 Correct 21 ms 58964 KB Output is correct
59 Correct 21 ms 58964 KB Output is correct
60 Correct 21 ms 58908 KB Output is correct
61 Correct 21 ms 58964 KB Output is correct
62 Correct 21 ms 58936 KB Output is correct
63 Correct 23 ms 58964 KB Output is correct
64 Correct 21 ms 58964 KB Output is correct
65 Correct 23 ms 58964 KB Output is correct
66 Correct 21 ms 58964 KB Output is correct
67 Correct 21 ms 58964 KB Output is correct
68 Correct 21 ms 59028 KB Output is correct
69 Correct 22 ms 58964 KB Output is correct
70 Correct 21 ms 58964 KB Output is correct
71 Correct 21 ms 58964 KB Output is correct
72 Correct 21 ms 59024 KB Output is correct
73 Correct 23 ms 58964 KB Output is correct
74 Correct 24 ms 58964 KB Output is correct
75 Correct 22 ms 58964 KB Output is correct
76 Correct 23 ms 58956 KB Output is correct
77 Correct 21 ms 58964 KB Output is correct
78 Correct 21 ms 58920 KB Output is correct
79 Correct 21 ms 58964 KB Output is correct
80 Correct 21 ms 58924 KB Output is correct
81 Correct 21 ms 58956 KB Output is correct
82 Correct 21 ms 58964 KB Output is correct
83 Correct 20 ms 58964 KB Output is correct
84 Correct 22 ms 58964 KB Output is correct
85 Correct 21 ms 59016 KB Output is correct
86 Correct 21 ms 58964 KB Output is correct
87 Correct 21 ms 59012 KB Output is correct
88 Correct 21 ms 58964 KB Output is correct
89 Correct 21 ms 58964 KB Output is correct
90 Correct 21 ms 58964 KB Output is correct
91 Correct 23 ms 58956 KB Output is correct
92 Correct 21 ms 58964 KB Output is correct
93 Correct 22 ms 58964 KB Output is correct
94 Correct 21 ms 58964 KB Output is correct
95 Correct 20 ms 58992 KB Output is correct
96 Correct 20 ms 58964 KB Output is correct
97 Correct 21 ms 58964 KB Output is correct
98 Correct 21 ms 58964 KB Output is correct
99 Correct 20 ms 58964 KB Output is correct
100 Correct 20 ms 58964 KB Output is correct
101 Correct 20 ms 58964 KB Output is correct
102 Correct 21 ms 58964 KB Output is correct
103 Correct 21 ms 58960 KB Output is correct
104 Correct 20 ms 58960 KB Output is correct
105 Correct 20 ms 58948 KB Output is correct
106 Correct 21 ms 58964 KB Output is correct
107 Correct 21 ms 58964 KB Output is correct
108 Correct 21 ms 58964 KB Output is correct
109 Correct 21 ms 59008 KB Output is correct
110 Correct 24 ms 59348 KB Output is correct
111 Correct 22 ms 59856 KB Output is correct
112 Correct 22 ms 59960 KB Output is correct
113 Correct 22 ms 59988 KB Output is correct
114 Correct 22 ms 60020 KB Output is correct
115 Correct 22 ms 59988 KB Output is correct
116 Correct 25 ms 60684 KB Output is correct
117 Correct 21 ms 59352 KB Output is correct
118 Correct 21 ms 59332 KB Output is correct
119 Correct 24 ms 60864 KB Output is correct
120 Correct 24 ms 62032 KB Output is correct
121 Correct 24 ms 61012 KB Output is correct
122 Correct 26 ms 61904 KB Output is correct
123 Correct 24 ms 61904 KB Output is correct
124 Correct 31 ms 63696 KB Output is correct
125 Correct 62 ms 74684 KB Output is correct
126 Correct 36 ms 71744 KB Output is correct
127 Correct 90 ms 84376 KB Output is correct
128 Correct 78 ms 83088 KB Output is correct
129 Correct 72 ms 82996 KB Output is correct
130 Correct 60 ms 75760 KB Output is correct
131 Correct 60 ms 75968 KB Output is correct
132 Correct 27 ms 59448 KB Output is correct
133 Correct 21 ms 59088 KB Output is correct
134 Correct 21 ms 59092 KB Output is correct
135 Correct 22 ms 59472 KB Output is correct
136 Correct 26 ms 59336 KB Output is correct
137 Correct 24 ms 59732 KB Output is correct
138 Correct 22 ms 59988 KB Output is correct
139 Correct 30 ms 59476 KB Output is correct
140 Correct 29 ms 59340 KB Output is correct
141 Correct 22 ms 59988 KB Output is correct
142 Correct 22 ms 60020 KB Output is correct
143 Correct 21 ms 59900 KB Output is correct
144 Correct 24 ms 59440 KB Output is correct
145 Correct 28 ms 59468 KB Output is correct
146 Correct 27 ms 59348 KB Output is correct
147 Correct 28 ms 59476 KB Output is correct
148 Correct 27 ms 59700 KB Output is correct
149 Correct 36 ms 60068 KB Output is correct
150 Correct 27 ms 60664 KB Output is correct
151 Correct 21 ms 59348 KB Output is correct
152 Correct 22 ms 59348 KB Output is correct
153 Correct 23 ms 59476 KB Output is correct
154 Correct 44 ms 59988 KB Output is correct
155 Correct 27 ms 59348 KB Output is correct
156 Correct 24 ms 60884 KB Output is correct
157 Correct 40 ms 59852 KB Output is correct
158 Correct 24 ms 62024 KB Output is correct
159 Correct 49 ms 60228 KB Output is correct
160 Correct 35 ms 59988 KB Output is correct
161 Correct 24 ms 61012 KB Output is correct
162 Correct 24 ms 61904 KB Output is correct
163 Correct 23 ms 61896 KB Output is correct
164 Correct 29 ms 60016 KB Output is correct
165 Correct 41 ms 59968 KB Output is correct
166 Correct 47 ms 60028 KB Output is correct
167 Correct 44 ms 60116 KB Output is correct
168 Correct 46 ms 60684 KB Output is correct
169 Correct 41 ms 60632 KB Output is correct
170 Correct 40 ms 62928 KB Output is correct
171 Correct 35 ms 60992 KB Output is correct
172 Correct 43 ms 60592 KB Output is correct
173 Correct 22 ms 60080 KB Output is correct
174 Correct 28 ms 60108 KB Output is correct
175 Correct 81 ms 61824 KB Output is correct
176 Correct 61 ms 63088 KB Output is correct
177 Correct 137 ms 64688 KB Output is correct
178 Correct 35 ms 65808 KB Output is correct
179 Correct 175 ms 68240 KB Output is correct
180 Correct 322 ms 71240 KB Output is correct
181 Correct 322 ms 79984 KB Output is correct
182 Correct 320 ms 98064 KB Output is correct
183 Correct 234 ms 78192 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 21 ms 58964 KB Output is correct
2 Correct 20 ms 58956 KB Output is correct
3 Correct 21 ms 58964 KB Output is correct
4 Correct 21 ms 59000 KB Output is correct
5 Correct 25 ms 58964 KB Output is correct
6 Correct 21 ms 59080 KB Output is correct
7 Correct 20 ms 58964 KB Output is correct
8 Correct 21 ms 58964 KB Output is correct
9 Correct 21 ms 58964 KB Output is correct
10 Correct 20 ms 58952 KB Output is correct
11 Correct 22 ms 58964 KB Output is correct
12 Correct 21 ms 59088 KB Output is correct
13 Correct 20 ms 58964 KB Output is correct
14 Correct 20 ms 58964 KB Output is correct
15 Correct 20 ms 58964 KB Output is correct
16 Correct 21 ms 58964 KB Output is correct
17 Correct 21 ms 58992 KB Output is correct
18 Correct 22 ms 58964 KB Output is correct
19 Correct 32 ms 59468 KB Output is correct
20 Correct 27 ms 59348 KB Output is correct
21 Correct 22 ms 59980 KB Output is correct
22 Correct 31 ms 59476 KB Output is correct
23 Correct 27 ms 59356 KB Output is correct
24 Correct 24 ms 59604 KB Output is correct
25 Correct 27 ms 59476 KB Output is correct
26 Correct 21 ms 59340 KB Output is correct
27 Correct 21 ms 59368 KB Output is correct
28 Correct 23 ms 59544 KB Output is correct
29 Correct 38 ms 60012 KB Output is correct
30 Correct 29 ms 59476 KB Output is correct
31 Correct 23 ms 62076 KB Output is correct
32 Correct 47 ms 60196 KB Output is correct
33 Correct 37 ms 59988 KB Output is correct
34 Correct 27 ms 59980 KB Output is correct
35 Correct 42 ms 59928 KB Output is correct
36 Correct 37 ms 60944 KB Output is correct
37 Correct 41 ms 60592 KB Output is correct
38 Correct 21 ms 60080 KB Output is correct
39 Correct 316 ms 68288 KB Output is correct
40 Correct 28 ms 59988 KB Output is correct
41 Correct 27 ms 60072 KB Output is correct
42 Correct 56 ms 60400 KB Output is correct
43 Correct 47 ms 60500 KB Output is correct
44 Correct 61 ms 62948 KB Output is correct
45 Correct 66 ms 63620 KB Output is correct
46 Correct 35 ms 71636 KB Output is correct
47 Correct 355 ms 68800 KB Output is correct
48 Correct 270 ms 68052 KB Output is correct
49 Correct 56 ms 67360 KB Output is correct
50 Correct 143 ms 67260 KB Output is correct
51 Correct 272 ms 73800 KB Output is correct
52 Correct 185 ms 70140 KB Output is correct
53 Correct 239 ms 68484 KB Output is correct
54 Correct 20 ms 58964 KB Output is correct
55 Correct 20 ms 58964 KB Output is correct
56 Correct 20 ms 58964 KB Output is correct
57 Correct 20 ms 58964 KB Output is correct
58 Correct 21 ms 58964 KB Output is correct
59 Correct 21 ms 58964 KB Output is correct
60 Correct 21 ms 58908 KB Output is correct
61 Correct 21 ms 58964 KB Output is correct
62 Correct 21 ms 58936 KB Output is correct
63 Correct 23 ms 58964 KB Output is correct
64 Correct 21 ms 58964 KB Output is correct
65 Correct 23 ms 58964 KB Output is correct
66 Correct 21 ms 58964 KB Output is correct
67 Correct 21 ms 58964 KB Output is correct
68 Correct 21 ms 59028 KB Output is correct
69 Correct 22 ms 58964 KB Output is correct
70 Correct 21 ms 58964 KB Output is correct
71 Correct 21 ms 58964 KB Output is correct
72 Correct 21 ms 59024 KB Output is correct
73 Correct 23 ms 58964 KB Output is correct
74 Correct 24 ms 58964 KB Output is correct
75 Correct 22 ms 58964 KB Output is correct
76 Correct 23 ms 58956 KB Output is correct
77 Correct 21 ms 58964 KB Output is correct
78 Correct 21 ms 58920 KB Output is correct
79 Correct 21 ms 58964 KB Output is correct
80 Correct 21 ms 58924 KB Output is correct
81 Correct 21 ms 58956 KB Output is correct
82 Correct 21 ms 58964 KB Output is correct
83 Correct 20 ms 58964 KB Output is correct
84 Correct 22 ms 58964 KB Output is correct
85 Correct 21 ms 59016 KB Output is correct
86 Correct 21 ms 58964 KB Output is correct
87 Correct 21 ms 59012 KB Output is correct
88 Correct 21 ms 58964 KB Output is correct
89 Correct 21 ms 58964 KB Output is correct
90 Correct 21 ms 58964 KB Output is correct
91 Correct 23 ms 58956 KB Output is correct
92 Correct 21 ms 58964 KB Output is correct
93 Correct 22 ms 58964 KB Output is correct
94 Correct 21 ms 58964 KB Output is correct
95 Correct 20 ms 58992 KB Output is correct
96 Correct 20 ms 58964 KB Output is correct
97 Correct 21 ms 58964 KB Output is correct
98 Correct 21 ms 58964 KB Output is correct
99 Correct 20 ms 58964 KB Output is correct
100 Correct 20 ms 58964 KB Output is correct
101 Correct 20 ms 58964 KB Output is correct
102 Correct 21 ms 58964 KB Output is correct
103 Correct 21 ms 58960 KB Output is correct
104 Correct 20 ms 58960 KB Output is correct
105 Correct 20 ms 58948 KB Output is correct
106 Correct 21 ms 58964 KB Output is correct
107 Correct 21 ms 58964 KB Output is correct
108 Correct 21 ms 58964 KB Output is correct
109 Correct 21 ms 59008 KB Output is correct
110 Correct 24 ms 59348 KB Output is correct
111 Correct 22 ms 59856 KB Output is correct
112 Correct 22 ms 59960 KB Output is correct
113 Correct 22 ms 59988 KB Output is correct
114 Correct 22 ms 60020 KB Output is correct
115 Correct 22 ms 59988 KB Output is correct
116 Correct 25 ms 60684 KB Output is correct
117 Correct 21 ms 59352 KB Output is correct
118 Correct 21 ms 59332 KB Output is correct
119 Correct 24 ms 60864 KB Output is correct
120 Correct 24 ms 62032 KB Output is correct
121 Correct 24 ms 61012 KB Output is correct
122 Correct 26 ms 61904 KB Output is correct
123 Correct 24 ms 61904 KB Output is correct
124 Correct 31 ms 63696 KB Output is correct
125 Correct 62 ms 74684 KB Output is correct
126 Correct 36 ms 71744 KB Output is correct
127 Correct 90 ms 84376 KB Output is correct
128 Correct 78 ms 83088 KB Output is correct
129 Correct 72 ms 82996 KB Output is correct
130 Correct 60 ms 75760 KB Output is correct
131 Correct 60 ms 75968 KB Output is correct
132 Correct 27 ms 59448 KB Output is correct
133 Correct 21 ms 59088 KB Output is correct
134 Correct 21 ms 59092 KB Output is correct
135 Correct 22 ms 59472 KB Output is correct
136 Correct 26 ms 59336 KB Output is correct
137 Correct 24 ms 59732 KB Output is correct
138 Correct 22 ms 59988 KB Output is correct
139 Correct 30 ms 59476 KB Output is correct
140 Correct 29 ms 59340 KB Output is correct
141 Correct 22 ms 59988 KB Output is correct
142 Correct 22 ms 60020 KB Output is correct
143 Correct 21 ms 59900 KB Output is correct
144 Correct 24 ms 59440 KB Output is correct
145 Correct 28 ms 59468 KB Output is correct
146 Correct 27 ms 59348 KB Output is correct
147 Correct 28 ms 59476 KB Output is correct
148 Correct 27 ms 59700 KB Output is correct
149 Correct 36 ms 60068 KB Output is correct
150 Correct 27 ms 60664 KB Output is correct
151 Correct 21 ms 59348 KB Output is correct
152 Correct 22 ms 59348 KB Output is correct
153 Correct 23 ms 59476 KB Output is correct
154 Correct 44 ms 59988 KB Output is correct
155 Correct 27 ms 59348 KB Output is correct
156 Correct 24 ms 60884 KB Output is correct
157 Correct 40 ms 59852 KB Output is correct
158 Correct 24 ms 62024 KB Output is correct
159 Correct 49 ms 60228 KB Output is correct
160 Correct 35 ms 59988 KB Output is correct
161 Correct 24 ms 61012 KB Output is correct
162 Correct 24 ms 61904 KB Output is correct
163 Correct 23 ms 61896 KB Output is correct
164 Correct 29 ms 60016 KB Output is correct
165 Correct 41 ms 59968 KB Output is correct
166 Correct 47 ms 60028 KB Output is correct
167 Correct 44 ms 60116 KB Output is correct
168 Correct 46 ms 60684 KB Output is correct
169 Correct 41 ms 60632 KB Output is correct
170 Correct 40 ms 62928 KB Output is correct
171 Correct 35 ms 60992 KB Output is correct
172 Correct 43 ms 60592 KB Output is correct
173 Correct 22 ms 60080 KB Output is correct
174 Correct 28 ms 60108 KB Output is correct
175 Correct 81 ms 61824 KB Output is correct
176 Correct 61 ms 63088 KB Output is correct
177 Correct 137 ms 64688 KB Output is correct
178 Correct 35 ms 65808 KB Output is correct
179 Correct 175 ms 68240 KB Output is correct
180 Correct 322 ms 71240 KB Output is correct
181 Correct 322 ms 79984 KB Output is correct
182 Correct 320 ms 98064 KB Output is correct
183 Correct 234 ms 78192 KB Output is correct
184 Correct 672 ms 76992 KB Output is correct
185 Correct 96 ms 68072 KB Output is correct
186 Correct 68 ms 77248 KB Output is correct
187 Correct 50 ms 76892 KB Output is correct
188 Correct 187 ms 109648 KB Output is correct
189 Correct 544 ms 78240 KB Output is correct
190 Correct 224 ms 75852 KB Output is correct
191 Correct 191 ms 109552 KB Output is correct
192 Correct 176 ms 106852 KB Output is correct
193 Correct 114 ms 106728 KB Output is correct
194 Correct 135 ms 76676 KB Output is correct
195 Correct 345 ms 75568 KB Output is correct
196 Correct 494 ms 78440 KB Output is correct
197 Correct 244 ms 80480 KB Output is correct
198 Correct 433 ms 93272 KB Output is correct
199 Correct 411 ms 88600 KB Output is correct
200 Correct 282 ms 81952 KB Output is correct
201 Correct 495 ms 79852 KB Output is correct
202 Correct 587 ms 77632 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 21 ms 58964 KB Output is correct
2 Correct 20 ms 58956 KB Output is correct
3 Correct 21 ms 58964 KB Output is correct
4 Correct 21 ms 59000 KB Output is correct
5 Correct 25 ms 58964 KB Output is correct
6 Correct 21 ms 59080 KB Output is correct
7 Correct 20 ms 58964 KB Output is correct
8 Correct 21 ms 58964 KB Output is correct
9 Correct 21 ms 58964 KB Output is correct
10 Correct 20 ms 58952 KB Output is correct
11 Correct 22 ms 58964 KB Output is correct
12 Correct 21 ms 59088 KB Output is correct
13 Correct 20 ms 58964 KB Output is correct
14 Correct 20 ms 58964 KB Output is correct
15 Correct 20 ms 58964 KB Output is correct
16 Correct 21 ms 58964 KB Output is correct
17 Correct 21 ms 58992 KB Output is correct
18 Correct 22 ms 58964 KB Output is correct
19 Correct 32 ms 59468 KB Output is correct
20 Correct 27 ms 59348 KB Output is correct
21 Correct 22 ms 59980 KB Output is correct
22 Correct 31 ms 59476 KB Output is correct
23 Correct 27 ms 59356 KB Output is correct
24 Correct 24 ms 59604 KB Output is correct
25 Correct 27 ms 59476 KB Output is correct
26 Correct 21 ms 59340 KB Output is correct
27 Correct 21 ms 59368 KB Output is correct
28 Correct 23 ms 59544 KB Output is correct
29 Correct 38 ms 60012 KB Output is correct
30 Correct 29 ms 59476 KB Output is correct
31 Correct 23 ms 62076 KB Output is correct
32 Correct 47 ms 60196 KB Output is correct
33 Correct 37 ms 59988 KB Output is correct
34 Correct 27 ms 59980 KB Output is correct
35 Correct 42 ms 59928 KB Output is correct
36 Correct 37 ms 60944 KB Output is correct
37 Correct 41 ms 60592 KB Output is correct
38 Correct 21 ms 60080 KB Output is correct
39 Correct 316 ms 68288 KB Output is correct
40 Correct 28 ms 59988 KB Output is correct
41 Correct 27 ms 60072 KB Output is correct
42 Correct 56 ms 60400 KB Output is correct
43 Correct 47 ms 60500 KB Output is correct
44 Correct 61 ms 62948 KB Output is correct
45 Correct 66 ms 63620 KB Output is correct
46 Correct 35 ms 71636 KB Output is correct
47 Correct 355 ms 68800 KB Output is correct
48 Correct 270 ms 68052 KB Output is correct
49 Correct 56 ms 67360 KB Output is correct
50 Correct 143 ms 67260 KB Output is correct
51 Correct 272 ms 73800 KB Output is correct
52 Correct 185 ms 70140 KB Output is correct
53 Correct 239 ms 68484 KB Output is correct
54 Correct 20 ms 58964 KB Output is correct
55 Correct 20 ms 58964 KB Output is correct
56 Correct 20 ms 58964 KB Output is correct
57 Correct 20 ms 58964 KB Output is correct
58 Correct 21 ms 58964 KB Output is correct
59 Correct 21 ms 58964 KB Output is correct
60 Correct 21 ms 58908 KB Output is correct
61 Correct 21 ms 58964 KB Output is correct
62 Correct 21 ms 58936 KB Output is correct
63 Correct 23 ms 58964 KB Output is correct
64 Correct 21 ms 58964 KB Output is correct
65 Correct 23 ms 58964 KB Output is correct
66 Correct 21 ms 58964 KB Output is correct
67 Correct 21 ms 58964 KB Output is correct
68 Correct 21 ms 59028 KB Output is correct
69 Correct 22 ms 58964 KB Output is correct
70 Correct 21 ms 58964 KB Output is correct
71 Correct 21 ms 58964 KB Output is correct
72 Correct 21 ms 59024 KB Output is correct
73 Correct 23 ms 58964 KB Output is correct
74 Correct 24 ms 58964 KB Output is correct
75 Correct 22 ms 58964 KB Output is correct
76 Correct 23 ms 58956 KB Output is correct
77 Correct 21 ms 58964 KB Output is correct
78 Correct 21 ms 58920 KB Output is correct
79 Correct 21 ms 58964 KB Output is correct
80 Correct 21 ms 58924 KB Output is correct
81 Correct 21 ms 58956 KB Output is correct
82 Correct 21 ms 58964 KB Output is correct
83 Correct 20 ms 58964 KB Output is correct
84 Correct 22 ms 58964 KB Output is correct
85 Correct 21 ms 59016 KB Output is correct
86 Correct 21 ms 58964 KB Output is correct
87 Correct 21 ms 59012 KB Output is correct
88 Correct 21 ms 58964 KB Output is correct
89 Correct 21 ms 58964 KB Output is correct
90 Correct 21 ms 58964 KB Output is correct
91 Correct 23 ms 58956 KB Output is correct
92 Correct 21 ms 58964 KB Output is correct
93 Correct 22 ms 58964 KB Output is correct
94 Correct 21 ms 58964 KB Output is correct
95 Correct 20 ms 58992 KB Output is correct
96 Correct 20 ms 58964 KB Output is correct
97 Correct 21 ms 58964 KB Output is correct
98 Correct 21 ms 58964 KB Output is correct
99 Correct 20 ms 58964 KB Output is correct
100 Correct 20 ms 58964 KB Output is correct
101 Correct 20 ms 58964 KB Output is correct
102 Correct 21 ms 58964 KB Output is correct
103 Correct 21 ms 58960 KB Output is correct
104 Correct 20 ms 58960 KB Output is correct
105 Correct 20 ms 58948 KB Output is correct
106 Correct 21 ms 58964 KB Output is correct
107 Correct 21 ms 58964 KB Output is correct
108 Correct 21 ms 58964 KB Output is correct
109 Correct 21 ms 59008 KB Output is correct
110 Correct 24 ms 59348 KB Output is correct
111 Correct 22 ms 59856 KB Output is correct
112 Correct 22 ms 59960 KB Output is correct
113 Correct 22 ms 59988 KB Output is correct
114 Correct 22 ms 60020 KB Output is correct
115 Correct 22 ms 59988 KB Output is correct
116 Correct 25 ms 60684 KB Output is correct
117 Correct 21 ms 59352 KB Output is correct
118 Correct 21 ms 59332 KB Output is correct
119 Correct 24 ms 60864 KB Output is correct
120 Correct 24 ms 62032 KB Output is correct
121 Correct 24 ms 61012 KB Output is correct
122 Correct 26 ms 61904 KB Output is correct
123 Correct 24 ms 61904 KB Output is correct
124 Correct 31 ms 63696 KB Output is correct
125 Correct 62 ms 74684 KB Output is correct
126 Correct 36 ms 71744 KB Output is correct
127 Correct 90 ms 84376 KB Output is correct
128 Correct 78 ms 83088 KB Output is correct
129 Correct 72 ms 82996 KB Output is correct
130 Correct 60 ms 75760 KB Output is correct
131 Correct 60 ms 75968 KB Output is correct
132 Correct 27 ms 59448 KB Output is correct
133 Correct 21 ms 59088 KB Output is correct
134 Correct 21 ms 59092 KB Output is correct
135 Correct 22 ms 59472 KB Output is correct
136 Correct 26 ms 59336 KB Output is correct
137 Correct 24 ms 59732 KB Output is correct
138 Correct 22 ms 59988 KB Output is correct
139 Correct 30 ms 59476 KB Output is correct
140 Correct 29 ms 59340 KB Output is correct
141 Correct 22 ms 59988 KB Output is correct
142 Correct 22 ms 60020 KB Output is correct
143 Correct 21 ms 59900 KB Output is correct
144 Correct 24 ms 59440 KB Output is correct
145 Correct 28 ms 59468 KB Output is correct
146 Correct 27 ms 59348 KB Output is correct
147 Correct 28 ms 59476 KB Output is correct
148 Correct 27 ms 59700 KB Output is correct
149 Correct 36 ms 60068 KB Output is correct
150 Correct 27 ms 60664 KB Output is correct
151 Correct 21 ms 59348 KB Output is correct
152 Correct 22 ms 59348 KB Output is correct
153 Correct 23 ms 59476 KB Output is correct
154 Correct 44 ms 59988 KB Output is correct
155 Correct 27 ms 59348 KB Output is correct
156 Correct 24 ms 60884 KB Output is correct
157 Correct 40 ms 59852 KB Output is correct
158 Correct 24 ms 62024 KB Output is correct
159 Correct 49 ms 60228 KB Output is correct
160 Correct 35 ms 59988 KB Output is correct
161 Correct 24 ms 61012 KB Output is correct
162 Correct 24 ms 61904 KB Output is correct
163 Correct 23 ms 61896 KB Output is correct
164 Correct 29 ms 60016 KB Output is correct
165 Correct 41 ms 59968 KB Output is correct
166 Correct 47 ms 60028 KB Output is correct
167 Correct 44 ms 60116 KB Output is correct
168 Correct 46 ms 60684 KB Output is correct
169 Correct 41 ms 60632 KB Output is correct
170 Correct 40 ms 62928 KB Output is correct
171 Correct 35 ms 60992 KB Output is correct
172 Correct 43 ms 60592 KB Output is correct
173 Correct 22 ms 60080 KB Output is correct
174 Correct 28 ms 60108 KB Output is correct
175 Correct 81 ms 61824 KB Output is correct
176 Correct 61 ms 63088 KB Output is correct
177 Correct 137 ms 64688 KB Output is correct
178 Correct 35 ms 65808 KB Output is correct
179 Correct 175 ms 68240 KB Output is correct
180 Correct 322 ms 71240 KB Output is correct
181 Correct 322 ms 79984 KB Output is correct
182 Correct 320 ms 98064 KB Output is correct
183 Correct 234 ms 78192 KB Output is correct
184 Correct 672 ms 76992 KB Output is correct
185 Correct 96 ms 68072 KB Output is correct
186 Correct 68 ms 77248 KB Output is correct
187 Correct 50 ms 76892 KB Output is correct
188 Correct 187 ms 109648 KB Output is correct
189 Correct 544 ms 78240 KB Output is correct
190 Correct 224 ms 75852 KB Output is correct
191 Correct 191 ms 109552 KB Output is correct
192 Correct 176 ms 106852 KB Output is correct
193 Correct 114 ms 106728 KB Output is correct
194 Correct 135 ms 76676 KB Output is correct
195 Correct 345 ms 75568 KB Output is correct
196 Correct 494 ms 78440 KB Output is correct
197 Correct 244 ms 80480 KB Output is correct
198 Correct 433 ms 93272 KB Output is correct
199 Correct 411 ms 88600 KB Output is correct
200 Correct 282 ms 81952 KB Output is correct
201 Correct 495 ms 79852 KB Output is correct
202 Correct 587 ms 77632 KB Output is correct
203 Correct 1233 ms 94624 KB Output is correct
204 Correct 508 ms 180256 KB Output is correct
205 Correct 663 ms 83512 KB Output is correct
206 Correct 233 ms 89780 KB Output is correct
207 Correct 248 ms 159992 KB Output is correct
208 Correct 1276 ms 96984 KB Output is correct
209 Correct 947 ms 94520 KB Output is correct
210 Correct 235 ms 125768 KB Output is correct
211 Correct 269 ms 154580 KB Output is correct
212 Correct 251 ms 154160 KB Output is correct
213 Correct 220 ms 92196 KB Output is correct
214 Correct 552 ms 93280 KB Output is correct
215 Correct 1115 ms 96972 KB Output is correct
216 Correct 1240 ms 102912 KB Output is correct
217 Correct 1642 ms 130988 KB Output is correct
218 Correct 1122 ms 193288 KB Output is correct
219 Correct 729 ms 174812 KB Output is correct
220 Correct 106 ms 106972 KB Output is correct
221 Correct 214 ms 125136 KB Output is correct
222 Correct 1052 ms 300120 KB Output is correct
223 Correct 1238 ms 105564 KB Output is correct
224 Correct 1182 ms 100324 KB Output is correct
225 Correct 540 ms 95432 KB Output is correct