Submission #735523

# Submission time Handle Problem Language Result Execution time Memory
735523 2023-05-04T09:40:28 Z QwertyPi Food Court (JOI21_foodcourt) C++14
100 / 100
621 ms 78996 KB
#include <bits/stdc++.h>
#define int long long
#define INF (1LL << 60)
using namespace std;

struct np{
	int x = 0, y = 0;
	np() {};
	np(int v){
		if(v >= 0) x = 0, y = v;
		else x = -v, y = 0;
	}
	np(int x, int y) : x(x), y(y){
	}
	friend np operator+ (const np& a, const np& b) {
		return {a.x + b.x - min(a.y, b.x), a.y + b.y - min(a.y, b.x)};
	}
};

struct node{
	np acc;
	int sum = 0, psum = 0, nsum = 0, colour = 0;
	friend void add(node& res, const node& L, const node& R){
		res.acc = L.acc + R.acc;
		res.sum = L.sum + R.sum;
		res.psum = L.psum + R.psum;
		res.nsum = L.nsum + R.nsum;
	}
};

const int N_MAX = 2.5e5 + 11;

node t[N_MAX << 2];

void assign(int idx, int k, int c = 0, int v = 0, int tl = 0, int tr = N_MAX - 1){
	if(tl == tr){
		t[v].acc = np(k);
		t[v].sum = k;
		t[v].nsum = k < 0 ? k : 0;
		t[v].psum = k > 0 ? k : 0;
		t[v].colour = c;
		return;
	}
	int tm = (tl + tr) / 2;
	if(idx <= tm){
		assign(idx, k, c, v * 2 + 1, tl, tm);
	}else{
		assign(idx, k, c, v * 2 + 2, tm + 1, tr);
	}
	add(t[v], t[v * 2 + 1], t[v * 2 + 2]);
}

int bs(int k, int v = 0, int tl = 0, int tr = N_MAX - 1){
	if(tl == tr) return tl;
	int tm = (tl + tr) / 2;
	if(t[v * 2 + 1].psum >= k){
		return bs(k, v * 2 + 1, tl, tm);
	}else{
		return bs(k - t[v * 2 + 1].psum, v * 2 + 2, tm + 1, tr);
	}
}

int psum(int r, int v = 0, int tl = 0, int tr = N_MAX - 1){
	if(tl == tr) return t[v].psum;
	int tm = (tl + tr) / 2;
	if(r <= tm){
		return psum(r, v * 2 + 1, tl, tm);
	}else{
		return t[v * 2 + 1].psum + psum(r, v * 2 + 2, tm + 1, tr);
	}
}

np qry(int r, int v = 0, int tl = 0, int tr = N_MAX - 1){
	if(tl == tr) return t[v].acc;
	int tm = (tl + tr) / 2;
	if(r <= tm){
		return qry(r, v * 2 + 1, tl, tm);
	}else{
		return t[v * 2 + 1].acc + qry(r, v * 2 + 2, tm + 1, tr);
	}
}

struct query{
	int p, i, t, c, k;
};

vector<query> Q;
int C[N_MAX];

int32_t main(){
	cin.tie(0);
	cout.tie(0)->sync_with_stdio(false);
	int n, m, q; cin >> n >> m >> q;
	for(int i = 0; i < q; i++){
		int l, r, a, c, k;
		int t; cin >> t;
		switch(t){
			case 1: t = 1; cin >> l >> r >> c >> k; Q.push_back({l, i, 1, c, k}); Q.push_back({r + 1, i, 1, c, 0}); break;
			case 2: t = 2; cin >> l >> r >> k; Q.push_back({l, i, 1, 0, -k}); Q.push_back({r + 1, i, 1, 0, 0}); break;
			case 3: t = 3; cin >> a >> k; Q.push_back({a, i, 2, 0, k}); break;
		}
		C[i] = Q.back().c; 
	}
	sort(Q.begin(), Q.end(), [](query a, query b){
		return a.p < b.p || a.p == b.p && a.i < b.i;
	});
	map<int, int> ans;
	for(auto& q : Q){
		if(q.t == 1) assign(q.i, q.k, q.c);
		else {
			auto acc = qry(q.i);
			if(acc.y < q.k){
				ans[q.i] = 0;
			}else{
				int p = bs(psum(q.i) + (q.k - acc.y));
				ans[q.i] = C[p];
			}
		}
	}
	for(auto [i, j] : ans){
		cout << j << endl;
	}
}

Compilation message

foodcourt.cpp: In lambda function:
foodcourt.cpp:105:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  105 |   return a.p < b.p || a.p == b.p && a.i < b.i;
      |                       ~~~~~~~~~~~^~~~~~~~~~~~
foodcourt.cpp: In function 'int32_t main()':
foodcourt.cpp:120:11: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
  120 |  for(auto [i, j] : ans){
      |           ^
# Verdict Execution time Memory Grader output
1 Correct 23 ms 47540 KB Output is correct
2 Correct 25 ms 47572 KB Output is correct
3 Correct 23 ms 47524 KB Output is correct
4 Correct 34 ms 47560 KB Output is correct
5 Correct 23 ms 47544 KB Output is correct
6 Correct 22 ms 47572 KB Output is correct
7 Correct 24 ms 47620 KB Output is correct
8 Correct 24 ms 47564 KB Output is correct
9 Correct 25 ms 47600 KB Output is correct
10 Correct 29 ms 47552 KB Output is correct
11 Correct 24 ms 47564 KB Output is correct
12 Correct 24 ms 47524 KB Output is correct
13 Correct 24 ms 47576 KB Output is correct
14 Correct 24 ms 47568 KB Output is correct
15 Correct 24 ms 47484 KB Output is correct
16 Correct 24 ms 47544 KB Output is correct
17 Correct 30 ms 47556 KB Output is correct
18 Correct 24 ms 47572 KB Output is correct
19 Correct 23 ms 47596 KB Output is correct
20 Correct 23 ms 47572 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 23 ms 47540 KB Output is correct
2 Correct 25 ms 47572 KB Output is correct
3 Correct 23 ms 47524 KB Output is correct
4 Correct 34 ms 47560 KB Output is correct
5 Correct 23 ms 47544 KB Output is correct
6 Correct 22 ms 47572 KB Output is correct
7 Correct 24 ms 47620 KB Output is correct
8 Correct 24 ms 47564 KB Output is correct
9 Correct 25 ms 47600 KB Output is correct
10 Correct 29 ms 47552 KB Output is correct
11 Correct 24 ms 47564 KB Output is correct
12 Correct 24 ms 47524 KB Output is correct
13 Correct 24 ms 47576 KB Output is correct
14 Correct 24 ms 47568 KB Output is correct
15 Correct 24 ms 47484 KB Output is correct
16 Correct 24 ms 47544 KB Output is correct
17 Correct 30 ms 47556 KB Output is correct
18 Correct 24 ms 47572 KB Output is correct
19 Correct 23 ms 47596 KB Output is correct
20 Correct 23 ms 47572 KB Output is correct
21 Correct 24 ms 47572 KB Output is correct
22 Correct 24 ms 47636 KB Output is correct
23 Correct 24 ms 47560 KB Output is correct
24 Correct 24 ms 47616 KB Output is correct
25 Correct 27 ms 47576 KB Output is correct
26 Correct 26 ms 47576 KB Output is correct
27 Correct 25 ms 47584 KB Output is correct
28 Correct 24 ms 47544 KB Output is correct
29 Correct 24 ms 47572 KB Output is correct
30 Correct 24 ms 47608 KB Output is correct
31 Correct 24 ms 47596 KB Output is correct
32 Correct 27 ms 47628 KB Output is correct
33 Correct 24 ms 47556 KB Output is correct
34 Correct 24 ms 47572 KB Output is correct
35 Correct 25 ms 47564 KB Output is correct
36 Correct 24 ms 47604 KB Output is correct
37 Correct 23 ms 47500 KB Output is correct
38 Correct 24 ms 47536 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 111 ms 53336 KB Output is correct
2 Correct 110 ms 54444 KB Output is correct
3 Correct 140 ms 54648 KB Output is correct
4 Correct 114 ms 54564 KB Output is correct
5 Correct 117 ms 54448 KB Output is correct
6 Correct 115 ms 54524 KB Output is correct
7 Correct 89 ms 53700 KB Output is correct
8 Correct 94 ms 53808 KB Output is correct
9 Correct 115 ms 54476 KB Output is correct
10 Correct 114 ms 54512 KB Output is correct
11 Correct 117 ms 54556 KB Output is correct
12 Correct 112 ms 54536 KB Output is correct
13 Correct 106 ms 53832 KB Output is correct
14 Correct 114 ms 54512 KB Output is correct
15 Correct 99 ms 54340 KB Output is correct
16 Correct 102 ms 54424 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 546 ms 69112 KB Output is correct
2 Correct 402 ms 69176 KB Output is correct
3 Correct 559 ms 70936 KB Output is correct
4 Correct 352 ms 69020 KB Output is correct
5 Correct 359 ms 69044 KB Output is correct
6 Correct 509 ms 70496 KB Output is correct
7 Correct 308 ms 70920 KB Output is correct
8 Correct 320 ms 70876 KB Output is correct
9 Correct 592 ms 71956 KB Output is correct
10 Correct 580 ms 71980 KB Output is correct
11 Correct 494 ms 70476 KB Output is correct
12 Correct 484 ms 70492 KB Output is correct
13 Correct 487 ms 70376 KB Output is correct
14 Correct 523 ms 70468 KB Output is correct
15 Correct 512 ms 70324 KB Output is correct
16 Correct 506 ms 70444 KB Output is correct
17 Correct 534 ms 70408 KB Output is correct
18 Correct 507 ms 70408 KB Output is correct
19 Correct 510 ms 70436 KB Output is correct
20 Correct 508 ms 70492 KB Output is correct
21 Correct 520 ms 70376 KB Output is correct
22 Correct 500 ms 70572 KB Output is correct
23 Correct 513 ms 70468 KB Output is correct
24 Correct 542 ms 70408 KB Output is correct
25 Correct 529 ms 70460 KB Output is correct
26 Correct 513 ms 70900 KB Output is correct
27 Correct 359 ms 69852 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 23 ms 47540 KB Output is correct
2 Correct 25 ms 47572 KB Output is correct
3 Correct 23 ms 47524 KB Output is correct
4 Correct 34 ms 47560 KB Output is correct
5 Correct 23 ms 47544 KB Output is correct
6 Correct 22 ms 47572 KB Output is correct
7 Correct 24 ms 47620 KB Output is correct
8 Correct 24 ms 47564 KB Output is correct
9 Correct 25 ms 47600 KB Output is correct
10 Correct 29 ms 47552 KB Output is correct
11 Correct 24 ms 47564 KB Output is correct
12 Correct 24 ms 47524 KB Output is correct
13 Correct 24 ms 47576 KB Output is correct
14 Correct 24 ms 47568 KB Output is correct
15 Correct 24 ms 47484 KB Output is correct
16 Correct 24 ms 47544 KB Output is correct
17 Correct 30 ms 47556 KB Output is correct
18 Correct 24 ms 47572 KB Output is correct
19 Correct 23 ms 47596 KB Output is correct
20 Correct 23 ms 47572 KB Output is correct
21 Correct 111 ms 53336 KB Output is correct
22 Correct 110 ms 54444 KB Output is correct
23 Correct 140 ms 54648 KB Output is correct
24 Correct 114 ms 54564 KB Output is correct
25 Correct 117 ms 54448 KB Output is correct
26 Correct 115 ms 54524 KB Output is correct
27 Correct 89 ms 53700 KB Output is correct
28 Correct 94 ms 53808 KB Output is correct
29 Correct 115 ms 54476 KB Output is correct
30 Correct 114 ms 54512 KB Output is correct
31 Correct 117 ms 54556 KB Output is correct
32 Correct 112 ms 54536 KB Output is correct
33 Correct 106 ms 53832 KB Output is correct
34 Correct 114 ms 54512 KB Output is correct
35 Correct 99 ms 54340 KB Output is correct
36 Correct 102 ms 54424 KB Output is correct
37 Correct 139 ms 53728 KB Output is correct
38 Correct 94 ms 53620 KB Output is correct
39 Correct 93 ms 53304 KB Output is correct
40 Correct 89 ms 53436 KB Output is correct
41 Correct 133 ms 54512 KB Output is correct
42 Correct 120 ms 54332 KB Output is correct
43 Correct 117 ms 54392 KB Output is correct
44 Correct 116 ms 54316 KB Output is correct
45 Correct 116 ms 54420 KB Output is correct
46 Correct 118 ms 54376 KB Output is correct
47 Correct 114 ms 54396 KB Output is correct
48 Correct 119 ms 54376 KB Output is correct
49 Correct 87 ms 53564 KB Output is correct
50 Correct 100 ms 53548 KB Output is correct
51 Correct 132 ms 54284 KB Output is correct
52 Correct 114 ms 54320 KB Output is correct
53 Correct 84 ms 53692 KB Output is correct
54 Correct 115 ms 54348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 141 ms 53084 KB Output is correct
2 Correct 141 ms 55300 KB Output is correct
3 Correct 152 ms 55424 KB Output is correct
4 Correct 106 ms 54040 KB Output is correct
5 Correct 136 ms 54228 KB Output is correct
6 Correct 147 ms 55384 KB Output is correct
7 Correct 109 ms 54216 KB Output is correct
8 Correct 98 ms 53896 KB Output is correct
9 Correct 132 ms 55340 KB Output is correct
10 Correct 133 ms 53892 KB Output is correct
11 Correct 137 ms 55416 KB Output is correct
12 Correct 137 ms 55384 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 23 ms 47540 KB Output is correct
2 Correct 25 ms 47572 KB Output is correct
3 Correct 23 ms 47524 KB Output is correct
4 Correct 34 ms 47560 KB Output is correct
5 Correct 23 ms 47544 KB Output is correct
6 Correct 22 ms 47572 KB Output is correct
7 Correct 24 ms 47620 KB Output is correct
8 Correct 24 ms 47564 KB Output is correct
9 Correct 25 ms 47600 KB Output is correct
10 Correct 29 ms 47552 KB Output is correct
11 Correct 24 ms 47564 KB Output is correct
12 Correct 24 ms 47524 KB Output is correct
13 Correct 24 ms 47576 KB Output is correct
14 Correct 24 ms 47568 KB Output is correct
15 Correct 24 ms 47484 KB Output is correct
16 Correct 24 ms 47544 KB Output is correct
17 Correct 30 ms 47556 KB Output is correct
18 Correct 24 ms 47572 KB Output is correct
19 Correct 23 ms 47596 KB Output is correct
20 Correct 23 ms 47572 KB Output is correct
21 Correct 24 ms 47572 KB Output is correct
22 Correct 24 ms 47636 KB Output is correct
23 Correct 24 ms 47560 KB Output is correct
24 Correct 24 ms 47616 KB Output is correct
25 Correct 27 ms 47576 KB Output is correct
26 Correct 26 ms 47576 KB Output is correct
27 Correct 25 ms 47584 KB Output is correct
28 Correct 24 ms 47544 KB Output is correct
29 Correct 24 ms 47572 KB Output is correct
30 Correct 24 ms 47608 KB Output is correct
31 Correct 24 ms 47596 KB Output is correct
32 Correct 27 ms 47628 KB Output is correct
33 Correct 24 ms 47556 KB Output is correct
34 Correct 24 ms 47572 KB Output is correct
35 Correct 25 ms 47564 KB Output is correct
36 Correct 24 ms 47604 KB Output is correct
37 Correct 23 ms 47500 KB Output is correct
38 Correct 24 ms 47536 KB Output is correct
39 Correct 111 ms 53336 KB Output is correct
40 Correct 110 ms 54444 KB Output is correct
41 Correct 140 ms 54648 KB Output is correct
42 Correct 114 ms 54564 KB Output is correct
43 Correct 117 ms 54448 KB Output is correct
44 Correct 115 ms 54524 KB Output is correct
45 Correct 89 ms 53700 KB Output is correct
46 Correct 94 ms 53808 KB Output is correct
47 Correct 115 ms 54476 KB Output is correct
48 Correct 114 ms 54512 KB Output is correct
49 Correct 117 ms 54556 KB Output is correct
50 Correct 112 ms 54536 KB Output is correct
51 Correct 106 ms 53832 KB Output is correct
52 Correct 114 ms 54512 KB Output is correct
53 Correct 99 ms 54340 KB Output is correct
54 Correct 102 ms 54424 KB Output is correct
55 Correct 139 ms 53728 KB Output is correct
56 Correct 94 ms 53620 KB Output is correct
57 Correct 93 ms 53304 KB Output is correct
58 Correct 89 ms 53436 KB Output is correct
59 Correct 133 ms 54512 KB Output is correct
60 Correct 120 ms 54332 KB Output is correct
61 Correct 117 ms 54392 KB Output is correct
62 Correct 116 ms 54316 KB Output is correct
63 Correct 116 ms 54420 KB Output is correct
64 Correct 118 ms 54376 KB Output is correct
65 Correct 114 ms 54396 KB Output is correct
66 Correct 119 ms 54376 KB Output is correct
67 Correct 87 ms 53564 KB Output is correct
68 Correct 100 ms 53548 KB Output is correct
69 Correct 132 ms 54284 KB Output is correct
70 Correct 114 ms 54320 KB Output is correct
71 Correct 84 ms 53692 KB Output is correct
72 Correct 115 ms 54348 KB Output is correct
73 Correct 141 ms 53084 KB Output is correct
74 Correct 141 ms 55300 KB Output is correct
75 Correct 152 ms 55424 KB Output is correct
76 Correct 106 ms 54040 KB Output is correct
77 Correct 136 ms 54228 KB Output is correct
78 Correct 147 ms 55384 KB Output is correct
79 Correct 109 ms 54216 KB Output is correct
80 Correct 98 ms 53896 KB Output is correct
81 Correct 132 ms 55340 KB Output is correct
82 Correct 133 ms 53892 KB Output is correct
83 Correct 137 ms 55416 KB Output is correct
84 Correct 137 ms 55384 KB Output is correct
85 Correct 144 ms 54256 KB Output is correct
86 Correct 127 ms 55068 KB Output is correct
87 Correct 105 ms 54128 KB Output is correct
88 Correct 147 ms 54976 KB Output is correct
89 Correct 92 ms 54008 KB Output is correct
90 Correct 120 ms 54920 KB Output is correct
91 Correct 99 ms 53944 KB Output is correct
92 Correct 104 ms 53884 KB Output is correct
93 Correct 128 ms 54940 KB Output is correct
94 Correct 121 ms 54956 KB Output is correct
95 Correct 128 ms 54852 KB Output is correct
96 Correct 132 ms 55056 KB Output is correct
97 Correct 127 ms 54836 KB Output is correct
98 Correct 106 ms 53956 KB Output is correct
99 Correct 115 ms 54828 KB Output is correct
100 Correct 109 ms 53952 KB Output is correct
101 Correct 128 ms 54880 KB Output is correct
102 Correct 106 ms 54740 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 23 ms 47540 KB Output is correct
2 Correct 25 ms 47572 KB Output is correct
3 Correct 23 ms 47524 KB Output is correct
4 Correct 34 ms 47560 KB Output is correct
5 Correct 23 ms 47544 KB Output is correct
6 Correct 22 ms 47572 KB Output is correct
7 Correct 24 ms 47620 KB Output is correct
8 Correct 24 ms 47564 KB Output is correct
9 Correct 25 ms 47600 KB Output is correct
10 Correct 29 ms 47552 KB Output is correct
11 Correct 24 ms 47564 KB Output is correct
12 Correct 24 ms 47524 KB Output is correct
13 Correct 24 ms 47576 KB Output is correct
14 Correct 24 ms 47568 KB Output is correct
15 Correct 24 ms 47484 KB Output is correct
16 Correct 24 ms 47544 KB Output is correct
17 Correct 30 ms 47556 KB Output is correct
18 Correct 24 ms 47572 KB Output is correct
19 Correct 23 ms 47596 KB Output is correct
20 Correct 23 ms 47572 KB Output is correct
21 Correct 24 ms 47572 KB Output is correct
22 Correct 24 ms 47636 KB Output is correct
23 Correct 24 ms 47560 KB Output is correct
24 Correct 24 ms 47616 KB Output is correct
25 Correct 27 ms 47576 KB Output is correct
26 Correct 26 ms 47576 KB Output is correct
27 Correct 25 ms 47584 KB Output is correct
28 Correct 24 ms 47544 KB Output is correct
29 Correct 24 ms 47572 KB Output is correct
30 Correct 24 ms 47608 KB Output is correct
31 Correct 24 ms 47596 KB Output is correct
32 Correct 27 ms 47628 KB Output is correct
33 Correct 24 ms 47556 KB Output is correct
34 Correct 24 ms 47572 KB Output is correct
35 Correct 25 ms 47564 KB Output is correct
36 Correct 24 ms 47604 KB Output is correct
37 Correct 23 ms 47500 KB Output is correct
38 Correct 24 ms 47536 KB Output is correct
39 Correct 111 ms 53336 KB Output is correct
40 Correct 110 ms 54444 KB Output is correct
41 Correct 140 ms 54648 KB Output is correct
42 Correct 114 ms 54564 KB Output is correct
43 Correct 117 ms 54448 KB Output is correct
44 Correct 115 ms 54524 KB Output is correct
45 Correct 89 ms 53700 KB Output is correct
46 Correct 94 ms 53808 KB Output is correct
47 Correct 115 ms 54476 KB Output is correct
48 Correct 114 ms 54512 KB Output is correct
49 Correct 117 ms 54556 KB Output is correct
50 Correct 112 ms 54536 KB Output is correct
51 Correct 106 ms 53832 KB Output is correct
52 Correct 114 ms 54512 KB Output is correct
53 Correct 99 ms 54340 KB Output is correct
54 Correct 102 ms 54424 KB Output is correct
55 Correct 546 ms 69112 KB Output is correct
56 Correct 402 ms 69176 KB Output is correct
57 Correct 559 ms 70936 KB Output is correct
58 Correct 352 ms 69020 KB Output is correct
59 Correct 359 ms 69044 KB Output is correct
60 Correct 509 ms 70496 KB Output is correct
61 Correct 308 ms 70920 KB Output is correct
62 Correct 320 ms 70876 KB Output is correct
63 Correct 592 ms 71956 KB Output is correct
64 Correct 580 ms 71980 KB Output is correct
65 Correct 494 ms 70476 KB Output is correct
66 Correct 484 ms 70492 KB Output is correct
67 Correct 487 ms 70376 KB Output is correct
68 Correct 523 ms 70468 KB Output is correct
69 Correct 512 ms 70324 KB Output is correct
70 Correct 506 ms 70444 KB Output is correct
71 Correct 534 ms 70408 KB Output is correct
72 Correct 507 ms 70408 KB Output is correct
73 Correct 510 ms 70436 KB Output is correct
74 Correct 508 ms 70492 KB Output is correct
75 Correct 520 ms 70376 KB Output is correct
76 Correct 500 ms 70572 KB Output is correct
77 Correct 513 ms 70468 KB Output is correct
78 Correct 542 ms 70408 KB Output is correct
79 Correct 529 ms 70460 KB Output is correct
80 Correct 513 ms 70900 KB Output is correct
81 Correct 359 ms 69852 KB Output is correct
82 Correct 139 ms 53728 KB Output is correct
83 Correct 94 ms 53620 KB Output is correct
84 Correct 93 ms 53304 KB Output is correct
85 Correct 89 ms 53436 KB Output is correct
86 Correct 133 ms 54512 KB Output is correct
87 Correct 120 ms 54332 KB Output is correct
88 Correct 117 ms 54392 KB Output is correct
89 Correct 116 ms 54316 KB Output is correct
90 Correct 116 ms 54420 KB Output is correct
91 Correct 118 ms 54376 KB Output is correct
92 Correct 114 ms 54396 KB Output is correct
93 Correct 119 ms 54376 KB Output is correct
94 Correct 87 ms 53564 KB Output is correct
95 Correct 100 ms 53548 KB Output is correct
96 Correct 132 ms 54284 KB Output is correct
97 Correct 114 ms 54320 KB Output is correct
98 Correct 84 ms 53692 KB Output is correct
99 Correct 115 ms 54348 KB Output is correct
100 Correct 141 ms 53084 KB Output is correct
101 Correct 141 ms 55300 KB Output is correct
102 Correct 152 ms 55424 KB Output is correct
103 Correct 106 ms 54040 KB Output is correct
104 Correct 136 ms 54228 KB Output is correct
105 Correct 147 ms 55384 KB Output is correct
106 Correct 109 ms 54216 KB Output is correct
107 Correct 98 ms 53896 KB Output is correct
108 Correct 132 ms 55340 KB Output is correct
109 Correct 133 ms 53892 KB Output is correct
110 Correct 137 ms 55416 KB Output is correct
111 Correct 137 ms 55384 KB Output is correct
112 Correct 144 ms 54256 KB Output is correct
113 Correct 127 ms 55068 KB Output is correct
114 Correct 105 ms 54128 KB Output is correct
115 Correct 147 ms 54976 KB Output is correct
116 Correct 92 ms 54008 KB Output is correct
117 Correct 120 ms 54920 KB Output is correct
118 Correct 99 ms 53944 KB Output is correct
119 Correct 104 ms 53884 KB Output is correct
120 Correct 128 ms 54940 KB Output is correct
121 Correct 121 ms 54956 KB Output is correct
122 Correct 128 ms 54852 KB Output is correct
123 Correct 132 ms 55056 KB Output is correct
124 Correct 127 ms 54836 KB Output is correct
125 Correct 106 ms 53956 KB Output is correct
126 Correct 115 ms 54828 KB Output is correct
127 Correct 109 ms 53952 KB Output is correct
128 Correct 128 ms 54880 KB Output is correct
129 Correct 106 ms 54740 KB Output is correct
130 Correct 563 ms 77384 KB Output is correct
131 Correct 384 ms 73164 KB Output is correct
132 Correct 533 ms 77444 KB Output is correct
133 Correct 492 ms 75992 KB Output is correct
134 Correct 426 ms 73364 KB Output is correct
135 Correct 510 ms 77352 KB Output is correct
136 Correct 605 ms 78996 KB Output is correct
137 Correct 621 ms 78888 KB Output is correct
138 Correct 486 ms 77048 KB Output is correct
139 Correct 516 ms 77148 KB Output is correct
140 Correct 539 ms 76956 KB Output is correct
141 Correct 499 ms 77072 KB Output is correct
142 Correct 545 ms 77152 KB Output is correct
143 Correct 513 ms 77064 KB Output is correct
144 Correct 495 ms 77060 KB Output is correct
145 Correct 573 ms 77064 KB Output is correct
146 Correct 529 ms 76976 KB Output is correct
147 Correct 541 ms 77028 KB Output is correct
148 Correct 538 ms 77004 KB Output is correct
149 Correct 524 ms 77080 KB Output is correct
150 Correct 399 ms 76816 KB Output is correct
151 Correct 525 ms 77196 KB Output is correct
152 Correct 534 ms 77244 KB Output is correct
153 Correct 371 ms 76464 KB Output is correct