Submission #729013

# Submission time Handle Problem Language Result Execution time Memory
729013 2023-04-23T11:51:30 Z MilosMilutinovic Maze (JOI23_ho_t3) C++14
100 / 100
1136 ms 177740 KB
/**
 *    author:  wxhtzdy
 *    created: 12.02.2023 12:30:41
**/
#include <bits/stdc++.h>

using namespace std;

const int dx[] = {1, 0, -1, 0};
const int dy[] = {0, 1, 0, -1};

int n, m;

vector<vector<int>> fenw;

void modify(int i, int j, int v) {
  int x = i;
  while (x < n) {
    int y = j;
    while (y < m) {
      fenw[x][y] += v;
      y |= (y + 1);
    }
    x |= (x + 1);
  }
}

int get(int i, int j) {
  int v = 0;
  int x = i;
  while (x >= 0) {
    int y = j;
    while (y >= 0) {
      v += fenw[x][y];
      y = (y & (y + 1)) - 1;
    }
    x = (x & (x + 1)) - 1;
  }
  return v;
}        

int GetSum(int x1, int y1, int x2, int y2) {
  x1 = max(x1, 0);
  y1 = max(y1, 0);
  x2 = min(x2, n - 1);
  y2 = min(y2, m - 1);
  return get(x2, y2) - get(x2, y1 - 1) - get(x1 - 1, y2) + get(x1 - 1, y1 - 1);
}

bool Valid(int x, int y) {
  return 0 <= x && x < n && 0 <= y && y < m;
}

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);                      
  int k;
  cin >> n >> m >> k;
  int sx, sy;
  cin >> sx >> sy;
  --sx; --sy;
  int fx, fy;
  cin >> fx >> fy;
  --fx; --fy;
  vector<string> s(n);
  for (int i = 0; i < n; i++) {
    cin >> s[i];
  }                                         
  if (n > m) {
    swap(sx, sy);
    swap(fx, fy);
    vector<string> t(m, string(n, '.'));
    for (int j = 0; j < m; j++) {
      for (int i = 0; i < n; i++) {
        t[j][i] = s[i][j];
      }
    }
    swap(s, t);
    swap(n, m);
  }
  fenw.resize(n);
  for (int i = 0; i < n; i++) {
    fenw[i].resize(m);
    for (int j = 0; j < m; j++) {
      fenw[i][j] = 0;
    }
  }
  vector<pair<int, int>> que;
  que.emplace_back(sx, sy);
  vector<vector<bool>> was(n, vector<bool>(m));
  was[sx][sy] = true;
  vector<vector<bool>> rem(n, vector<bool>(m));
  vector<vector<bool>> qq(n, vector<bool>(m));
  vector<pair<int, int>> ff;
  vector<pair<int, int>> pp;
  vector<vector<pair<int, int>>> cl(n, vector<pair<int, int>>(m, {-1e9, -1e9}));
  for (int d = 0; d <= n * m; d++) {
    for (int b = 0; b < (int) que.size(); b++) {
      int x = que[b].first;
      int y = que[b].second;
      if (x == fx && y == fy) {
        printf("%d\n", d);
        return 0;
      }
      for (int dir = 0; dir < 4; dir++) {
        int nx = x + dx[dir];
        int ny = y + dy[dir];
        if (Valid(nx, ny) && s[nx][ny] == '.' && !was[nx][ny]) {
          was[nx][ny] = true;
          que.emplace_back(nx, ny);    
        }
      }
    } 
    auto Update = [&](int x, int y, int px, int py) {
      int my = max(abs(x - cl[x][y].first), abs(y - cl[x][y].second)) + 1;
      int his = max(abs(x - px), abs(y - py)) + 1;
      if (his < my) {
        cl[x][y] = make_pair(px, py);
      }
    };
    for (auto& p : que) {
      int x = p.first;
      int y = p.second;
      for (int dir = 0; dir < 4; dir++) {
        int nx = x + dx[dir];
        int ny = y + dy[dir];
        if (Valid(nx, ny) && !was[nx][ny] && !rem[nx][ny]) {
          rem[nx][ny] = true;
      //    cout << "updatovo" << " " << nx + 1 << " " << ny + 1 << '\n';
          Update(nx, ny, nx, ny);
          ff.emplace_back(nx, ny);
        }
      }
    }       
    for (int b = 0; b < (int) ff.size(); b++) {
      int x = ff[b].first;
      int y = ff[b].second;
      was[x][y] = true;
      //cells.emplace_back(p.first, p.second);
      for (int dir = 0; dir < 4; dir++) {
        int nx = x + dx[dir];
        int ny = y + dy[dir];
        if (Valid(nx, ny) && !was[nx][ny]) {
          Update(nx, ny, cl[x][y].first, cl[x][y].second);
        }
        if (Valid(nx, ny) && !was[nx][ny] && max(abs(nx - cl[nx][ny].first), abs(ny - cl[nx][ny].second)) + 1 <= k) {
          was[nx][ny] = true;
          ff.emplace_back(nx, ny);  
        }
      }
    }
    for (auto& p : pp) {
      qq[p.first][p.second] = false;  
    }
    pp.clear();
    que = ff;
    ff.clear();
  }
  return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 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 1 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 10 ms 1144 KB Output is correct
20 Correct 3 ms 1364 KB Output is correct
21 Correct 3 ms 1744 KB Output is correct
22 Correct 8 ms 1288 KB Output is correct
23 Correct 7 ms 1236 KB Output is correct
24 Correct 3 ms 1620 KB Output is correct
25 Correct 5 ms 1620 KB Output is correct
26 Correct 1 ms 1236 KB Output is correct
27 Correct 1 ms 1236 KB Output is correct
28 Correct 5 ms 1240 KB Output is correct
29 Correct 20 ms 2516 KB Output is correct
30 Correct 6 ms 1364 KB Output is correct
31 Correct 6 ms 4680 KB Output is correct
32 Correct 22 ms 2532 KB Output is correct
33 Correct 16 ms 2564 KB Output is correct
34 Correct 6 ms 3552 KB Output is correct
35 Correct 10 ms 3552 KB Output is correct
36 Correct 12 ms 2900 KB Output is correct
37 Correct 23 ms 2692 KB Output is correct
38 Correct 3 ms 2536 KB Output is correct
39 Correct 224 ms 21544 KB Output is correct
40 Correct 7 ms 2772 KB Output is correct
41 Correct 5 ms 4324 KB Output is correct
42 Correct 32 ms 3244 KB Output is correct
43 Correct 20 ms 4692 KB Output is correct
44 Correct 28 ms 11636 KB Output is correct
45 Correct 48 ms 12700 KB Output is correct
46 Correct 24 ms 25824 KB Output is correct
47 Correct 198 ms 21880 KB Output is correct
48 Correct 142 ms 21752 KB Output is correct
49 Correct 41 ms 33360 KB Output is correct
50 Correct 63 ms 33296 KB Output is correct
51 Correct 151 ms 23136 KB Output is correct
52 Correct 114 ms 21884 KB Output is correct
53 Correct 199 ms 21844 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 212 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 0 ms 340 KB Output is correct
23 Correct 0 ms 212 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 0 ms 212 KB Output is correct
26 Correct 0 ms 212 KB Output is correct
27 Correct 0 ms 212 KB Output is correct
28 Correct 0 ms 212 KB Output is correct
29 Correct 0 ms 212 KB Output is correct
30 Correct 0 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 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 1 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 1 ms 212 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 0 ms 340 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 1 ms 340 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 352 KB Output is correct
24 Correct 1 ms 340 KB Output is correct
25 Correct 2 ms 852 KB Output is correct
26 Correct 3 ms 1408 KB Output is correct
27 Correct 3 ms 1744 KB Output is correct
28 Correct 3 ms 1872 KB Output is correct
29 Correct 6 ms 2260 KB Output is correct
30 Correct 7 ms 2260 KB Output is correct
31 Correct 6 ms 1244 KB Output is correct
32 Correct 2 ms 1204 KB Output is correct
33 Correct 2 ms 1252 KB Output is correct
34 Correct 5 ms 3168 KB Output is correct
35 Correct 6 ms 4680 KB Output is correct
36 Correct 5 ms 3684 KB Output is correct
37 Correct 15 ms 4908 KB Output is correct
38 Correct 10 ms 4972 KB Output is correct
39 Correct 15 ms 8776 KB Output is correct
40 Correct 53 ms 26892 KB Output is correct
41 Correct 23 ms 26000 KB Output is correct
42 Correct 75 ms 38212 KB Output is correct
43 Correct 114 ms 45400 KB Output is correct
44 Correct 144 ms 45544 KB Output is correct
45 Correct 55 ms 29980 KB Output is correct
46 Correct 50 ms 30068 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 212 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 0 ms 340 KB Output is correct
23 Correct 0 ms 212 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 0 ms 212 KB Output is correct
26 Correct 0 ms 212 KB Output is correct
27 Correct 0 ms 212 KB Output is correct
28 Correct 0 ms 212 KB Output is correct
29 Correct 0 ms 212 KB Output is correct
30 Correct 0 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 7 ms 1236 KB Output is correct
34 Correct 0 ms 340 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 2 ms 852 KB Output is correct
37 Correct 3 ms 1368 KB Output is correct
38 Correct 3 ms 1372 KB Output is correct
39 Correct 3 ms 1796 KB Output is correct
40 Correct 8 ms 1236 KB Output is correct
41 Correct 9 ms 1228 KB Output is correct
42 Correct 3 ms 1872 KB Output is correct
43 Correct 6 ms 2248 KB Output is correct
44 Correct 5 ms 2252 KB Output is correct
45 Correct 3 ms 1620 KB Output is correct
46 Correct 5 ms 1620 KB Output is correct
47 Correct 5 ms 1364 KB Output is correct
48 Correct 6 ms 1156 KB Output is correct
49 Correct 5 ms 1108 KB Output is correct
50 Correct 7 ms 1236 KB Output is correct
51 Correct 4 ms 1236 KB Output is correct
52 Correct 2 ms 1284 KB Output is correct
53 Correct 2 ms 1236 KB Output is correct
54 Correct 7 ms 1236 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 340 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 0 ms 340 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 212 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 340 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 0 ms 340 KB Output is correct
23 Correct 0 ms 212 KB Output is correct
24 Correct 0 ms 212 KB Output is correct
25 Correct 0 ms 212 KB Output is correct
26 Correct 0 ms 212 KB Output is correct
27 Correct 0 ms 212 KB Output is correct
28 Correct 0 ms 212 KB Output is correct
29 Correct 0 ms 212 KB Output is correct
30 Correct 0 ms 340 KB Output is correct
31 Correct 1 ms 340 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 7 ms 1236 KB Output is correct
34 Correct 0 ms 340 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 2 ms 852 KB Output is correct
37 Correct 3 ms 1368 KB Output is correct
38 Correct 3 ms 1372 KB Output is correct
39 Correct 3 ms 1796 KB Output is correct
40 Correct 8 ms 1236 KB Output is correct
41 Correct 9 ms 1228 KB Output is correct
42 Correct 3 ms 1872 KB Output is correct
43 Correct 6 ms 2248 KB Output is correct
44 Correct 5 ms 2252 KB Output is correct
45 Correct 3 ms 1620 KB Output is correct
46 Correct 5 ms 1620 KB Output is correct
47 Correct 5 ms 1364 KB Output is correct
48 Correct 6 ms 1156 KB Output is correct
49 Correct 5 ms 1108 KB Output is correct
50 Correct 7 ms 1236 KB Output is correct
51 Correct 4 ms 1236 KB Output is correct
52 Correct 2 ms 1284 KB Output is correct
53 Correct 2 ms 1236 KB Output is correct
54 Correct 7 ms 1236 KB Output is correct
55 Correct 30 ms 2548 KB Output is correct
56 Correct 6 ms 1364 KB Output is correct
57 Correct 6 ms 3224 KB Output is correct
58 Correct 16 ms 2352 KB Output is correct
59 Correct 9 ms 4672 KB Output is correct
60 Correct 28 ms 2644 KB Output is correct
61 Correct 22 ms 2532 KB Output is correct
62 Correct 8 ms 3676 KB Output is correct
63 Correct 12 ms 4944 KB Output is correct
64 Correct 12 ms 5016 KB Output is correct
65 Correct 8 ms 3608 KB Output is correct
66 Correct 11 ms 3552 KB Output is correct
67 Correct 15 ms 3032 KB Output is correct
68 Correct 14 ms 2512 KB Output is correct
69 Correct 13 ms 2520 KB Output is correct
70 Correct 14 ms 2516 KB Output is correct
71 Correct 13 ms 2772 KB Output is correct
72 Correct 11 ms 2840 KB Output is correct
73 Correct 20 ms 2716 KB Output is correct
74 Correct 4 ms 2516 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 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 1 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 10 ms 1144 KB Output is correct
20 Correct 3 ms 1364 KB Output is correct
21 Correct 3 ms 1744 KB Output is correct
22 Correct 8 ms 1288 KB Output is correct
23 Correct 7 ms 1236 KB Output is correct
24 Correct 3 ms 1620 KB Output is correct
25 Correct 5 ms 1620 KB Output is correct
26 Correct 1 ms 1236 KB Output is correct
27 Correct 1 ms 1236 KB Output is correct
28 Correct 5 ms 1240 KB Output is correct
29 Correct 20 ms 2516 KB Output is correct
30 Correct 6 ms 1364 KB Output is correct
31 Correct 6 ms 4680 KB Output is correct
32 Correct 22 ms 2532 KB Output is correct
33 Correct 16 ms 2564 KB Output is correct
34 Correct 6 ms 3552 KB Output is correct
35 Correct 10 ms 3552 KB Output is correct
36 Correct 12 ms 2900 KB Output is correct
37 Correct 23 ms 2692 KB Output is correct
38 Correct 3 ms 2536 KB Output is correct
39 Correct 224 ms 21544 KB Output is correct
40 Correct 7 ms 2772 KB Output is correct
41 Correct 5 ms 4324 KB Output is correct
42 Correct 32 ms 3244 KB Output is correct
43 Correct 20 ms 4692 KB Output is correct
44 Correct 28 ms 11636 KB Output is correct
45 Correct 48 ms 12700 KB Output is correct
46 Correct 24 ms 25824 KB Output is correct
47 Correct 198 ms 21880 KB Output is correct
48 Correct 142 ms 21752 KB Output is correct
49 Correct 41 ms 33360 KB Output is correct
50 Correct 63 ms 33296 KB Output is correct
51 Correct 151 ms 23136 KB Output is correct
52 Correct 114 ms 21884 KB Output is correct
53 Correct 199 ms 21844 KB Output is correct
54 Correct 0 ms 212 KB Output is correct
55 Correct 0 ms 212 KB Output is correct
56 Correct 0 ms 212 KB Output is correct
57 Correct 0 ms 212 KB Output is correct
58 Correct 1 ms 340 KB Output is correct
59 Correct 0 ms 212 KB Output is correct
60 Correct 0 ms 212 KB Output is correct
61 Correct 0 ms 212 KB Output is correct
62 Correct 1 ms 340 KB Output is correct
63 Correct 1 ms 340 KB Output is correct
64 Correct 0 ms 340 KB Output is correct
65 Correct 1 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 0 ms 212 KB Output is correct
69 Correct 0 ms 212 KB Output is correct
70 Correct 0 ms 212 KB Output is correct
71 Correct 0 ms 212 KB Output is correct
72 Correct 0 ms 340 KB Output is correct
73 Correct 0 ms 212 KB Output is correct
74 Correct 0 ms 212 KB Output is correct
75 Correct 0 ms 340 KB Output is correct
76 Correct 0 ms 212 KB Output is correct
77 Correct 0 ms 212 KB Output is correct
78 Correct 0 ms 212 KB Output is correct
79 Correct 0 ms 212 KB Output is correct
80 Correct 0 ms 212 KB Output is correct
81 Correct 0 ms 212 KB Output is correct
82 Correct 0 ms 212 KB Output is correct
83 Correct 0 ms 340 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 1 ms 340 KB Output is correct
86 Correct 0 ms 212 KB Output is correct
87 Correct 0 ms 212 KB Output is correct
88 Correct 1 ms 212 KB Output is correct
89 Correct 1 ms 212 KB Output is correct
90 Correct 0 ms 212 KB Output is correct
91 Correct 0 ms 212 KB Output is correct
92 Correct 0 ms 340 KB Output is correct
93 Correct 1 ms 340 KB Output is correct
94 Correct 0 ms 340 KB Output is correct
95 Correct 1 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 1 ms 212 KB Output is correct
99 Correct 1 ms 340 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 0 ms 340 KB Output is correct
102 Correct 0 ms 212 KB Output is correct
103 Correct 0 ms 212 KB Output is correct
104 Correct 1 ms 212 KB Output is correct
105 Correct 0 ms 212 KB Output is correct
106 Correct 1 ms 340 KB Output is correct
107 Correct 1 ms 340 KB Output is correct
108 Correct 1 ms 352 KB Output is correct
109 Correct 1 ms 340 KB Output is correct
110 Correct 2 ms 852 KB Output is correct
111 Correct 3 ms 1408 KB Output is correct
112 Correct 3 ms 1744 KB Output is correct
113 Correct 3 ms 1872 KB Output is correct
114 Correct 6 ms 2260 KB Output is correct
115 Correct 7 ms 2260 KB Output is correct
116 Correct 6 ms 1244 KB Output is correct
117 Correct 2 ms 1204 KB Output is correct
118 Correct 2 ms 1252 KB Output is correct
119 Correct 5 ms 3168 KB Output is correct
120 Correct 6 ms 4680 KB Output is correct
121 Correct 5 ms 3684 KB Output is correct
122 Correct 15 ms 4908 KB Output is correct
123 Correct 10 ms 4972 KB Output is correct
124 Correct 15 ms 8776 KB Output is correct
125 Correct 53 ms 26892 KB Output is correct
126 Correct 23 ms 26000 KB Output is correct
127 Correct 75 ms 38212 KB Output is correct
128 Correct 114 ms 45400 KB Output is correct
129 Correct 144 ms 45544 KB Output is correct
130 Correct 55 ms 29980 KB Output is correct
131 Correct 50 ms 30068 KB Output is correct
132 Correct 7 ms 1236 KB Output is correct
133 Correct 0 ms 340 KB Output is correct
134 Correct 1 ms 340 KB Output is correct
135 Correct 2 ms 852 KB Output is correct
136 Correct 3 ms 1368 KB Output is correct
137 Correct 3 ms 1372 KB Output is correct
138 Correct 3 ms 1796 KB Output is correct
139 Correct 8 ms 1236 KB Output is correct
140 Correct 9 ms 1228 KB Output is correct
141 Correct 3 ms 1872 KB Output is correct
142 Correct 6 ms 2248 KB Output is correct
143 Correct 5 ms 2252 KB Output is correct
144 Correct 3 ms 1620 KB Output is correct
145 Correct 5 ms 1620 KB Output is correct
146 Correct 5 ms 1364 KB Output is correct
147 Correct 6 ms 1156 KB Output is correct
148 Correct 5 ms 1108 KB Output is correct
149 Correct 7 ms 1236 KB Output is correct
150 Correct 4 ms 1236 KB Output is correct
151 Correct 2 ms 1284 KB Output is correct
152 Correct 2 ms 1236 KB Output is correct
153 Correct 7 ms 1236 KB Output is correct
154 Correct 30 ms 2548 KB Output is correct
155 Correct 6 ms 1364 KB Output is correct
156 Correct 6 ms 3224 KB Output is correct
157 Correct 16 ms 2352 KB Output is correct
158 Correct 9 ms 4672 KB Output is correct
159 Correct 28 ms 2644 KB Output is correct
160 Correct 22 ms 2532 KB Output is correct
161 Correct 8 ms 3676 KB Output is correct
162 Correct 12 ms 4944 KB Output is correct
163 Correct 12 ms 5016 KB Output is correct
164 Correct 8 ms 3608 KB Output is correct
165 Correct 11 ms 3552 KB Output is correct
166 Correct 15 ms 3032 KB Output is correct
167 Correct 14 ms 2512 KB Output is correct
168 Correct 13 ms 2520 KB Output is correct
169 Correct 14 ms 2516 KB Output is correct
170 Correct 13 ms 2772 KB Output is correct
171 Correct 11 ms 2840 KB Output is correct
172 Correct 20 ms 2716 KB Output is correct
173 Correct 4 ms 2516 KB Output is correct
174 Correct 7 ms 3156 KB Output is correct
175 Correct 32 ms 5184 KB Output is correct
176 Correct 35 ms 13040 KB Output is correct
177 Correct 70 ms 14932 KB Output is correct
178 Correct 19 ms 19232 KB Output is correct
179 Correct 76 ms 22068 KB Output is correct
180 Correct 144 ms 22016 KB Output is correct
181 Correct 239 ms 22424 KB Output is correct
182 Correct 148 ms 23368 KB Output is correct
183 Correct 140 ms 24944 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 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 1 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 10 ms 1144 KB Output is correct
20 Correct 3 ms 1364 KB Output is correct
21 Correct 3 ms 1744 KB Output is correct
22 Correct 8 ms 1288 KB Output is correct
23 Correct 7 ms 1236 KB Output is correct
24 Correct 3 ms 1620 KB Output is correct
25 Correct 5 ms 1620 KB Output is correct
26 Correct 1 ms 1236 KB Output is correct
27 Correct 1 ms 1236 KB Output is correct
28 Correct 5 ms 1240 KB Output is correct
29 Correct 20 ms 2516 KB Output is correct
30 Correct 6 ms 1364 KB Output is correct
31 Correct 6 ms 4680 KB Output is correct
32 Correct 22 ms 2532 KB Output is correct
33 Correct 16 ms 2564 KB Output is correct
34 Correct 6 ms 3552 KB Output is correct
35 Correct 10 ms 3552 KB Output is correct
36 Correct 12 ms 2900 KB Output is correct
37 Correct 23 ms 2692 KB Output is correct
38 Correct 3 ms 2536 KB Output is correct
39 Correct 224 ms 21544 KB Output is correct
40 Correct 7 ms 2772 KB Output is correct
41 Correct 5 ms 4324 KB Output is correct
42 Correct 32 ms 3244 KB Output is correct
43 Correct 20 ms 4692 KB Output is correct
44 Correct 28 ms 11636 KB Output is correct
45 Correct 48 ms 12700 KB Output is correct
46 Correct 24 ms 25824 KB Output is correct
47 Correct 198 ms 21880 KB Output is correct
48 Correct 142 ms 21752 KB Output is correct
49 Correct 41 ms 33360 KB Output is correct
50 Correct 63 ms 33296 KB Output is correct
51 Correct 151 ms 23136 KB Output is correct
52 Correct 114 ms 21884 KB Output is correct
53 Correct 199 ms 21844 KB Output is correct
54 Correct 0 ms 212 KB Output is correct
55 Correct 0 ms 212 KB Output is correct
56 Correct 0 ms 212 KB Output is correct
57 Correct 0 ms 212 KB Output is correct
58 Correct 1 ms 340 KB Output is correct
59 Correct 0 ms 212 KB Output is correct
60 Correct 0 ms 212 KB Output is correct
61 Correct 0 ms 212 KB Output is correct
62 Correct 1 ms 340 KB Output is correct
63 Correct 1 ms 340 KB Output is correct
64 Correct 0 ms 340 KB Output is correct
65 Correct 1 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 0 ms 212 KB Output is correct
69 Correct 0 ms 212 KB Output is correct
70 Correct 0 ms 212 KB Output is correct
71 Correct 0 ms 212 KB Output is correct
72 Correct 0 ms 340 KB Output is correct
73 Correct 0 ms 212 KB Output is correct
74 Correct 0 ms 212 KB Output is correct
75 Correct 0 ms 340 KB Output is correct
76 Correct 0 ms 212 KB Output is correct
77 Correct 0 ms 212 KB Output is correct
78 Correct 0 ms 212 KB Output is correct
79 Correct 0 ms 212 KB Output is correct
80 Correct 0 ms 212 KB Output is correct
81 Correct 0 ms 212 KB Output is correct
82 Correct 0 ms 212 KB Output is correct
83 Correct 0 ms 340 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 1 ms 340 KB Output is correct
86 Correct 0 ms 212 KB Output is correct
87 Correct 0 ms 212 KB Output is correct
88 Correct 1 ms 212 KB Output is correct
89 Correct 1 ms 212 KB Output is correct
90 Correct 0 ms 212 KB Output is correct
91 Correct 0 ms 212 KB Output is correct
92 Correct 0 ms 340 KB Output is correct
93 Correct 1 ms 340 KB Output is correct
94 Correct 0 ms 340 KB Output is correct
95 Correct 1 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 1 ms 212 KB Output is correct
99 Correct 1 ms 340 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 0 ms 340 KB Output is correct
102 Correct 0 ms 212 KB Output is correct
103 Correct 0 ms 212 KB Output is correct
104 Correct 1 ms 212 KB Output is correct
105 Correct 0 ms 212 KB Output is correct
106 Correct 1 ms 340 KB Output is correct
107 Correct 1 ms 340 KB Output is correct
108 Correct 1 ms 352 KB Output is correct
109 Correct 1 ms 340 KB Output is correct
110 Correct 2 ms 852 KB Output is correct
111 Correct 3 ms 1408 KB Output is correct
112 Correct 3 ms 1744 KB Output is correct
113 Correct 3 ms 1872 KB Output is correct
114 Correct 6 ms 2260 KB Output is correct
115 Correct 7 ms 2260 KB Output is correct
116 Correct 6 ms 1244 KB Output is correct
117 Correct 2 ms 1204 KB Output is correct
118 Correct 2 ms 1252 KB Output is correct
119 Correct 5 ms 3168 KB Output is correct
120 Correct 6 ms 4680 KB Output is correct
121 Correct 5 ms 3684 KB Output is correct
122 Correct 15 ms 4908 KB Output is correct
123 Correct 10 ms 4972 KB Output is correct
124 Correct 15 ms 8776 KB Output is correct
125 Correct 53 ms 26892 KB Output is correct
126 Correct 23 ms 26000 KB Output is correct
127 Correct 75 ms 38212 KB Output is correct
128 Correct 114 ms 45400 KB Output is correct
129 Correct 144 ms 45544 KB Output is correct
130 Correct 55 ms 29980 KB Output is correct
131 Correct 50 ms 30068 KB Output is correct
132 Correct 7 ms 1236 KB Output is correct
133 Correct 0 ms 340 KB Output is correct
134 Correct 1 ms 340 KB Output is correct
135 Correct 2 ms 852 KB Output is correct
136 Correct 3 ms 1368 KB Output is correct
137 Correct 3 ms 1372 KB Output is correct
138 Correct 3 ms 1796 KB Output is correct
139 Correct 8 ms 1236 KB Output is correct
140 Correct 9 ms 1228 KB Output is correct
141 Correct 3 ms 1872 KB Output is correct
142 Correct 6 ms 2248 KB Output is correct
143 Correct 5 ms 2252 KB Output is correct
144 Correct 3 ms 1620 KB Output is correct
145 Correct 5 ms 1620 KB Output is correct
146 Correct 5 ms 1364 KB Output is correct
147 Correct 6 ms 1156 KB Output is correct
148 Correct 5 ms 1108 KB Output is correct
149 Correct 7 ms 1236 KB Output is correct
150 Correct 4 ms 1236 KB Output is correct
151 Correct 2 ms 1284 KB Output is correct
152 Correct 2 ms 1236 KB Output is correct
153 Correct 7 ms 1236 KB Output is correct
154 Correct 30 ms 2548 KB Output is correct
155 Correct 6 ms 1364 KB Output is correct
156 Correct 6 ms 3224 KB Output is correct
157 Correct 16 ms 2352 KB Output is correct
158 Correct 9 ms 4672 KB Output is correct
159 Correct 28 ms 2644 KB Output is correct
160 Correct 22 ms 2532 KB Output is correct
161 Correct 8 ms 3676 KB Output is correct
162 Correct 12 ms 4944 KB Output is correct
163 Correct 12 ms 5016 KB Output is correct
164 Correct 8 ms 3608 KB Output is correct
165 Correct 11 ms 3552 KB Output is correct
166 Correct 15 ms 3032 KB Output is correct
167 Correct 14 ms 2512 KB Output is correct
168 Correct 13 ms 2520 KB Output is correct
169 Correct 14 ms 2516 KB Output is correct
170 Correct 13 ms 2772 KB Output is correct
171 Correct 11 ms 2840 KB Output is correct
172 Correct 20 ms 2716 KB Output is correct
173 Correct 4 ms 2516 KB Output is correct
174 Correct 7 ms 3156 KB Output is correct
175 Correct 32 ms 5184 KB Output is correct
176 Correct 35 ms 13040 KB Output is correct
177 Correct 70 ms 14932 KB Output is correct
178 Correct 19 ms 19232 KB Output is correct
179 Correct 76 ms 22068 KB Output is correct
180 Correct 144 ms 22016 KB Output is correct
181 Correct 239 ms 22424 KB Output is correct
182 Correct 148 ms 23368 KB Output is correct
183 Correct 140 ms 24944 KB Output is correct
184 Correct 562 ms 43344 KB Output is correct
185 Correct 53 ms 23940 KB Output is correct
186 Correct 58 ms 33304 KB Output is correct
187 Correct 41 ms 32212 KB Output is correct
188 Correct 129 ms 75912 KB Output is correct
189 Correct 411 ms 43724 KB Output is correct
190 Correct 192 ms 43024 KB Output is correct
191 Correct 108 ms 76176 KB Output is correct
192 Correct 262 ms 89964 KB Output is correct
193 Correct 311 ms 90128 KB Output is correct
194 Correct 110 ms 65712 KB Output is correct
195 Correct 141 ms 65232 KB Output is correct
196 Correct 296 ms 43060 KB Output is correct
197 Correct 145 ms 43764 KB Output is correct
198 Correct 185 ms 44196 KB Output is correct
199 Correct 286 ms 45824 KB Output is correct
200 Correct 206 ms 43280 KB Output is correct
201 Correct 387 ms 44108 KB Output is correct
202 Correct 511 ms 43776 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 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 1 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 0 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 340 KB Output is correct
17 Correct 1 ms 340 KB Output is correct
18 Correct 1 ms 340 KB Output is correct
19 Correct 10 ms 1144 KB Output is correct
20 Correct 3 ms 1364 KB Output is correct
21 Correct 3 ms 1744 KB Output is correct
22 Correct 8 ms 1288 KB Output is correct
23 Correct 7 ms 1236 KB Output is correct
24 Correct 3 ms 1620 KB Output is correct
25 Correct 5 ms 1620 KB Output is correct
26 Correct 1 ms 1236 KB Output is correct
27 Correct 1 ms 1236 KB Output is correct
28 Correct 5 ms 1240 KB Output is correct
29 Correct 20 ms 2516 KB Output is correct
30 Correct 6 ms 1364 KB Output is correct
31 Correct 6 ms 4680 KB Output is correct
32 Correct 22 ms 2532 KB Output is correct
33 Correct 16 ms 2564 KB Output is correct
34 Correct 6 ms 3552 KB Output is correct
35 Correct 10 ms 3552 KB Output is correct
36 Correct 12 ms 2900 KB Output is correct
37 Correct 23 ms 2692 KB Output is correct
38 Correct 3 ms 2536 KB Output is correct
39 Correct 224 ms 21544 KB Output is correct
40 Correct 7 ms 2772 KB Output is correct
41 Correct 5 ms 4324 KB Output is correct
42 Correct 32 ms 3244 KB Output is correct
43 Correct 20 ms 4692 KB Output is correct
44 Correct 28 ms 11636 KB Output is correct
45 Correct 48 ms 12700 KB Output is correct
46 Correct 24 ms 25824 KB Output is correct
47 Correct 198 ms 21880 KB Output is correct
48 Correct 142 ms 21752 KB Output is correct
49 Correct 41 ms 33360 KB Output is correct
50 Correct 63 ms 33296 KB Output is correct
51 Correct 151 ms 23136 KB Output is correct
52 Correct 114 ms 21884 KB Output is correct
53 Correct 199 ms 21844 KB Output is correct
54 Correct 0 ms 212 KB Output is correct
55 Correct 0 ms 212 KB Output is correct
56 Correct 0 ms 212 KB Output is correct
57 Correct 0 ms 212 KB Output is correct
58 Correct 1 ms 340 KB Output is correct
59 Correct 0 ms 212 KB Output is correct
60 Correct 0 ms 212 KB Output is correct
61 Correct 0 ms 212 KB Output is correct
62 Correct 1 ms 340 KB Output is correct
63 Correct 1 ms 340 KB Output is correct
64 Correct 0 ms 340 KB Output is correct
65 Correct 1 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 0 ms 212 KB Output is correct
69 Correct 0 ms 212 KB Output is correct
70 Correct 0 ms 212 KB Output is correct
71 Correct 0 ms 212 KB Output is correct
72 Correct 0 ms 340 KB Output is correct
73 Correct 0 ms 212 KB Output is correct
74 Correct 0 ms 212 KB Output is correct
75 Correct 0 ms 340 KB Output is correct
76 Correct 0 ms 212 KB Output is correct
77 Correct 0 ms 212 KB Output is correct
78 Correct 0 ms 212 KB Output is correct
79 Correct 0 ms 212 KB Output is correct
80 Correct 0 ms 212 KB Output is correct
81 Correct 0 ms 212 KB Output is correct
82 Correct 0 ms 212 KB Output is correct
83 Correct 0 ms 340 KB Output is correct
84 Correct 1 ms 340 KB Output is correct
85 Correct 1 ms 340 KB Output is correct
86 Correct 0 ms 212 KB Output is correct
87 Correct 0 ms 212 KB Output is correct
88 Correct 1 ms 212 KB Output is correct
89 Correct 1 ms 212 KB Output is correct
90 Correct 0 ms 212 KB Output is correct
91 Correct 0 ms 212 KB Output is correct
92 Correct 0 ms 340 KB Output is correct
93 Correct 1 ms 340 KB Output is correct
94 Correct 0 ms 340 KB Output is correct
95 Correct 1 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 1 ms 212 KB Output is correct
99 Correct 1 ms 340 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 0 ms 340 KB Output is correct
102 Correct 0 ms 212 KB Output is correct
103 Correct 0 ms 212 KB Output is correct
104 Correct 1 ms 212 KB Output is correct
105 Correct 0 ms 212 KB Output is correct
106 Correct 1 ms 340 KB Output is correct
107 Correct 1 ms 340 KB Output is correct
108 Correct 1 ms 352 KB Output is correct
109 Correct 1 ms 340 KB Output is correct
110 Correct 2 ms 852 KB Output is correct
111 Correct 3 ms 1408 KB Output is correct
112 Correct 3 ms 1744 KB Output is correct
113 Correct 3 ms 1872 KB Output is correct
114 Correct 6 ms 2260 KB Output is correct
115 Correct 7 ms 2260 KB Output is correct
116 Correct 6 ms 1244 KB Output is correct
117 Correct 2 ms 1204 KB Output is correct
118 Correct 2 ms 1252 KB Output is correct
119 Correct 5 ms 3168 KB Output is correct
120 Correct 6 ms 4680 KB Output is correct
121 Correct 5 ms 3684 KB Output is correct
122 Correct 15 ms 4908 KB Output is correct
123 Correct 10 ms 4972 KB Output is correct
124 Correct 15 ms 8776 KB Output is correct
125 Correct 53 ms 26892 KB Output is correct
126 Correct 23 ms 26000 KB Output is correct
127 Correct 75 ms 38212 KB Output is correct
128 Correct 114 ms 45400 KB Output is correct
129 Correct 144 ms 45544 KB Output is correct
130 Correct 55 ms 29980 KB Output is correct
131 Correct 50 ms 30068 KB Output is correct
132 Correct 7 ms 1236 KB Output is correct
133 Correct 0 ms 340 KB Output is correct
134 Correct 1 ms 340 KB Output is correct
135 Correct 2 ms 852 KB Output is correct
136 Correct 3 ms 1368 KB Output is correct
137 Correct 3 ms 1372 KB Output is correct
138 Correct 3 ms 1796 KB Output is correct
139 Correct 8 ms 1236 KB Output is correct
140 Correct 9 ms 1228 KB Output is correct
141 Correct 3 ms 1872 KB Output is correct
142 Correct 6 ms 2248 KB Output is correct
143 Correct 5 ms 2252 KB Output is correct
144 Correct 3 ms 1620 KB Output is correct
145 Correct 5 ms 1620 KB Output is correct
146 Correct 5 ms 1364 KB Output is correct
147 Correct 6 ms 1156 KB Output is correct
148 Correct 5 ms 1108 KB Output is correct
149 Correct 7 ms 1236 KB Output is correct
150 Correct 4 ms 1236 KB Output is correct
151 Correct 2 ms 1284 KB Output is correct
152 Correct 2 ms 1236 KB Output is correct
153 Correct 7 ms 1236 KB Output is correct
154 Correct 30 ms 2548 KB Output is correct
155 Correct 6 ms 1364 KB Output is correct
156 Correct 6 ms 3224 KB Output is correct
157 Correct 16 ms 2352 KB Output is correct
158 Correct 9 ms 4672 KB Output is correct
159 Correct 28 ms 2644 KB Output is correct
160 Correct 22 ms 2532 KB Output is correct
161 Correct 8 ms 3676 KB Output is correct
162 Correct 12 ms 4944 KB Output is correct
163 Correct 12 ms 5016 KB Output is correct
164 Correct 8 ms 3608 KB Output is correct
165 Correct 11 ms 3552 KB Output is correct
166 Correct 15 ms 3032 KB Output is correct
167 Correct 14 ms 2512 KB Output is correct
168 Correct 13 ms 2520 KB Output is correct
169 Correct 14 ms 2516 KB Output is correct
170 Correct 13 ms 2772 KB Output is correct
171 Correct 11 ms 2840 KB Output is correct
172 Correct 20 ms 2716 KB Output is correct
173 Correct 4 ms 2516 KB Output is correct
174 Correct 7 ms 3156 KB Output is correct
175 Correct 32 ms 5184 KB Output is correct
176 Correct 35 ms 13040 KB Output is correct
177 Correct 70 ms 14932 KB Output is correct
178 Correct 19 ms 19232 KB Output is correct
179 Correct 76 ms 22068 KB Output is correct
180 Correct 144 ms 22016 KB Output is correct
181 Correct 239 ms 22424 KB Output is correct
182 Correct 148 ms 23368 KB Output is correct
183 Correct 140 ms 24944 KB Output is correct
184 Correct 562 ms 43344 KB Output is correct
185 Correct 53 ms 23940 KB Output is correct
186 Correct 58 ms 33304 KB Output is correct
187 Correct 41 ms 32212 KB Output is correct
188 Correct 129 ms 75912 KB Output is correct
189 Correct 411 ms 43724 KB Output is correct
190 Correct 192 ms 43024 KB Output is correct
191 Correct 108 ms 76176 KB Output is correct
192 Correct 262 ms 89964 KB Output is correct
193 Correct 311 ms 90128 KB Output is correct
194 Correct 110 ms 65712 KB Output is correct
195 Correct 141 ms 65232 KB Output is correct
196 Correct 296 ms 43060 KB Output is correct
197 Correct 145 ms 43764 KB Output is correct
198 Correct 185 ms 44196 KB Output is correct
199 Correct 286 ms 45824 KB Output is correct
200 Correct 206 ms 43280 KB Output is correct
201 Correct 387 ms 44108 KB Output is correct
202 Correct 511 ms 43776 KB Output is correct
203 Correct 1136 ms 83952 KB Output is correct
204 Correct 194 ms 52612 KB Output is correct
205 Correct 357 ms 53460 KB Output is correct
206 Correct 204 ms 85636 KB Output is correct
207 Correct 193 ms 150692 KB Output is correct
208 Correct 724 ms 81388 KB Output is correct
209 Correct 953 ms 85836 KB Output is correct
210 Correct 142 ms 118744 KB Output is correct
211 Correct 502 ms 174296 KB Output is correct
212 Correct 518 ms 177740 KB Output is correct
213 Correct 162 ms 132516 KB Output is correct
214 Correct 329 ms 132524 KB Output is correct
215 Correct 488 ms 84112 KB Output is correct
216 Correct 434 ms 86232 KB Output is correct
217 Correct 489 ms 82468 KB Output is correct
218 Correct 403 ms 86976 KB Output is correct
219 Correct 426 ms 118308 KB Output is correct
220 Correct 113 ms 102568 KB Output is correct
221 Correct 213 ms 117952 KB Output is correct
222 Correct 748 ms 159820 KB Output is correct
223 Correct 589 ms 87668 KB Output is correct
224 Correct 655 ms 81760 KB Output is correct
225 Correct 458 ms 86120 KB Output is correct