Submission #1037124

# Submission time Handle Problem Language Result Execution time Memory
1037124 2024-07-28T07:40:55 Z juicy Food Court (JOI21_foodcourt) C++17
100 / 100
230 ms 45908 KB
#include <bits/stdc++.h>
 
using namespace std;
 
#ifdef LOCAL
#include "debug.h"
#else
#define debug(...) 42
#endif
 
const int N = 25e4 + 5;
 
int n, m, q;
int c[N], res[N];
long long cnt[4 * N];
array<long long, 2> s[4 * N];
vector<pair<long long, int>> Queries[N];
vector<array<int, 3>> events[N];
 
array<long long, 2> operator + (const array<long long, 2> &lt, const array<long long, 2> &rt) {
  return {max(lt[0] + rt[1], rt[0]), lt[1] + rt[1]};
}
 
template<class T>
void upd(int i, T x, T *s, int id = 1, int l = 1, int r = q) {
  if (l == r) {
    s[id] = x;
    return;
  }
  int md = (l + r) / 2;
  if (i <= md) {
    upd(i, x, s, id * 2, l, md);
  } else {
    upd(i, x, s, id * 2 + 1, md + 1, r);
  }
  s[id] = s[id * 2] + s[id * 2 + 1];
}
 
template<class T>
T qry(int i, T *s, int id = 1, int l = 1, int r = q) {
  if (l == r) {
    return s[id];
  }
  int md = (l + r) / 2;
  if (i <= md) {
    return qry(i, s, id * 2, l, md);
  }
  return s[id * 2] + qry(i, s, id * 2 + 1, md + 1, r);
}
 
long long walk(long long k, int id = 1, int l = 1, int r = q) {
  if (l == r) {
    return c[l];
  }
  int md = (l + r) / 2;
  if (k > cnt[id * 2]) {
    return walk(k - cnt[id * 2], id * 2 + 1, md + 1, r);
  }
  return walk(k, id * 2, l, md);
}
 
int main() {
  ios::sync_with_stdio(false); cin.tie(nullptr);
 
  cin >> n >> m >> q;
  for (int i = 1; i <= q; ++i) {
    int t; cin >> t;
    if (t == 1) {
      int l, r, k; cin >> l >> r >> c[i] >> k;
      events[l].push_back({i, k, 1});
      events[r + 1].push_back({i, 0, 1});
    } else if (t == 2) {
      int l, r, k; cin >> l >> r >> k;
      events[l].push_back({i, -k, 2});
      events[r + 1].push_back({i, 0, 2});
    } else {
      int p; long long x; cin >> p >> x;
      Queries[p].push_back({x, i});
    }
  }  
  for (int i = 1; i <= n; ++i) {
    for (auto [p, k, t] : events[i]) {
      upd(p, array<long long, 2>{max(0, k), k}, s);
      if (t == 1) {
        upd(p, (long long) k, cnt);
      }
    }
    for (auto [x, id] : Queries[i]) {
      auto dat = qry(id, s);
      if (dat[0] >= x) {
        res[id] = walk(qry(id, cnt) - dat[0] + x) + 1;
      } else {
        res[id] = 1;
      }
    }
  }
  for (int i = 1; i <= q; ++i) {
    if (res[i]) {
      cout << res[i] - 1 << "\n";
    }
  } 
  return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 3 ms 16988 KB Output is correct
2 Correct 3 ms 17164 KB Output is correct
3 Correct 3 ms 16988 KB Output is correct
4 Correct 3 ms 16988 KB Output is correct
5 Correct 3 ms 16988 KB Output is correct
6 Correct 3 ms 16988 KB Output is correct
7 Correct 3 ms 17072 KB Output is correct
8 Correct 4 ms 16988 KB Output is correct
9 Correct 4 ms 16988 KB Output is correct
10 Correct 3 ms 16988 KB Output is correct
11 Correct 3 ms 16988 KB Output is correct
12 Correct 5 ms 16988 KB Output is correct
13 Correct 3 ms 16988 KB Output is correct
14 Correct 3 ms 17064 KB Output is correct
15 Correct 3 ms 16988 KB Output is correct
16 Correct 3 ms 16988 KB Output is correct
17 Correct 4 ms 16988 KB Output is correct
18 Correct 3 ms 16988 KB Output is correct
19 Correct 3 ms 16988 KB Output is correct
20 Correct 3 ms 17064 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 16988 KB Output is correct
2 Correct 3 ms 17164 KB Output is correct
3 Correct 3 ms 16988 KB Output is correct
4 Correct 3 ms 16988 KB Output is correct
5 Correct 3 ms 16988 KB Output is correct
6 Correct 3 ms 16988 KB Output is correct
7 Correct 3 ms 17072 KB Output is correct
8 Correct 4 ms 16988 KB Output is correct
9 Correct 4 ms 16988 KB Output is correct
10 Correct 3 ms 16988 KB Output is correct
11 Correct 3 ms 16988 KB Output is correct
12 Correct 5 ms 16988 KB Output is correct
13 Correct 3 ms 16988 KB Output is correct
14 Correct 3 ms 17064 KB Output is correct
15 Correct 3 ms 16988 KB Output is correct
16 Correct 3 ms 16988 KB Output is correct
17 Correct 4 ms 16988 KB Output is correct
18 Correct 3 ms 16988 KB Output is correct
19 Correct 3 ms 16988 KB Output is correct
20 Correct 3 ms 17064 KB Output is correct
21 Correct 4 ms 16988 KB Output is correct
22 Correct 4 ms 16988 KB Output is correct
23 Correct 3 ms 16988 KB Output is correct
24 Correct 4 ms 16988 KB Output is correct
25 Correct 3 ms 16988 KB Output is correct
26 Correct 3 ms 16988 KB Output is correct
27 Correct 4 ms 16988 KB Output is correct
28 Correct 4 ms 16988 KB Output is correct
29 Correct 4 ms 17064 KB Output is correct
30 Correct 4 ms 17076 KB Output is correct
31 Correct 3 ms 16988 KB Output is correct
32 Correct 4 ms 16988 KB Output is correct
33 Correct 3 ms 16988 KB Output is correct
34 Correct 3 ms 16988 KB Output is correct
35 Correct 3 ms 16988 KB Output is correct
36 Correct 3 ms 16988 KB Output is correct
37 Correct 3 ms 16988 KB Output is correct
38 Correct 3 ms 16988 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 46 ms 21596 KB Output is correct
2 Correct 46 ms 22868 KB Output is correct
3 Correct 44 ms 22620 KB Output is correct
4 Correct 44 ms 22692 KB Output is correct
5 Correct 44 ms 22868 KB Output is correct
6 Correct 46 ms 22864 KB Output is correct
7 Correct 24 ms 21308 KB Output is correct
8 Correct 27 ms 21328 KB Output is correct
9 Correct 43 ms 22848 KB Output is correct
10 Correct 43 ms 22864 KB Output is correct
11 Correct 48 ms 22884 KB Output is correct
12 Correct 47 ms 22868 KB Output is correct
13 Correct 40 ms 22096 KB Output is correct
14 Correct 43 ms 22620 KB Output is correct
15 Correct 49 ms 22612 KB Output is correct
16 Correct 51 ms 22876 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 199 ms 37968 KB Output is correct
2 Correct 137 ms 36436 KB Output is correct
3 Correct 192 ms 38912 KB Output is correct
4 Correct 161 ms 36508 KB Output is correct
5 Correct 157 ms 36544 KB Output is correct
6 Correct 230 ms 38992 KB Output is correct
7 Correct 94 ms 35920 KB Output is correct
8 Correct 104 ms 35048 KB Output is correct
9 Correct 219 ms 38740 KB Output is correct
10 Correct 210 ms 38784 KB Output is correct
11 Correct 200 ms 36852 KB Output is correct
12 Correct 205 ms 39128 KB Output is correct
13 Correct 190 ms 39072 KB Output is correct
14 Correct 206 ms 38996 KB Output is correct
15 Correct 205 ms 38996 KB Output is correct
16 Correct 208 ms 38992 KB Output is correct
17 Correct 212 ms 39060 KB Output is correct
18 Correct 201 ms 38992 KB Output is correct
19 Correct 207 ms 39044 KB Output is correct
20 Correct 210 ms 38996 KB Output is correct
21 Correct 204 ms 38992 KB Output is correct
22 Correct 210 ms 38936 KB Output is correct
23 Correct 208 ms 39180 KB Output is correct
24 Correct 217 ms 38992 KB Output is correct
25 Correct 177 ms 38480 KB Output is correct
26 Correct 171 ms 38736 KB Output is correct
27 Correct 187 ms 37868 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 16988 KB Output is correct
2 Correct 3 ms 17164 KB Output is correct
3 Correct 3 ms 16988 KB Output is correct
4 Correct 3 ms 16988 KB Output is correct
5 Correct 3 ms 16988 KB Output is correct
6 Correct 3 ms 16988 KB Output is correct
7 Correct 3 ms 17072 KB Output is correct
8 Correct 4 ms 16988 KB Output is correct
9 Correct 4 ms 16988 KB Output is correct
10 Correct 3 ms 16988 KB Output is correct
11 Correct 3 ms 16988 KB Output is correct
12 Correct 5 ms 16988 KB Output is correct
13 Correct 3 ms 16988 KB Output is correct
14 Correct 3 ms 17064 KB Output is correct
15 Correct 3 ms 16988 KB Output is correct
16 Correct 3 ms 16988 KB Output is correct
17 Correct 4 ms 16988 KB Output is correct
18 Correct 3 ms 16988 KB Output is correct
19 Correct 3 ms 16988 KB Output is correct
20 Correct 3 ms 17064 KB Output is correct
21 Correct 46 ms 21596 KB Output is correct
22 Correct 46 ms 22868 KB Output is correct
23 Correct 44 ms 22620 KB Output is correct
24 Correct 44 ms 22692 KB Output is correct
25 Correct 44 ms 22868 KB Output is correct
26 Correct 46 ms 22864 KB Output is correct
27 Correct 24 ms 21308 KB Output is correct
28 Correct 27 ms 21328 KB Output is correct
29 Correct 43 ms 22848 KB Output is correct
30 Correct 43 ms 22864 KB Output is correct
31 Correct 48 ms 22884 KB Output is correct
32 Correct 47 ms 22868 KB Output is correct
33 Correct 40 ms 22096 KB Output is correct
34 Correct 43 ms 22620 KB Output is correct
35 Correct 49 ms 22612 KB Output is correct
36 Correct 51 ms 22876 KB Output is correct
37 Correct 42 ms 22108 KB Output is correct
38 Correct 41 ms 22032 KB Output is correct
39 Correct 24 ms 21068 KB Output is correct
40 Correct 24 ms 21096 KB Output is correct
41 Correct 48 ms 22716 KB Output is correct
42 Correct 49 ms 22612 KB Output is correct
43 Correct 46 ms 22616 KB Output is correct
44 Correct 45 ms 22728 KB Output is correct
45 Correct 51 ms 22604 KB Output is correct
46 Correct 49 ms 22696 KB Output is correct
47 Correct 29 ms 21608 KB Output is correct
48 Correct 41 ms 22508 KB Output is correct
49 Correct 34 ms 21592 KB Output is correct
50 Correct 40 ms 22188 KB Output is correct
51 Correct 48 ms 22736 KB Output is correct
52 Correct 46 ms 22620 KB Output is correct
53 Correct 39 ms 22104 KB Output is correct
54 Correct 50 ms 22736 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 44 ms 20512 KB Output is correct
2 Correct 51 ms 22952 KB Output is correct
3 Correct 50 ms 22372 KB Output is correct
4 Correct 36 ms 21852 KB Output is correct
5 Correct 43 ms 22612 KB Output is correct
6 Correct 51 ms 23112 KB Output is correct
7 Correct 28 ms 21660 KB Output is correct
8 Correct 25 ms 21324 KB Output is correct
9 Correct 34 ms 22352 KB Output is correct
10 Correct 33 ms 21596 KB Output is correct
11 Correct 48 ms 22620 KB Output is correct
12 Correct 50 ms 22668 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 16988 KB Output is correct
2 Correct 3 ms 17164 KB Output is correct
3 Correct 3 ms 16988 KB Output is correct
4 Correct 3 ms 16988 KB Output is correct
5 Correct 3 ms 16988 KB Output is correct
6 Correct 3 ms 16988 KB Output is correct
7 Correct 3 ms 17072 KB Output is correct
8 Correct 4 ms 16988 KB Output is correct
9 Correct 4 ms 16988 KB Output is correct
10 Correct 3 ms 16988 KB Output is correct
11 Correct 3 ms 16988 KB Output is correct
12 Correct 5 ms 16988 KB Output is correct
13 Correct 3 ms 16988 KB Output is correct
14 Correct 3 ms 17064 KB Output is correct
15 Correct 3 ms 16988 KB Output is correct
16 Correct 3 ms 16988 KB Output is correct
17 Correct 4 ms 16988 KB Output is correct
18 Correct 3 ms 16988 KB Output is correct
19 Correct 3 ms 16988 KB Output is correct
20 Correct 3 ms 17064 KB Output is correct
21 Correct 4 ms 16988 KB Output is correct
22 Correct 4 ms 16988 KB Output is correct
23 Correct 3 ms 16988 KB Output is correct
24 Correct 4 ms 16988 KB Output is correct
25 Correct 3 ms 16988 KB Output is correct
26 Correct 3 ms 16988 KB Output is correct
27 Correct 4 ms 16988 KB Output is correct
28 Correct 4 ms 16988 KB Output is correct
29 Correct 4 ms 17064 KB Output is correct
30 Correct 4 ms 17076 KB Output is correct
31 Correct 3 ms 16988 KB Output is correct
32 Correct 4 ms 16988 KB Output is correct
33 Correct 3 ms 16988 KB Output is correct
34 Correct 3 ms 16988 KB Output is correct
35 Correct 3 ms 16988 KB Output is correct
36 Correct 3 ms 16988 KB Output is correct
37 Correct 3 ms 16988 KB Output is correct
38 Correct 3 ms 16988 KB Output is correct
39 Correct 46 ms 21596 KB Output is correct
40 Correct 46 ms 22868 KB Output is correct
41 Correct 44 ms 22620 KB Output is correct
42 Correct 44 ms 22692 KB Output is correct
43 Correct 44 ms 22868 KB Output is correct
44 Correct 46 ms 22864 KB Output is correct
45 Correct 24 ms 21308 KB Output is correct
46 Correct 27 ms 21328 KB Output is correct
47 Correct 43 ms 22848 KB Output is correct
48 Correct 43 ms 22864 KB Output is correct
49 Correct 48 ms 22884 KB Output is correct
50 Correct 47 ms 22868 KB Output is correct
51 Correct 40 ms 22096 KB Output is correct
52 Correct 43 ms 22620 KB Output is correct
53 Correct 49 ms 22612 KB Output is correct
54 Correct 51 ms 22876 KB Output is correct
55 Correct 42 ms 22108 KB Output is correct
56 Correct 41 ms 22032 KB Output is correct
57 Correct 24 ms 21068 KB Output is correct
58 Correct 24 ms 21096 KB Output is correct
59 Correct 48 ms 22716 KB Output is correct
60 Correct 49 ms 22612 KB Output is correct
61 Correct 46 ms 22616 KB Output is correct
62 Correct 45 ms 22728 KB Output is correct
63 Correct 51 ms 22604 KB Output is correct
64 Correct 49 ms 22696 KB Output is correct
65 Correct 29 ms 21608 KB Output is correct
66 Correct 41 ms 22508 KB Output is correct
67 Correct 34 ms 21592 KB Output is correct
68 Correct 40 ms 22188 KB Output is correct
69 Correct 48 ms 22736 KB Output is correct
70 Correct 46 ms 22620 KB Output is correct
71 Correct 39 ms 22104 KB Output is correct
72 Correct 50 ms 22736 KB Output is correct
73 Correct 44 ms 20512 KB Output is correct
74 Correct 51 ms 22952 KB Output is correct
75 Correct 50 ms 22372 KB Output is correct
76 Correct 36 ms 21852 KB Output is correct
77 Correct 43 ms 22612 KB Output is correct
78 Correct 51 ms 23112 KB Output is correct
79 Correct 28 ms 21660 KB Output is correct
80 Correct 25 ms 21324 KB Output is correct
81 Correct 34 ms 22352 KB Output is correct
82 Correct 33 ms 21596 KB Output is correct
83 Correct 48 ms 22620 KB Output is correct
84 Correct 50 ms 22668 KB Output is correct
85 Correct 43 ms 22616 KB Output is correct
86 Correct 50 ms 23128 KB Output is correct
87 Correct 45 ms 22620 KB Output is correct
88 Correct 53 ms 23124 KB Output is correct
89 Correct 35 ms 21852 KB Output is correct
90 Correct 51 ms 23080 KB Output is correct
91 Correct 40 ms 22352 KB Output is correct
92 Correct 38 ms 22104 KB Output is correct
93 Correct 49 ms 23132 KB Output is correct
94 Correct 53 ms 23212 KB Output is correct
95 Correct 48 ms 22956 KB Output is correct
96 Correct 52 ms 23132 KB Output is correct
97 Correct 49 ms 23024 KB Output is correct
98 Correct 43 ms 22620 KB Output is correct
99 Correct 31 ms 22216 KB Output is correct
100 Correct 37 ms 22112 KB Output is correct
101 Correct 45 ms 22976 KB Output is correct
102 Correct 47 ms 23128 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 16988 KB Output is correct
2 Correct 3 ms 17164 KB Output is correct
3 Correct 3 ms 16988 KB Output is correct
4 Correct 3 ms 16988 KB Output is correct
5 Correct 3 ms 16988 KB Output is correct
6 Correct 3 ms 16988 KB Output is correct
7 Correct 3 ms 17072 KB Output is correct
8 Correct 4 ms 16988 KB Output is correct
9 Correct 4 ms 16988 KB Output is correct
10 Correct 3 ms 16988 KB Output is correct
11 Correct 3 ms 16988 KB Output is correct
12 Correct 5 ms 16988 KB Output is correct
13 Correct 3 ms 16988 KB Output is correct
14 Correct 3 ms 17064 KB Output is correct
15 Correct 3 ms 16988 KB Output is correct
16 Correct 3 ms 16988 KB Output is correct
17 Correct 4 ms 16988 KB Output is correct
18 Correct 3 ms 16988 KB Output is correct
19 Correct 3 ms 16988 KB Output is correct
20 Correct 3 ms 17064 KB Output is correct
21 Correct 4 ms 16988 KB Output is correct
22 Correct 4 ms 16988 KB Output is correct
23 Correct 3 ms 16988 KB Output is correct
24 Correct 4 ms 16988 KB Output is correct
25 Correct 3 ms 16988 KB Output is correct
26 Correct 3 ms 16988 KB Output is correct
27 Correct 4 ms 16988 KB Output is correct
28 Correct 4 ms 16988 KB Output is correct
29 Correct 4 ms 17064 KB Output is correct
30 Correct 4 ms 17076 KB Output is correct
31 Correct 3 ms 16988 KB Output is correct
32 Correct 4 ms 16988 KB Output is correct
33 Correct 3 ms 16988 KB Output is correct
34 Correct 3 ms 16988 KB Output is correct
35 Correct 3 ms 16988 KB Output is correct
36 Correct 3 ms 16988 KB Output is correct
37 Correct 3 ms 16988 KB Output is correct
38 Correct 3 ms 16988 KB Output is correct
39 Correct 46 ms 21596 KB Output is correct
40 Correct 46 ms 22868 KB Output is correct
41 Correct 44 ms 22620 KB Output is correct
42 Correct 44 ms 22692 KB Output is correct
43 Correct 44 ms 22868 KB Output is correct
44 Correct 46 ms 22864 KB Output is correct
45 Correct 24 ms 21308 KB Output is correct
46 Correct 27 ms 21328 KB Output is correct
47 Correct 43 ms 22848 KB Output is correct
48 Correct 43 ms 22864 KB Output is correct
49 Correct 48 ms 22884 KB Output is correct
50 Correct 47 ms 22868 KB Output is correct
51 Correct 40 ms 22096 KB Output is correct
52 Correct 43 ms 22620 KB Output is correct
53 Correct 49 ms 22612 KB Output is correct
54 Correct 51 ms 22876 KB Output is correct
55 Correct 199 ms 37968 KB Output is correct
56 Correct 137 ms 36436 KB Output is correct
57 Correct 192 ms 38912 KB Output is correct
58 Correct 161 ms 36508 KB Output is correct
59 Correct 157 ms 36544 KB Output is correct
60 Correct 230 ms 38992 KB Output is correct
61 Correct 94 ms 35920 KB Output is correct
62 Correct 104 ms 35048 KB Output is correct
63 Correct 219 ms 38740 KB Output is correct
64 Correct 210 ms 38784 KB Output is correct
65 Correct 200 ms 36852 KB Output is correct
66 Correct 205 ms 39128 KB Output is correct
67 Correct 190 ms 39072 KB Output is correct
68 Correct 206 ms 38996 KB Output is correct
69 Correct 205 ms 38996 KB Output is correct
70 Correct 208 ms 38992 KB Output is correct
71 Correct 212 ms 39060 KB Output is correct
72 Correct 201 ms 38992 KB Output is correct
73 Correct 207 ms 39044 KB Output is correct
74 Correct 210 ms 38996 KB Output is correct
75 Correct 204 ms 38992 KB Output is correct
76 Correct 210 ms 38936 KB Output is correct
77 Correct 208 ms 39180 KB Output is correct
78 Correct 217 ms 38992 KB Output is correct
79 Correct 177 ms 38480 KB Output is correct
80 Correct 171 ms 38736 KB Output is correct
81 Correct 187 ms 37868 KB Output is correct
82 Correct 42 ms 22108 KB Output is correct
83 Correct 41 ms 22032 KB Output is correct
84 Correct 24 ms 21068 KB Output is correct
85 Correct 24 ms 21096 KB Output is correct
86 Correct 48 ms 22716 KB Output is correct
87 Correct 49 ms 22612 KB Output is correct
88 Correct 46 ms 22616 KB Output is correct
89 Correct 45 ms 22728 KB Output is correct
90 Correct 51 ms 22604 KB Output is correct
91 Correct 49 ms 22696 KB Output is correct
92 Correct 29 ms 21608 KB Output is correct
93 Correct 41 ms 22508 KB Output is correct
94 Correct 34 ms 21592 KB Output is correct
95 Correct 40 ms 22188 KB Output is correct
96 Correct 48 ms 22736 KB Output is correct
97 Correct 46 ms 22620 KB Output is correct
98 Correct 39 ms 22104 KB Output is correct
99 Correct 50 ms 22736 KB Output is correct
100 Correct 44 ms 20512 KB Output is correct
101 Correct 51 ms 22952 KB Output is correct
102 Correct 50 ms 22372 KB Output is correct
103 Correct 36 ms 21852 KB Output is correct
104 Correct 43 ms 22612 KB Output is correct
105 Correct 51 ms 23112 KB Output is correct
106 Correct 28 ms 21660 KB Output is correct
107 Correct 25 ms 21324 KB Output is correct
108 Correct 34 ms 22352 KB Output is correct
109 Correct 33 ms 21596 KB Output is correct
110 Correct 48 ms 22620 KB Output is correct
111 Correct 50 ms 22668 KB Output is correct
112 Correct 43 ms 22616 KB Output is correct
113 Correct 50 ms 23128 KB Output is correct
114 Correct 45 ms 22620 KB Output is correct
115 Correct 53 ms 23124 KB Output is correct
116 Correct 35 ms 21852 KB Output is correct
117 Correct 51 ms 23080 KB Output is correct
118 Correct 40 ms 22352 KB Output is correct
119 Correct 38 ms 22104 KB Output is correct
120 Correct 49 ms 23132 KB Output is correct
121 Correct 53 ms 23212 KB Output is correct
122 Correct 48 ms 22956 KB Output is correct
123 Correct 52 ms 23132 KB Output is correct
124 Correct 49 ms 23024 KB Output is correct
125 Correct 43 ms 22620 KB Output is correct
126 Correct 31 ms 22216 KB Output is correct
127 Correct 37 ms 22112 KB Output is correct
128 Correct 45 ms 22976 KB Output is correct
129 Correct 47 ms 23128 KB Output is correct
130 Correct 217 ms 45532 KB Output is correct
131 Correct 143 ms 41044 KB Output is correct
132 Correct 208 ms 45396 KB Output is correct
133 Correct 220 ms 45140 KB Output is correct
134 Correct 183 ms 43604 KB Output is correct
135 Correct 212 ms 45908 KB Output is correct
136 Correct 218 ms 45648 KB Output is correct
137 Correct 215 ms 45648 KB Output is correct
138 Correct 214 ms 43600 KB Output is correct
139 Correct 208 ms 45908 KB Output is correct
140 Correct 215 ms 45584 KB Output is correct
141 Correct 214 ms 45648 KB Output is correct
142 Correct 198 ms 45648 KB Output is correct
143 Correct 209 ms 45608 KB Output is correct
144 Correct 218 ms 45792 KB Output is correct
145 Correct 222 ms 45648 KB Output is correct
146 Correct 208 ms 45616 KB Output is correct
147 Correct 226 ms 45572 KB Output is correct
148 Correct 207 ms 45652 KB Output is correct
149 Correct 214 ms 45652 KB Output is correct
150 Correct 126 ms 42284 KB Output is correct
151 Correct 165 ms 44980 KB Output is correct
152 Correct 169 ms 45096 KB Output is correct
153 Correct 198 ms 43860 KB Output is correct