Submission #971444

# Submission time Handle Problem Language Result Execution time Memory
971444 2024-04-28T14:02:06 Z abczz Food Court (JOI21_foodcourt) C++14
100 / 100
802 ms 102736 KB
#include <iostream>
#include <vector>
#include <array>
#define ll long long

using namespace std;

ll n, m, q, t, a, b, c, d, F[250000], T[250000];
vector <array<ll, 2> > Q[250000];
vector <array<ll, 2> > X[250000];

struct SegTree{
  vector <ll> st{vector<ll>(1e6, 0)};
  vector <array<ll, 2> > lazy{vector<array<ll, 2> >(1e6, {0, 0})};
  array<ll, 2> merge(array<ll, 2> A, array<ll, 2> B) {
    return {max(A[0]+B[1], B[0]), A[1]+B[1]};
  }
  void push(ll id) {
    st[id*2] = max(lazy[id][0], st[id*2]+lazy[id][1]);
    st[id*2+1] = max(lazy[id][0], st[id*2+1]+lazy[id][1]);
    lazy[id*2] = merge(lazy[id*2], lazy[id]);
    lazy[id*2+1] = merge(lazy[id*2+1], lazy[id]);
    lazy[id] = {0, 0};
  }
  void update_max_add(ll id, ll l, ll r, ll ql, ll qr, array<ll, 2> w) {
    if (qr < l || r < ql) return;
    else if (ql <= l && r <= qr) {
      st[id] = max(w[0], st[id]+w[1]);
      lazy[id] = merge(lazy[id], w);
      return;
    }
    push(id);
    ll mid = (l+r)/2;
    update_max_add(id*2, l, mid, ql, qr, w);
    update_max_add(id*2+1, mid+1, r, ql, qr, w);
    st[id] = st[id*2] + st[id*2+1];
  }
  ll query(ll id, ll l, ll r, ll q) {
    if (l == r) return st[id];
    push(id);
    ll mid = (l+r)/2;
    if (q <= mid) return query(id*2, l, mid, q);
    else return query(id*2+1, mid+1, r, q);
  }
  ll solve(ll id, ll l, ll r, ll w) {
    //cout << st[id] << " " << l << " " << r << " " << w << endl;
    if (l == r) return T[l];
    push(id);
    ll mid = (l+r)/2;
    if (st[id*2] > w) return solve(id*2, l, mid, w);
    else return solve(id*2+1, mid+1, r, w-st[id*2]);
  }
} ST, CAP, SWP;
int main() {
  cin >> n >> m >> q;
  for (int i=0; i<q; ++i) {
    F[i] = 1e18;
    cin >> t;
    if (t == 1) {
      cin >> a >> b >> c >> d;
      --a, --b;
      X[a].push_back({i, d});
      T[i] = c;
      if (b != n-1) X[b+1].push_back({i, -d});
      ST.update_max_add(1, 0, n-1, a, b, {0, d});
      CAP.update_max_add(1, 0, n-1, a, b, {0, d});
    }
    else if (t == 2) {
      cin >> a >> b >> c;
      --a, --b;
      ST.update_max_add(1, 0, n-1, a, b, {0, -c});
    }
    else {
      cin >> a >> b;
      --a, --b;
      ll cap = CAP.query(1, 0, n-1, a), res = ST.query(1, 0, n-1, a);
      if (b-res >= 0) F[i] = 0;
      else Q[a].push_back({i, b+cap-res});
    }
  }
  for (int i=0; i<n; ++i) {
    for (auto [u, w] : X[i]) {
      SWP.update_max_add(1, 0, q-1, u, u, {0, w});
    }
    for (auto [id, u] : Q[i]) {
      F[id] = SWP.solve(1, 0, q-1, u);
    }
  }
  for (int i=0; i<q; ++i) {
    if (F[i] == 1e18) continue;
    cout << F[i] << '\n';
  }
}

Compilation message

foodcourt.cpp: In function 'int main()':
foodcourt.cpp:82:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
   82 |     for (auto [u, w] : X[i]) {
      |               ^
foodcourt.cpp:85:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
   85 |     for (auto [id, u] : Q[i]) {
      |               ^
# Verdict Execution time Memory Grader output
1 Correct 20 ms 85336 KB Output is correct
2 Correct 20 ms 85332 KB Output is correct
3 Correct 18 ms 85340 KB Output is correct
4 Correct 20 ms 85564 KB Output is correct
5 Correct 18 ms 85340 KB Output is correct
6 Correct 19 ms 85596 KB Output is correct
7 Correct 19 ms 85340 KB Output is correct
8 Correct 20 ms 85488 KB Output is correct
9 Correct 19 ms 85340 KB Output is correct
10 Correct 19 ms 85336 KB Output is correct
11 Correct 19 ms 85300 KB Output is correct
12 Correct 19 ms 85752 KB Output is correct
13 Correct 18 ms 85340 KB Output is correct
14 Correct 19 ms 85340 KB Output is correct
15 Correct 19 ms 85500 KB Output is correct
16 Correct 20 ms 85340 KB Output is correct
17 Correct 19 ms 85492 KB Output is correct
18 Correct 20 ms 85340 KB Output is correct
19 Correct 20 ms 85340 KB Output is correct
20 Correct 20 ms 85592 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 20 ms 85336 KB Output is correct
2 Correct 20 ms 85332 KB Output is correct
3 Correct 18 ms 85340 KB Output is correct
4 Correct 20 ms 85564 KB Output is correct
5 Correct 18 ms 85340 KB Output is correct
6 Correct 19 ms 85596 KB Output is correct
7 Correct 19 ms 85340 KB Output is correct
8 Correct 20 ms 85488 KB Output is correct
9 Correct 19 ms 85340 KB Output is correct
10 Correct 19 ms 85336 KB Output is correct
11 Correct 19 ms 85300 KB Output is correct
12 Correct 19 ms 85752 KB Output is correct
13 Correct 18 ms 85340 KB Output is correct
14 Correct 19 ms 85340 KB Output is correct
15 Correct 19 ms 85500 KB Output is correct
16 Correct 20 ms 85340 KB Output is correct
17 Correct 19 ms 85492 KB Output is correct
18 Correct 20 ms 85340 KB Output is correct
19 Correct 20 ms 85340 KB Output is correct
20 Correct 20 ms 85592 KB Output is correct
21 Correct 19 ms 85520 KB Output is correct
22 Correct 20 ms 85340 KB Output is correct
23 Correct 20 ms 85496 KB Output is correct
24 Correct 23 ms 85340 KB Output is correct
25 Correct 18 ms 85340 KB Output is correct
26 Correct 18 ms 85468 KB Output is correct
27 Correct 19 ms 85340 KB Output is correct
28 Correct 22 ms 85340 KB Output is correct
29 Correct 21 ms 85312 KB Output is correct
30 Correct 20 ms 85340 KB Output is correct
31 Correct 20 ms 85348 KB Output is correct
32 Correct 19 ms 85340 KB Output is correct
33 Correct 18 ms 85340 KB Output is correct
34 Correct 19 ms 85460 KB Output is correct
35 Correct 19 ms 85340 KB Output is correct
36 Correct 22 ms 85336 KB Output is correct
37 Correct 18 ms 85340 KB Output is correct
38 Correct 20 ms 85340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 109 ms 87636 KB Output is correct
2 Correct 147 ms 88404 KB Output is correct
3 Correct 121 ms 87836 KB Output is correct
4 Correct 115 ms 87836 KB Output is correct
5 Correct 119 ms 88328 KB Output is correct
6 Correct 143 ms 88372 KB Output is correct
7 Correct 61 ms 86736 KB Output is correct
8 Correct 57 ms 86680 KB Output is correct
9 Correct 116 ms 87892 KB Output is correct
10 Correct 113 ms 87888 KB Output is correct
11 Correct 115 ms 87888 KB Output is correct
12 Correct 114 ms 88060 KB Output is correct
13 Correct 115 ms 88336 KB Output is correct
14 Correct 140 ms 88404 KB Output is correct
15 Correct 138 ms 89452 KB Output is correct
16 Correct 145 ms 89572 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 560 ms 97620 KB Output is correct
2 Correct 459 ms 94948 KB Output is correct
3 Correct 621 ms 98900 KB Output is correct
4 Correct 507 ms 96332 KB Output is correct
5 Correct 537 ms 96492 KB Output is correct
6 Correct 706 ms 100712 KB Output is correct
7 Correct 207 ms 93112 KB Output is correct
8 Correct 216 ms 93824 KB Output is correct
9 Correct 713 ms 101580 KB Output is correct
10 Correct 750 ms 101828 KB Output is correct
11 Correct 658 ms 99048 KB Output is correct
12 Correct 663 ms 99024 KB Output is correct
13 Correct 662 ms 99148 KB Output is correct
14 Correct 681 ms 99156 KB Output is correct
15 Correct 678 ms 98944 KB Output is correct
16 Correct 657 ms 98928 KB Output is correct
17 Correct 717 ms 99088 KB Output is correct
18 Correct 675 ms 99232 KB Output is correct
19 Correct 652 ms 99052 KB Output is correct
20 Correct 683 ms 99188 KB Output is correct
21 Correct 646 ms 98944 KB Output is correct
22 Correct 698 ms 99224 KB Output is correct
23 Correct 683 ms 99084 KB Output is correct
24 Correct 638 ms 98848 KB Output is correct
25 Correct 484 ms 98036 KB Output is correct
26 Correct 496 ms 98384 KB Output is correct
27 Correct 560 ms 101996 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 20 ms 85336 KB Output is correct
2 Correct 20 ms 85332 KB Output is correct
3 Correct 18 ms 85340 KB Output is correct
4 Correct 20 ms 85564 KB Output is correct
5 Correct 18 ms 85340 KB Output is correct
6 Correct 19 ms 85596 KB Output is correct
7 Correct 19 ms 85340 KB Output is correct
8 Correct 20 ms 85488 KB Output is correct
9 Correct 19 ms 85340 KB Output is correct
10 Correct 19 ms 85336 KB Output is correct
11 Correct 19 ms 85300 KB Output is correct
12 Correct 19 ms 85752 KB Output is correct
13 Correct 18 ms 85340 KB Output is correct
14 Correct 19 ms 85340 KB Output is correct
15 Correct 19 ms 85500 KB Output is correct
16 Correct 20 ms 85340 KB Output is correct
17 Correct 19 ms 85492 KB Output is correct
18 Correct 20 ms 85340 KB Output is correct
19 Correct 20 ms 85340 KB Output is correct
20 Correct 20 ms 85592 KB Output is correct
21 Correct 109 ms 87636 KB Output is correct
22 Correct 147 ms 88404 KB Output is correct
23 Correct 121 ms 87836 KB Output is correct
24 Correct 115 ms 87836 KB Output is correct
25 Correct 119 ms 88328 KB Output is correct
26 Correct 143 ms 88372 KB Output is correct
27 Correct 61 ms 86736 KB Output is correct
28 Correct 57 ms 86680 KB Output is correct
29 Correct 116 ms 87892 KB Output is correct
30 Correct 113 ms 87888 KB Output is correct
31 Correct 115 ms 87888 KB Output is correct
32 Correct 114 ms 88060 KB Output is correct
33 Correct 115 ms 88336 KB Output is correct
34 Correct 140 ms 88404 KB Output is correct
35 Correct 138 ms 89452 KB Output is correct
36 Correct 145 ms 89572 KB Output is correct
37 Correct 120 ms 87760 KB Output is correct
38 Correct 132 ms 87900 KB Output is correct
39 Correct 50 ms 86732 KB Output is correct
40 Correct 55 ms 87080 KB Output is correct
41 Correct 131 ms 88192 KB Output is correct
42 Correct 124 ms 88256 KB Output is correct
43 Correct 152 ms 88200 KB Output is correct
44 Correct 130 ms 88036 KB Output is correct
45 Correct 133 ms 88144 KB Output is correct
46 Correct 123 ms 88148 KB Output is correct
47 Correct 73 ms 87032 KB Output is correct
48 Correct 113 ms 87892 KB Output is correct
49 Correct 97 ms 87300 KB Output is correct
50 Correct 122 ms 87636 KB Output is correct
51 Correct 136 ms 88228 KB Output is correct
52 Correct 138 ms 88148 KB Output is correct
53 Correct 109 ms 88652 KB Output is correct
54 Correct 137 ms 89376 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 139 ms 89168 KB Output is correct
2 Correct 148 ms 89448 KB Output is correct
3 Correct 182 ms 89404 KB Output is correct
4 Correct 111 ms 88552 KB Output is correct
5 Correct 129 ms 88912 KB Output is correct
6 Correct 149 ms 89440 KB Output is correct
7 Correct 76 ms 87496 KB Output is correct
8 Correct 67 ms 87876 KB Output is correct
9 Correct 99 ms 88096 KB Output is correct
10 Correct 101 ms 88092 KB Output is correct
11 Correct 152 ms 89100 KB Output is correct
12 Correct 168 ms 89108 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 20 ms 85336 KB Output is correct
2 Correct 20 ms 85332 KB Output is correct
3 Correct 18 ms 85340 KB Output is correct
4 Correct 20 ms 85564 KB Output is correct
5 Correct 18 ms 85340 KB Output is correct
6 Correct 19 ms 85596 KB Output is correct
7 Correct 19 ms 85340 KB Output is correct
8 Correct 20 ms 85488 KB Output is correct
9 Correct 19 ms 85340 KB Output is correct
10 Correct 19 ms 85336 KB Output is correct
11 Correct 19 ms 85300 KB Output is correct
12 Correct 19 ms 85752 KB Output is correct
13 Correct 18 ms 85340 KB Output is correct
14 Correct 19 ms 85340 KB Output is correct
15 Correct 19 ms 85500 KB Output is correct
16 Correct 20 ms 85340 KB Output is correct
17 Correct 19 ms 85492 KB Output is correct
18 Correct 20 ms 85340 KB Output is correct
19 Correct 20 ms 85340 KB Output is correct
20 Correct 20 ms 85592 KB Output is correct
21 Correct 19 ms 85520 KB Output is correct
22 Correct 20 ms 85340 KB Output is correct
23 Correct 20 ms 85496 KB Output is correct
24 Correct 23 ms 85340 KB Output is correct
25 Correct 18 ms 85340 KB Output is correct
26 Correct 18 ms 85468 KB Output is correct
27 Correct 19 ms 85340 KB Output is correct
28 Correct 22 ms 85340 KB Output is correct
29 Correct 21 ms 85312 KB Output is correct
30 Correct 20 ms 85340 KB Output is correct
31 Correct 20 ms 85348 KB Output is correct
32 Correct 19 ms 85340 KB Output is correct
33 Correct 18 ms 85340 KB Output is correct
34 Correct 19 ms 85460 KB Output is correct
35 Correct 19 ms 85340 KB Output is correct
36 Correct 22 ms 85336 KB Output is correct
37 Correct 18 ms 85340 KB Output is correct
38 Correct 20 ms 85340 KB Output is correct
39 Correct 109 ms 87636 KB Output is correct
40 Correct 147 ms 88404 KB Output is correct
41 Correct 121 ms 87836 KB Output is correct
42 Correct 115 ms 87836 KB Output is correct
43 Correct 119 ms 88328 KB Output is correct
44 Correct 143 ms 88372 KB Output is correct
45 Correct 61 ms 86736 KB Output is correct
46 Correct 57 ms 86680 KB Output is correct
47 Correct 116 ms 87892 KB Output is correct
48 Correct 113 ms 87888 KB Output is correct
49 Correct 115 ms 87888 KB Output is correct
50 Correct 114 ms 88060 KB Output is correct
51 Correct 115 ms 88336 KB Output is correct
52 Correct 140 ms 88404 KB Output is correct
53 Correct 138 ms 89452 KB Output is correct
54 Correct 145 ms 89572 KB Output is correct
55 Correct 120 ms 87760 KB Output is correct
56 Correct 132 ms 87900 KB Output is correct
57 Correct 50 ms 86732 KB Output is correct
58 Correct 55 ms 87080 KB Output is correct
59 Correct 131 ms 88192 KB Output is correct
60 Correct 124 ms 88256 KB Output is correct
61 Correct 152 ms 88200 KB Output is correct
62 Correct 130 ms 88036 KB Output is correct
63 Correct 133 ms 88144 KB Output is correct
64 Correct 123 ms 88148 KB Output is correct
65 Correct 73 ms 87032 KB Output is correct
66 Correct 113 ms 87892 KB Output is correct
67 Correct 97 ms 87300 KB Output is correct
68 Correct 122 ms 87636 KB Output is correct
69 Correct 136 ms 88228 KB Output is correct
70 Correct 138 ms 88148 KB Output is correct
71 Correct 109 ms 88652 KB Output is correct
72 Correct 137 ms 89376 KB Output is correct
73 Correct 139 ms 89168 KB Output is correct
74 Correct 148 ms 89448 KB Output is correct
75 Correct 182 ms 89404 KB Output is correct
76 Correct 111 ms 88552 KB Output is correct
77 Correct 129 ms 88912 KB Output is correct
78 Correct 149 ms 89440 KB Output is correct
79 Correct 76 ms 87496 KB Output is correct
80 Correct 67 ms 87876 KB Output is correct
81 Correct 99 ms 88096 KB Output is correct
82 Correct 101 ms 88092 KB Output is correct
83 Correct 152 ms 89100 KB Output is correct
84 Correct 168 ms 89108 KB Output is correct
85 Correct 129 ms 88340 KB Output is correct
86 Correct 132 ms 88660 KB Output is correct
87 Correct 132 ms 88676 KB Output is correct
88 Correct 145 ms 89048 KB Output is correct
89 Correct 94 ms 87460 KB Output is correct
90 Correct 138 ms 88728 KB Output is correct
91 Correct 111 ms 88056 KB Output is correct
92 Correct 106 ms 87928 KB Output is correct
93 Correct 135 ms 88652 KB Output is correct
94 Correct 175 ms 88668 KB Output is correct
95 Correct 132 ms 88660 KB Output is correct
96 Correct 139 ms 88620 KB Output is correct
97 Correct 139 ms 88564 KB Output is correct
98 Correct 122 ms 88144 KB Output is correct
99 Correct 86 ms 87876 KB Output is correct
100 Correct 112 ms 88044 KB Output is correct
101 Correct 137 ms 88616 KB Output is correct
102 Correct 133 ms 89384 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 20 ms 85336 KB Output is correct
2 Correct 20 ms 85332 KB Output is correct
3 Correct 18 ms 85340 KB Output is correct
4 Correct 20 ms 85564 KB Output is correct
5 Correct 18 ms 85340 KB Output is correct
6 Correct 19 ms 85596 KB Output is correct
7 Correct 19 ms 85340 KB Output is correct
8 Correct 20 ms 85488 KB Output is correct
9 Correct 19 ms 85340 KB Output is correct
10 Correct 19 ms 85336 KB Output is correct
11 Correct 19 ms 85300 KB Output is correct
12 Correct 19 ms 85752 KB Output is correct
13 Correct 18 ms 85340 KB Output is correct
14 Correct 19 ms 85340 KB Output is correct
15 Correct 19 ms 85500 KB Output is correct
16 Correct 20 ms 85340 KB Output is correct
17 Correct 19 ms 85492 KB Output is correct
18 Correct 20 ms 85340 KB Output is correct
19 Correct 20 ms 85340 KB Output is correct
20 Correct 20 ms 85592 KB Output is correct
21 Correct 19 ms 85520 KB Output is correct
22 Correct 20 ms 85340 KB Output is correct
23 Correct 20 ms 85496 KB Output is correct
24 Correct 23 ms 85340 KB Output is correct
25 Correct 18 ms 85340 KB Output is correct
26 Correct 18 ms 85468 KB Output is correct
27 Correct 19 ms 85340 KB Output is correct
28 Correct 22 ms 85340 KB Output is correct
29 Correct 21 ms 85312 KB Output is correct
30 Correct 20 ms 85340 KB Output is correct
31 Correct 20 ms 85348 KB Output is correct
32 Correct 19 ms 85340 KB Output is correct
33 Correct 18 ms 85340 KB Output is correct
34 Correct 19 ms 85460 KB Output is correct
35 Correct 19 ms 85340 KB Output is correct
36 Correct 22 ms 85336 KB Output is correct
37 Correct 18 ms 85340 KB Output is correct
38 Correct 20 ms 85340 KB Output is correct
39 Correct 109 ms 87636 KB Output is correct
40 Correct 147 ms 88404 KB Output is correct
41 Correct 121 ms 87836 KB Output is correct
42 Correct 115 ms 87836 KB Output is correct
43 Correct 119 ms 88328 KB Output is correct
44 Correct 143 ms 88372 KB Output is correct
45 Correct 61 ms 86736 KB Output is correct
46 Correct 57 ms 86680 KB Output is correct
47 Correct 116 ms 87892 KB Output is correct
48 Correct 113 ms 87888 KB Output is correct
49 Correct 115 ms 87888 KB Output is correct
50 Correct 114 ms 88060 KB Output is correct
51 Correct 115 ms 88336 KB Output is correct
52 Correct 140 ms 88404 KB Output is correct
53 Correct 138 ms 89452 KB Output is correct
54 Correct 145 ms 89572 KB Output is correct
55 Correct 560 ms 97620 KB Output is correct
56 Correct 459 ms 94948 KB Output is correct
57 Correct 621 ms 98900 KB Output is correct
58 Correct 507 ms 96332 KB Output is correct
59 Correct 537 ms 96492 KB Output is correct
60 Correct 706 ms 100712 KB Output is correct
61 Correct 207 ms 93112 KB Output is correct
62 Correct 216 ms 93824 KB Output is correct
63 Correct 713 ms 101580 KB Output is correct
64 Correct 750 ms 101828 KB Output is correct
65 Correct 658 ms 99048 KB Output is correct
66 Correct 663 ms 99024 KB Output is correct
67 Correct 662 ms 99148 KB Output is correct
68 Correct 681 ms 99156 KB Output is correct
69 Correct 678 ms 98944 KB Output is correct
70 Correct 657 ms 98928 KB Output is correct
71 Correct 717 ms 99088 KB Output is correct
72 Correct 675 ms 99232 KB Output is correct
73 Correct 652 ms 99052 KB Output is correct
74 Correct 683 ms 99188 KB Output is correct
75 Correct 646 ms 98944 KB Output is correct
76 Correct 698 ms 99224 KB Output is correct
77 Correct 683 ms 99084 KB Output is correct
78 Correct 638 ms 98848 KB Output is correct
79 Correct 484 ms 98036 KB Output is correct
80 Correct 496 ms 98384 KB Output is correct
81 Correct 560 ms 101996 KB Output is correct
82 Correct 120 ms 87760 KB Output is correct
83 Correct 132 ms 87900 KB Output is correct
84 Correct 50 ms 86732 KB Output is correct
85 Correct 55 ms 87080 KB Output is correct
86 Correct 131 ms 88192 KB Output is correct
87 Correct 124 ms 88256 KB Output is correct
88 Correct 152 ms 88200 KB Output is correct
89 Correct 130 ms 88036 KB Output is correct
90 Correct 133 ms 88144 KB Output is correct
91 Correct 123 ms 88148 KB Output is correct
92 Correct 73 ms 87032 KB Output is correct
93 Correct 113 ms 87892 KB Output is correct
94 Correct 97 ms 87300 KB Output is correct
95 Correct 122 ms 87636 KB Output is correct
96 Correct 136 ms 88228 KB Output is correct
97 Correct 138 ms 88148 KB Output is correct
98 Correct 109 ms 88652 KB Output is correct
99 Correct 137 ms 89376 KB Output is correct
100 Correct 139 ms 89168 KB Output is correct
101 Correct 148 ms 89448 KB Output is correct
102 Correct 182 ms 89404 KB Output is correct
103 Correct 111 ms 88552 KB Output is correct
104 Correct 129 ms 88912 KB Output is correct
105 Correct 149 ms 89440 KB Output is correct
106 Correct 76 ms 87496 KB Output is correct
107 Correct 67 ms 87876 KB Output is correct
108 Correct 99 ms 88096 KB Output is correct
109 Correct 101 ms 88092 KB Output is correct
110 Correct 152 ms 89100 KB Output is correct
111 Correct 168 ms 89108 KB Output is correct
112 Correct 129 ms 88340 KB Output is correct
113 Correct 132 ms 88660 KB Output is correct
114 Correct 132 ms 88676 KB Output is correct
115 Correct 145 ms 89048 KB Output is correct
116 Correct 94 ms 87460 KB Output is correct
117 Correct 138 ms 88728 KB Output is correct
118 Correct 111 ms 88056 KB Output is correct
119 Correct 106 ms 87928 KB Output is correct
120 Correct 135 ms 88652 KB Output is correct
121 Correct 175 ms 88668 KB Output is correct
122 Correct 132 ms 88660 KB Output is correct
123 Correct 139 ms 88620 KB Output is correct
124 Correct 139 ms 88564 KB Output is correct
125 Correct 122 ms 88144 KB Output is correct
126 Correct 86 ms 87876 KB Output is correct
127 Correct 112 ms 88044 KB Output is correct
128 Correct 137 ms 88616 KB Output is correct
129 Correct 133 ms 89384 KB Output is correct
130 Correct 709 ms 99428 KB Output is correct
131 Correct 490 ms 95400 KB Output is correct
132 Correct 639 ms 99580 KB Output is correct
133 Correct 718 ms 100848 KB Output is correct
134 Correct 619 ms 98956 KB Output is correct
135 Correct 724 ms 101556 KB Output is correct
136 Correct 720 ms 102656 KB Output is correct
137 Correct 802 ms 102736 KB Output is correct
138 Correct 635 ms 99964 KB Output is correct
139 Correct 654 ms 99948 KB Output is correct
140 Correct 693 ms 99552 KB Output is correct
141 Correct 655 ms 99696 KB Output is correct
142 Correct 648 ms 100044 KB Output is correct
143 Correct 647 ms 99664 KB Output is correct
144 Correct 639 ms 99792 KB Output is correct
145 Correct 654 ms 99896 KB Output is correct
146 Correct 645 ms 99600 KB Output is correct
147 Correct 651 ms 99884 KB Output is correct
148 Correct 629 ms 99440 KB Output is correct
149 Correct 632 ms 99688 KB Output is correct
150 Correct 330 ms 95668 KB Output is correct
151 Correct 500 ms 98900 KB Output is correct
152 Correct 513 ms 99296 KB Output is correct
153 Correct 576 ms 102736 KB Output is correct