Submission #802357

# Submission time Handle Problem Language Result Execution time Memory
802357 2023-08-02T11:53:04 Z Divane Food Court (JOI21_foodcourt) C++14
100 / 100
484 ms 69516 KB
/* In the name of GOD */

#include <bits/stdc++.h>

using namespace std;

#define F first
#define S second 
#define mk make_pair
typedef long long ll;
typedef long double ld;
#define int long long
typedef pair <long long, long long> pii;
const int N = 250012, SegN = (1 << 19);
const long long INF = 1e18 + 31;
pii lz[SegN];
ll slz[SegN];
ll t[N], l[N], r[N], c[N], x[N], ans[N];
ll k[N];
vector <pii> v[N];
vector <pii> s[N], e[N];
int LZ[SegN];
int MX[SegN];

void SHIFT (int v) {
	if (!LZ[v])
		return;
	LZ[v << 1] += LZ[v];
	LZ[v << 1 | 1] += LZ[v];
	MX[v << 1] += LZ[v];
	MX[v << 1 | 1] += LZ[v];
	LZ[v] = 0;
}

void ADD (int l, int r, int x, int v = 1, int tl = 0, int tr = N - 1) {
	if (tl > r || l > tr) 
		return;
	if (l <= tl && tr <= r) {
		LZ[v] += x;
		MX[v] += x;
	} else {
		SHIFT(v);
		int mid = (tl + tr) >> 1;
		ADD (l, r, x, v << 1, tl, mid);
		ADD (l, r, x, v << 1 | 1, mid + 1, tr);
		MX[v] = max(MX[v << 1], MX[v << 1 | 1]);
	}
}

int GET (int x, int v = 1, int tl = 0, int tr = N - 1) {
	if (x == -1)
		return 0;
	if (tl == tr) {
		return c[tl];
	}
	SHIFT(v);
	int mid = (tl + tr) >> 1;
	if (MX[v << 1] >= x) {
		return GET (x, v << 1, tl, mid);
	} else {
		return GET (x, v << 1 | 1, mid + 1, tr);
	}
}

void shift (int v) {
	ll x = lz[v].F, y = lz[v].S;
	lz[v << 1].F += x;
	lz[v << 1].S += x;
	lz[v << 1 | 1].F += x;
	lz[v << 1 | 1].S += x;
	lz[v << 1].S = max(lz[v << 1].S, y);
	lz[v << 1 | 1].S = max(lz[v << 1 | 1].S, y);
	slz[v << 1] += slz[v];
	slz[v << 1 | 1] += slz[v];
	lz[v] = mk(0, -INF);
	slz[v] = 0;
}

void mx (int l, int r, ll x, int v = 1, int tl = 0, int tr = N - 1) {
	if (tl > r || l > tr) 
		return;
	if (l <= tl && tr <= r) {
		lz[v].S = max(lz[v].S, x);
	} else {
		shift(v);
		int mid = (tl + tr) >> 1;
		mx (l, r, x, v << 1, tl, mid);
		mx (l, r, x, v << 1 | 1, mid + 1, tr);
	}
}

void add (int l, int r, ll x, int v = 1, int tl = 0, int tr = N - 1) {
//	cout << l << ' ' << r << ' ' << x << ' ' << v << ' ' << tl << ' ' << tr << '\n';
	if (tl > r || l > tr) 
		return;
	if (l <= tl && tr <= r) {
		//cout << "wef\n";
		slz[v] += max(0LL, x);
		lz[v].S += x;
		lz[v].F += x;
		//cout << lz[v].F << ' ' << lz[v].S << '\n';
	} else {
		shift(v);
		int mid = (tl + tr) >> 1;
		add (l, r, x, v << 1, tl, mid);
		add (l, r, x, v << 1 | 1, mid + 1, tr);
	}
}

pii get (int i, int v = 1, int tl = 0, int tr = N - 1) {
	if (tl == tr) 
		return mk(slz[v], max(lz[v].F, lz[v].S));
	shift(v);
	int mid = (tl + tr) >> 1;
	if (i <= mid)
		return get (i, v << 1, tl, mid);
	return get (i, v << 1 | 1, mid + 1, tr);
}

int32_t main () {
	ios::sync_with_stdio(false);
	cin.tie();
	for (int v = 0; v < SegN; v++)
		lz[v] = mk(0, -INF);
	int n, m, q;
	cin >> n >> m >> q;
	for (int i = 0; i < q; i++) {
		ans[i] = -1;
		cin >> t[i];
		if (t[i] == 1) {
			cin >> l[i] >> r[i] >> c[i] >> k[i];
			s[l[i]].push_back(mk(i, k[i]));
			e[r[i]].push_back(mk(i, k[i]));
			add (l[i], r[i], k[i]);
		} else if (t[i] == 2) {
			cin >> l[i] >> r[i] >> k[i]; 
			add (l[i], r[i], -k[i]);
			mx (l[i], r[i], 0);
		} else {
			cin >> l[i] >> k[i];
			pii p = get (l[i]);
			if (k[i] > p.S) {
				x[i] = -1;
			} else {
				x[i] = p.F - p.S + k[i];
			}
			v[l[i]].push_back(mk(x[i], i));
		}
	}
	// FFFFFFFFFFFFFFFINALY
	for (int i = 1; i <= n; i++) {
		for (auto [tt, kk] : s[i]) {
			ADD (tt, N - 1, kk);
		}
		for (auto [j, ii] : v[i]) 
			ans[ii] = GET (j);
		for (auto [tt, kk] : e[i]) {
			ADD (tt, N - 1, -kk);
		}
	}
	for (int i = 0; i < q; i++) {
		if (ans[i] >= 0)
			cout << ans[i] << '\n';
	}
}

Compilation message

foodcourt.cpp: In function 'int32_t main()':
foodcourt.cpp:152:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
  152 |   for (auto [tt, kk] : s[i]) {
      |             ^
foodcourt.cpp:155:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
  155 |   for (auto [j, ii] : v[i])
      |             ^
foodcourt.cpp:157:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
  157 |   for (auto [tt, kk] : e[i]) {
      |             ^
# Verdict Execution time Memory Grader output
1 Correct 14 ms 26520 KB Output is correct
2 Correct 15 ms 26488 KB Output is correct
3 Correct 14 ms 26472 KB Output is correct
4 Correct 15 ms 26572 KB Output is correct
5 Correct 14 ms 26504 KB Output is correct
6 Correct 13 ms 26436 KB Output is correct
7 Correct 15 ms 26564 KB Output is correct
8 Correct 14 ms 26580 KB Output is correct
9 Correct 14 ms 26580 KB Output is correct
10 Correct 14 ms 26580 KB Output is correct
11 Correct 15 ms 26580 KB Output is correct
12 Correct 14 ms 26560 KB Output is correct
13 Correct 16 ms 26452 KB Output is correct
14 Correct 15 ms 26620 KB Output is correct
15 Correct 15 ms 26452 KB Output is correct
16 Correct 16 ms 26572 KB Output is correct
17 Correct 14 ms 26560 KB Output is correct
18 Correct 15 ms 26580 KB Output is correct
19 Correct 16 ms 26612 KB Output is correct
20 Correct 17 ms 26560 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 26520 KB Output is correct
2 Correct 15 ms 26488 KB Output is correct
3 Correct 14 ms 26472 KB Output is correct
4 Correct 15 ms 26572 KB Output is correct
5 Correct 14 ms 26504 KB Output is correct
6 Correct 13 ms 26436 KB Output is correct
7 Correct 15 ms 26564 KB Output is correct
8 Correct 14 ms 26580 KB Output is correct
9 Correct 14 ms 26580 KB Output is correct
10 Correct 14 ms 26580 KB Output is correct
11 Correct 15 ms 26580 KB Output is correct
12 Correct 14 ms 26560 KB Output is correct
13 Correct 16 ms 26452 KB Output is correct
14 Correct 15 ms 26620 KB Output is correct
15 Correct 15 ms 26452 KB Output is correct
16 Correct 16 ms 26572 KB Output is correct
17 Correct 14 ms 26560 KB Output is correct
18 Correct 15 ms 26580 KB Output is correct
19 Correct 16 ms 26612 KB Output is correct
20 Correct 17 ms 26560 KB Output is correct
21 Correct 15 ms 26580 KB Output is correct
22 Correct 14 ms 26580 KB Output is correct
23 Correct 14 ms 26576 KB Output is correct
24 Correct 14 ms 26580 KB Output is correct
25 Correct 14 ms 26472 KB Output is correct
26 Correct 14 ms 26524 KB Output is correct
27 Correct 15 ms 26552 KB Output is correct
28 Correct 14 ms 26580 KB Output is correct
29 Correct 15 ms 26628 KB Output is correct
30 Correct 14 ms 26528 KB Output is correct
31 Correct 15 ms 26552 KB Output is correct
32 Correct 14 ms 26616 KB Output is correct
33 Correct 14 ms 26612 KB Output is correct
34 Correct 14 ms 26580 KB Output is correct
35 Correct 15 ms 26544 KB Output is correct
36 Correct 15 ms 26580 KB Output is correct
37 Correct 15 ms 26580 KB Output is correct
38 Correct 17 ms 26640 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 83 ms 34876 KB Output is correct
2 Correct 83 ms 35300 KB Output is correct
3 Correct 84 ms 34976 KB Output is correct
4 Correct 104 ms 34920 KB Output is correct
5 Correct 83 ms 35336 KB Output is correct
6 Correct 80 ms 35356 KB Output is correct
7 Correct 50 ms 33036 KB Output is correct
8 Correct 53 ms 32892 KB Output is correct
9 Correct 78 ms 33940 KB Output is correct
10 Correct 79 ms 34908 KB Output is correct
11 Correct 79 ms 34552 KB Output is correct
12 Correct 95 ms 35104 KB Output is correct
13 Correct 71 ms 34408 KB Output is correct
14 Correct 89 ms 35592 KB Output is correct
15 Correct 100 ms 35728 KB Output is correct
16 Correct 115 ms 36216 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 353 ms 56772 KB Output is correct
2 Correct 263 ms 50852 KB Output is correct
3 Correct 437 ms 59508 KB Output is correct
4 Correct 302 ms 52500 KB Output is correct
5 Correct 305 ms 51928 KB Output is correct
6 Correct 435 ms 60888 KB Output is correct
7 Correct 184 ms 52312 KB Output is correct
8 Correct 207 ms 52872 KB Output is correct
9 Correct 423 ms 62504 KB Output is correct
10 Correct 463 ms 62536 KB Output is correct
11 Correct 391 ms 54240 KB Output is correct
12 Correct 396 ms 59336 KB Output is correct
13 Correct 388 ms 54732 KB Output is correct
14 Correct 390 ms 59360 KB Output is correct
15 Correct 386 ms 59228 KB Output is correct
16 Correct 437 ms 59432 KB Output is correct
17 Correct 418 ms 59288 KB Output is correct
18 Correct 385 ms 56868 KB Output is correct
19 Correct 385 ms 59200 KB Output is correct
20 Correct 389 ms 57452 KB Output is correct
21 Correct 381 ms 59336 KB Output is correct
22 Correct 391 ms 59252 KB Output is correct
23 Correct 484 ms 59296 KB Output is correct
24 Correct 408 ms 59248 KB Output is correct
25 Correct 276 ms 57612 KB Output is correct
26 Correct 350 ms 59084 KB Output is correct
27 Correct 305 ms 62248 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 26520 KB Output is correct
2 Correct 15 ms 26488 KB Output is correct
3 Correct 14 ms 26472 KB Output is correct
4 Correct 15 ms 26572 KB Output is correct
5 Correct 14 ms 26504 KB Output is correct
6 Correct 13 ms 26436 KB Output is correct
7 Correct 15 ms 26564 KB Output is correct
8 Correct 14 ms 26580 KB Output is correct
9 Correct 14 ms 26580 KB Output is correct
10 Correct 14 ms 26580 KB Output is correct
11 Correct 15 ms 26580 KB Output is correct
12 Correct 14 ms 26560 KB Output is correct
13 Correct 16 ms 26452 KB Output is correct
14 Correct 15 ms 26620 KB Output is correct
15 Correct 15 ms 26452 KB Output is correct
16 Correct 16 ms 26572 KB Output is correct
17 Correct 14 ms 26560 KB Output is correct
18 Correct 15 ms 26580 KB Output is correct
19 Correct 16 ms 26612 KB Output is correct
20 Correct 17 ms 26560 KB Output is correct
21 Correct 83 ms 34876 KB Output is correct
22 Correct 83 ms 35300 KB Output is correct
23 Correct 84 ms 34976 KB Output is correct
24 Correct 104 ms 34920 KB Output is correct
25 Correct 83 ms 35336 KB Output is correct
26 Correct 80 ms 35356 KB Output is correct
27 Correct 50 ms 33036 KB Output is correct
28 Correct 53 ms 32892 KB Output is correct
29 Correct 78 ms 33940 KB Output is correct
30 Correct 79 ms 34908 KB Output is correct
31 Correct 79 ms 34552 KB Output is correct
32 Correct 95 ms 35104 KB Output is correct
33 Correct 71 ms 34408 KB Output is correct
34 Correct 89 ms 35592 KB Output is correct
35 Correct 100 ms 35728 KB Output is correct
36 Correct 115 ms 36216 KB Output is correct
37 Correct 74 ms 34048 KB Output is correct
38 Correct 69 ms 33612 KB Output is correct
39 Correct 46 ms 31888 KB Output is correct
40 Correct 52 ms 32812 KB Output is correct
41 Correct 96 ms 33588 KB Output is correct
42 Correct 83 ms 34952 KB Output is correct
43 Correct 97 ms 34948 KB Output is correct
44 Correct 84 ms 34204 KB Output is correct
45 Correct 91 ms 34908 KB Output is correct
46 Correct 86 ms 34852 KB Output is correct
47 Correct 68 ms 34480 KB Output is correct
48 Correct 84 ms 34892 KB Output is correct
49 Correct 61 ms 32384 KB Output is correct
50 Correct 73 ms 33696 KB Output is correct
51 Correct 84 ms 34956 KB Output is correct
52 Correct 84 ms 34912 KB Output is correct
53 Correct 69 ms 34172 KB Output is correct
54 Correct 97 ms 36424 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 81 ms 34956 KB Output is correct
2 Correct 88 ms 37232 KB Output is correct
3 Correct 85 ms 37520 KB Output is correct
4 Correct 67 ms 34456 KB Output is correct
5 Correct 76 ms 36032 KB Output is correct
6 Correct 88 ms 37428 KB Output is correct
7 Correct 55 ms 34064 KB Output is correct
8 Correct 52 ms 33816 KB Output is correct
9 Correct 75 ms 36672 KB Output is correct
10 Correct 54 ms 34228 KB Output is correct
11 Correct 79 ms 37196 KB Output is correct
12 Correct 78 ms 37012 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 26520 KB Output is correct
2 Correct 15 ms 26488 KB Output is correct
3 Correct 14 ms 26472 KB Output is correct
4 Correct 15 ms 26572 KB Output is correct
5 Correct 14 ms 26504 KB Output is correct
6 Correct 13 ms 26436 KB Output is correct
7 Correct 15 ms 26564 KB Output is correct
8 Correct 14 ms 26580 KB Output is correct
9 Correct 14 ms 26580 KB Output is correct
10 Correct 14 ms 26580 KB Output is correct
11 Correct 15 ms 26580 KB Output is correct
12 Correct 14 ms 26560 KB Output is correct
13 Correct 16 ms 26452 KB Output is correct
14 Correct 15 ms 26620 KB Output is correct
15 Correct 15 ms 26452 KB Output is correct
16 Correct 16 ms 26572 KB Output is correct
17 Correct 14 ms 26560 KB Output is correct
18 Correct 15 ms 26580 KB Output is correct
19 Correct 16 ms 26612 KB Output is correct
20 Correct 17 ms 26560 KB Output is correct
21 Correct 15 ms 26580 KB Output is correct
22 Correct 14 ms 26580 KB Output is correct
23 Correct 14 ms 26576 KB Output is correct
24 Correct 14 ms 26580 KB Output is correct
25 Correct 14 ms 26472 KB Output is correct
26 Correct 14 ms 26524 KB Output is correct
27 Correct 15 ms 26552 KB Output is correct
28 Correct 14 ms 26580 KB Output is correct
29 Correct 15 ms 26628 KB Output is correct
30 Correct 14 ms 26528 KB Output is correct
31 Correct 15 ms 26552 KB Output is correct
32 Correct 14 ms 26616 KB Output is correct
33 Correct 14 ms 26612 KB Output is correct
34 Correct 14 ms 26580 KB Output is correct
35 Correct 15 ms 26544 KB Output is correct
36 Correct 15 ms 26580 KB Output is correct
37 Correct 15 ms 26580 KB Output is correct
38 Correct 17 ms 26640 KB Output is correct
39 Correct 83 ms 34876 KB Output is correct
40 Correct 83 ms 35300 KB Output is correct
41 Correct 84 ms 34976 KB Output is correct
42 Correct 104 ms 34920 KB Output is correct
43 Correct 83 ms 35336 KB Output is correct
44 Correct 80 ms 35356 KB Output is correct
45 Correct 50 ms 33036 KB Output is correct
46 Correct 53 ms 32892 KB Output is correct
47 Correct 78 ms 33940 KB Output is correct
48 Correct 79 ms 34908 KB Output is correct
49 Correct 79 ms 34552 KB Output is correct
50 Correct 95 ms 35104 KB Output is correct
51 Correct 71 ms 34408 KB Output is correct
52 Correct 89 ms 35592 KB Output is correct
53 Correct 100 ms 35728 KB Output is correct
54 Correct 115 ms 36216 KB Output is correct
55 Correct 74 ms 34048 KB Output is correct
56 Correct 69 ms 33612 KB Output is correct
57 Correct 46 ms 31888 KB Output is correct
58 Correct 52 ms 32812 KB Output is correct
59 Correct 96 ms 33588 KB Output is correct
60 Correct 83 ms 34952 KB Output is correct
61 Correct 97 ms 34948 KB Output is correct
62 Correct 84 ms 34204 KB Output is correct
63 Correct 91 ms 34908 KB Output is correct
64 Correct 86 ms 34852 KB Output is correct
65 Correct 68 ms 34480 KB Output is correct
66 Correct 84 ms 34892 KB Output is correct
67 Correct 61 ms 32384 KB Output is correct
68 Correct 73 ms 33696 KB Output is correct
69 Correct 84 ms 34956 KB Output is correct
70 Correct 84 ms 34912 KB Output is correct
71 Correct 69 ms 34172 KB Output is correct
72 Correct 97 ms 36424 KB Output is correct
73 Correct 81 ms 34956 KB Output is correct
74 Correct 88 ms 37232 KB Output is correct
75 Correct 85 ms 37520 KB Output is correct
76 Correct 67 ms 34456 KB Output is correct
77 Correct 76 ms 36032 KB Output is correct
78 Correct 88 ms 37428 KB Output is correct
79 Correct 55 ms 34064 KB Output is correct
80 Correct 52 ms 33816 KB Output is correct
81 Correct 75 ms 36672 KB Output is correct
82 Correct 54 ms 34228 KB Output is correct
83 Correct 79 ms 37196 KB Output is correct
84 Correct 78 ms 37012 KB Output is correct
85 Correct 81 ms 35432 KB Output is correct
86 Correct 84 ms 36556 KB Output is correct
87 Correct 80 ms 35680 KB Output is correct
88 Correct 113 ms 36976 KB Output is correct
89 Correct 60 ms 32460 KB Output is correct
90 Correct 95 ms 36524 KB Output is correct
91 Correct 84 ms 34464 KB Output is correct
92 Correct 69 ms 34108 KB Output is correct
93 Correct 87 ms 36480 KB Output is correct
94 Correct 91 ms 35844 KB Output is correct
95 Correct 85 ms 36188 KB Output is correct
96 Correct 93 ms 36556 KB Output is correct
97 Correct 122 ms 36504 KB Output is correct
98 Correct 88 ms 34860 KB Output is correct
99 Correct 74 ms 35884 KB Output is correct
100 Correct 64 ms 34716 KB Output is correct
101 Correct 75 ms 36332 KB Output is correct
102 Correct 79 ms 37240 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 26520 KB Output is correct
2 Correct 15 ms 26488 KB Output is correct
3 Correct 14 ms 26472 KB Output is correct
4 Correct 15 ms 26572 KB Output is correct
5 Correct 14 ms 26504 KB Output is correct
6 Correct 13 ms 26436 KB Output is correct
7 Correct 15 ms 26564 KB Output is correct
8 Correct 14 ms 26580 KB Output is correct
9 Correct 14 ms 26580 KB Output is correct
10 Correct 14 ms 26580 KB Output is correct
11 Correct 15 ms 26580 KB Output is correct
12 Correct 14 ms 26560 KB Output is correct
13 Correct 16 ms 26452 KB Output is correct
14 Correct 15 ms 26620 KB Output is correct
15 Correct 15 ms 26452 KB Output is correct
16 Correct 16 ms 26572 KB Output is correct
17 Correct 14 ms 26560 KB Output is correct
18 Correct 15 ms 26580 KB Output is correct
19 Correct 16 ms 26612 KB Output is correct
20 Correct 17 ms 26560 KB Output is correct
21 Correct 15 ms 26580 KB Output is correct
22 Correct 14 ms 26580 KB Output is correct
23 Correct 14 ms 26576 KB Output is correct
24 Correct 14 ms 26580 KB Output is correct
25 Correct 14 ms 26472 KB Output is correct
26 Correct 14 ms 26524 KB Output is correct
27 Correct 15 ms 26552 KB Output is correct
28 Correct 14 ms 26580 KB Output is correct
29 Correct 15 ms 26628 KB Output is correct
30 Correct 14 ms 26528 KB Output is correct
31 Correct 15 ms 26552 KB Output is correct
32 Correct 14 ms 26616 KB Output is correct
33 Correct 14 ms 26612 KB Output is correct
34 Correct 14 ms 26580 KB Output is correct
35 Correct 15 ms 26544 KB Output is correct
36 Correct 15 ms 26580 KB Output is correct
37 Correct 15 ms 26580 KB Output is correct
38 Correct 17 ms 26640 KB Output is correct
39 Correct 83 ms 34876 KB Output is correct
40 Correct 83 ms 35300 KB Output is correct
41 Correct 84 ms 34976 KB Output is correct
42 Correct 104 ms 34920 KB Output is correct
43 Correct 83 ms 35336 KB Output is correct
44 Correct 80 ms 35356 KB Output is correct
45 Correct 50 ms 33036 KB Output is correct
46 Correct 53 ms 32892 KB Output is correct
47 Correct 78 ms 33940 KB Output is correct
48 Correct 79 ms 34908 KB Output is correct
49 Correct 79 ms 34552 KB Output is correct
50 Correct 95 ms 35104 KB Output is correct
51 Correct 71 ms 34408 KB Output is correct
52 Correct 89 ms 35592 KB Output is correct
53 Correct 100 ms 35728 KB Output is correct
54 Correct 115 ms 36216 KB Output is correct
55 Correct 353 ms 56772 KB Output is correct
56 Correct 263 ms 50852 KB Output is correct
57 Correct 437 ms 59508 KB Output is correct
58 Correct 302 ms 52500 KB Output is correct
59 Correct 305 ms 51928 KB Output is correct
60 Correct 435 ms 60888 KB Output is correct
61 Correct 184 ms 52312 KB Output is correct
62 Correct 207 ms 52872 KB Output is correct
63 Correct 423 ms 62504 KB Output is correct
64 Correct 463 ms 62536 KB Output is correct
65 Correct 391 ms 54240 KB Output is correct
66 Correct 396 ms 59336 KB Output is correct
67 Correct 388 ms 54732 KB Output is correct
68 Correct 390 ms 59360 KB Output is correct
69 Correct 386 ms 59228 KB Output is correct
70 Correct 437 ms 59432 KB Output is correct
71 Correct 418 ms 59288 KB Output is correct
72 Correct 385 ms 56868 KB Output is correct
73 Correct 385 ms 59200 KB Output is correct
74 Correct 389 ms 57452 KB Output is correct
75 Correct 381 ms 59336 KB Output is correct
76 Correct 391 ms 59252 KB Output is correct
77 Correct 484 ms 59296 KB Output is correct
78 Correct 408 ms 59248 KB Output is correct
79 Correct 276 ms 57612 KB Output is correct
80 Correct 350 ms 59084 KB Output is correct
81 Correct 305 ms 62248 KB Output is correct
82 Correct 74 ms 34048 KB Output is correct
83 Correct 69 ms 33612 KB Output is correct
84 Correct 46 ms 31888 KB Output is correct
85 Correct 52 ms 32812 KB Output is correct
86 Correct 96 ms 33588 KB Output is correct
87 Correct 83 ms 34952 KB Output is correct
88 Correct 97 ms 34948 KB Output is correct
89 Correct 84 ms 34204 KB Output is correct
90 Correct 91 ms 34908 KB Output is correct
91 Correct 86 ms 34852 KB Output is correct
92 Correct 68 ms 34480 KB Output is correct
93 Correct 84 ms 34892 KB Output is correct
94 Correct 61 ms 32384 KB Output is correct
95 Correct 73 ms 33696 KB Output is correct
96 Correct 84 ms 34956 KB Output is correct
97 Correct 84 ms 34912 KB Output is correct
98 Correct 69 ms 34172 KB Output is correct
99 Correct 97 ms 36424 KB Output is correct
100 Correct 81 ms 34956 KB Output is correct
101 Correct 88 ms 37232 KB Output is correct
102 Correct 85 ms 37520 KB Output is correct
103 Correct 67 ms 34456 KB Output is correct
104 Correct 76 ms 36032 KB Output is correct
105 Correct 88 ms 37428 KB Output is correct
106 Correct 55 ms 34064 KB Output is correct
107 Correct 52 ms 33816 KB Output is correct
108 Correct 75 ms 36672 KB Output is correct
109 Correct 54 ms 34228 KB Output is correct
110 Correct 79 ms 37196 KB Output is correct
111 Correct 78 ms 37012 KB Output is correct
112 Correct 81 ms 35432 KB Output is correct
113 Correct 84 ms 36556 KB Output is correct
114 Correct 80 ms 35680 KB Output is correct
115 Correct 113 ms 36976 KB Output is correct
116 Correct 60 ms 32460 KB Output is correct
117 Correct 95 ms 36524 KB Output is correct
118 Correct 84 ms 34464 KB Output is correct
119 Correct 69 ms 34108 KB Output is correct
120 Correct 87 ms 36480 KB Output is correct
121 Correct 91 ms 35844 KB Output is correct
122 Correct 85 ms 36188 KB Output is correct
123 Correct 93 ms 36556 KB Output is correct
124 Correct 122 ms 36504 KB Output is correct
125 Correct 88 ms 34860 KB Output is correct
126 Correct 74 ms 35884 KB Output is correct
127 Correct 64 ms 34716 KB Output is correct
128 Correct 75 ms 36332 KB Output is correct
129 Correct 79 ms 37240 KB Output is correct
130 Correct 398 ms 65884 KB Output is correct
131 Correct 281 ms 55308 KB Output is correct
132 Correct 375 ms 65992 KB Output is correct
133 Correct 389 ms 66028 KB Output is correct
134 Correct 361 ms 62164 KB Output is correct
135 Correct 422 ms 67832 KB Output is correct
136 Correct 405 ms 69516 KB Output is correct
137 Correct 399 ms 69440 KB Output is correct
138 Correct 374 ms 60992 KB Output is correct
139 Correct 395 ms 66004 KB Output is correct
140 Correct 377 ms 62140 KB Output is correct
141 Correct 394 ms 65928 KB Output is correct
142 Correct 381 ms 65912 KB Output is correct
143 Correct 407 ms 65880 KB Output is correct
144 Correct 376 ms 63460 KB Output is correct
145 Correct 390 ms 66000 KB Output is correct
146 Correct 413 ms 64500 KB Output is correct
147 Correct 425 ms 65880 KB Output is correct
148 Correct 395 ms 65888 KB Output is correct
149 Correct 400 ms 65872 KB Output is correct
150 Correct 258 ms 63148 KB Output is correct
151 Correct 301 ms 65292 KB Output is correct
152 Correct 322 ms 65424 KB Output is correct
153 Correct 364 ms 68840 KB Output is correct