답안 #802417

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
802417 2023-08-02T12:11:50 Z Divane 푸드 코트 (JOI21_foodcourt) C++14
100 / 100
587 ms 62816 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 ll
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];
int t[N], l[N], r[N], c[N], ans[N];
ll k[N], x[N];
vector <pair <ll, int>> v[N];
vector <pair <int, int>> s[N], e[N];
ll LZ[SegN];
ll 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, 0);
	slz[v] = 0;
}

void add (int l, int r, int 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, 0);
	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]);
		} 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:138:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
  138 |   for (auto [tt, kk] : s[i]) {
      |             ^
foodcourt.cpp:141:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
  141 |   for (auto [j, ii] : v[i])
      |             ^
foodcourt.cpp:143:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
  143 |   for (auto [tt, kk] : e[i]) {
      |             ^
# 결과 실행 시간 메모리 Grader output
1 Correct 16 ms 26464 KB Output is correct
2 Correct 15 ms 26592 KB Output is correct
3 Correct 17 ms 26552 KB Output is correct
4 Correct 15 ms 26580 KB Output is correct
5 Correct 14 ms 26548 KB Output is correct
6 Correct 14 ms 26452 KB Output is correct
7 Correct 19 ms 26496 KB Output is correct
8 Correct 17 ms 26532 KB Output is correct
9 Correct 15 ms 26576 KB Output is correct
10 Correct 19 ms 26580 KB Output is correct
11 Correct 16 ms 26580 KB Output is correct
12 Correct 19 ms 26576 KB Output is correct
13 Correct 14 ms 26452 KB Output is correct
14 Correct 16 ms 26564 KB Output is correct
15 Correct 14 ms 26500 KB Output is correct
16 Correct 15 ms 26564 KB Output is correct
17 Correct 14 ms 26452 KB Output is correct
18 Correct 17 ms 26540 KB Output is correct
19 Correct 19 ms 26668 KB Output is correct
20 Correct 16 ms 26552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 16 ms 26464 KB Output is correct
2 Correct 15 ms 26592 KB Output is correct
3 Correct 17 ms 26552 KB Output is correct
4 Correct 15 ms 26580 KB Output is correct
5 Correct 14 ms 26548 KB Output is correct
6 Correct 14 ms 26452 KB Output is correct
7 Correct 19 ms 26496 KB Output is correct
8 Correct 17 ms 26532 KB Output is correct
9 Correct 15 ms 26576 KB Output is correct
10 Correct 19 ms 26580 KB Output is correct
11 Correct 16 ms 26580 KB Output is correct
12 Correct 19 ms 26576 KB Output is correct
13 Correct 14 ms 26452 KB Output is correct
14 Correct 16 ms 26564 KB Output is correct
15 Correct 14 ms 26500 KB Output is correct
16 Correct 15 ms 26564 KB Output is correct
17 Correct 14 ms 26452 KB Output is correct
18 Correct 17 ms 26540 KB Output is correct
19 Correct 19 ms 26668 KB Output is correct
20 Correct 16 ms 26552 KB Output is correct
21 Correct 15 ms 26508 KB Output is correct
22 Correct 14 ms 26492 KB Output is correct
23 Correct 15 ms 26580 KB Output is correct
24 Correct 20 ms 26572 KB Output is correct
25 Correct 18 ms 26556 KB Output is correct
26 Correct 14 ms 26568 KB Output is correct
27 Correct 20 ms 26508 KB Output is correct
28 Correct 15 ms 26580 KB Output is correct
29 Correct 16 ms 26536 KB Output is correct
30 Correct 15 ms 26588 KB Output is correct
31 Correct 15 ms 26608 KB Output is correct
32 Correct 15 ms 26548 KB Output is correct
33 Correct 15 ms 26580 KB Output is correct
34 Correct 18 ms 26548 KB Output is correct
35 Correct 15 ms 26476 KB Output is correct
36 Correct 14 ms 26524 KB Output is correct
37 Correct 17 ms 26560 KB Output is correct
38 Correct 19 ms 26632 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 81 ms 34892 KB Output is correct
2 Correct 84 ms 35332 KB Output is correct
3 Correct 83 ms 34884 KB Output is correct
4 Correct 99 ms 34908 KB Output is correct
5 Correct 87 ms 35400 KB Output is correct
6 Correct 85 ms 35388 KB Output is correct
7 Correct 48 ms 33056 KB Output is correct
8 Correct 55 ms 32900 KB Output is correct
9 Correct 70 ms 33952 KB Output is correct
10 Correct 73 ms 34956 KB Output is correct
11 Correct 77 ms 34580 KB Output is correct
12 Correct 83 ms 34956 KB Output is correct
13 Correct 67 ms 34372 KB Output is correct
14 Correct 91 ms 35612 KB Output is correct
15 Correct 98 ms 35732 KB Output is correct
16 Correct 111 ms 36256 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 322 ms 56788 KB Output is correct
2 Correct 242 ms 50908 KB Output is correct
3 Correct 344 ms 59488 KB Output is correct
4 Correct 296 ms 52516 KB Output is correct
5 Correct 280 ms 51912 KB Output is correct
6 Correct 551 ms 60912 KB Output is correct
7 Correct 202 ms 52244 KB Output is correct
8 Correct 234 ms 52832 KB Output is correct
9 Correct 427 ms 62540 KB Output is correct
10 Correct 447 ms 62432 KB Output is correct
11 Correct 361 ms 54224 KB Output is correct
12 Correct 438 ms 59232 KB Output is correct
13 Correct 398 ms 54812 KB Output is correct
14 Correct 381 ms 59232 KB Output is correct
15 Correct 387 ms 59320 KB Output is correct
16 Correct 389 ms 59260 KB Output is correct
17 Correct 437 ms 59316 KB Output is correct
18 Correct 407 ms 56804 KB Output is correct
19 Correct 492 ms 59324 KB Output is correct
20 Correct 443 ms 57236 KB Output is correct
21 Correct 376 ms 59336 KB Output is correct
22 Correct 394 ms 59344 KB Output is correct
23 Correct 371 ms 59336 KB Output is correct
24 Correct 388 ms 59324 KB Output is correct
25 Correct 262 ms 57652 KB Output is correct
26 Correct 264 ms 59044 KB Output is correct
27 Correct 331 ms 62272 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 16 ms 26464 KB Output is correct
2 Correct 15 ms 26592 KB Output is correct
3 Correct 17 ms 26552 KB Output is correct
4 Correct 15 ms 26580 KB Output is correct
5 Correct 14 ms 26548 KB Output is correct
6 Correct 14 ms 26452 KB Output is correct
7 Correct 19 ms 26496 KB Output is correct
8 Correct 17 ms 26532 KB Output is correct
9 Correct 15 ms 26576 KB Output is correct
10 Correct 19 ms 26580 KB Output is correct
11 Correct 16 ms 26580 KB Output is correct
12 Correct 19 ms 26576 KB Output is correct
13 Correct 14 ms 26452 KB Output is correct
14 Correct 16 ms 26564 KB Output is correct
15 Correct 14 ms 26500 KB Output is correct
16 Correct 15 ms 26564 KB Output is correct
17 Correct 14 ms 26452 KB Output is correct
18 Correct 17 ms 26540 KB Output is correct
19 Correct 19 ms 26668 KB Output is correct
20 Correct 16 ms 26552 KB Output is correct
21 Correct 81 ms 34892 KB Output is correct
22 Correct 84 ms 35332 KB Output is correct
23 Correct 83 ms 34884 KB Output is correct
24 Correct 99 ms 34908 KB Output is correct
25 Correct 87 ms 35400 KB Output is correct
26 Correct 85 ms 35388 KB Output is correct
27 Correct 48 ms 33056 KB Output is correct
28 Correct 55 ms 32900 KB Output is correct
29 Correct 70 ms 33952 KB Output is correct
30 Correct 73 ms 34956 KB Output is correct
31 Correct 77 ms 34580 KB Output is correct
32 Correct 83 ms 34956 KB Output is correct
33 Correct 67 ms 34372 KB Output is correct
34 Correct 91 ms 35612 KB Output is correct
35 Correct 98 ms 35732 KB Output is correct
36 Correct 111 ms 36256 KB Output is correct
37 Correct 96 ms 34152 KB Output is correct
38 Correct 83 ms 33608 KB Output is correct
39 Correct 51 ms 31888 KB Output is correct
40 Correct 61 ms 32840 KB Output is correct
41 Correct 80 ms 33640 KB Output is correct
42 Correct 80 ms 34872 KB Output is correct
43 Correct 91 ms 34920 KB Output is correct
44 Correct 86 ms 34204 KB Output is correct
45 Correct 92 ms 34960 KB Output is correct
46 Correct 78 ms 34932 KB Output is correct
47 Correct 62 ms 34420 KB Output is correct
48 Correct 81 ms 34856 KB Output is correct
49 Correct 65 ms 32340 KB Output is correct
50 Correct 77 ms 33752 KB Output is correct
51 Correct 93 ms 35084 KB Output is correct
52 Correct 91 ms 34832 KB Output is correct
53 Correct 85 ms 34160 KB Output is correct
54 Correct 106 ms 36276 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 91 ms 35012 KB Output is correct
2 Correct 104 ms 35608 KB Output is correct
3 Correct 135 ms 35908 KB Output is correct
4 Correct 65 ms 33356 KB Output is correct
5 Correct 97 ms 34636 KB Output is correct
6 Correct 87 ms 35860 KB Output is correct
7 Correct 59 ms 32984 KB Output is correct
8 Correct 55 ms 32728 KB Output is correct
9 Correct 71 ms 35072 KB Output is correct
10 Correct 56 ms 33044 KB Output is correct
11 Correct 98 ms 35476 KB Output is correct
12 Correct 75 ms 35456 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 16 ms 26464 KB Output is correct
2 Correct 15 ms 26592 KB Output is correct
3 Correct 17 ms 26552 KB Output is correct
4 Correct 15 ms 26580 KB Output is correct
5 Correct 14 ms 26548 KB Output is correct
6 Correct 14 ms 26452 KB Output is correct
7 Correct 19 ms 26496 KB Output is correct
8 Correct 17 ms 26532 KB Output is correct
9 Correct 15 ms 26576 KB Output is correct
10 Correct 19 ms 26580 KB Output is correct
11 Correct 16 ms 26580 KB Output is correct
12 Correct 19 ms 26576 KB Output is correct
13 Correct 14 ms 26452 KB Output is correct
14 Correct 16 ms 26564 KB Output is correct
15 Correct 14 ms 26500 KB Output is correct
16 Correct 15 ms 26564 KB Output is correct
17 Correct 14 ms 26452 KB Output is correct
18 Correct 17 ms 26540 KB Output is correct
19 Correct 19 ms 26668 KB Output is correct
20 Correct 16 ms 26552 KB Output is correct
21 Correct 15 ms 26508 KB Output is correct
22 Correct 14 ms 26492 KB Output is correct
23 Correct 15 ms 26580 KB Output is correct
24 Correct 20 ms 26572 KB Output is correct
25 Correct 18 ms 26556 KB Output is correct
26 Correct 14 ms 26568 KB Output is correct
27 Correct 20 ms 26508 KB Output is correct
28 Correct 15 ms 26580 KB Output is correct
29 Correct 16 ms 26536 KB Output is correct
30 Correct 15 ms 26588 KB Output is correct
31 Correct 15 ms 26608 KB Output is correct
32 Correct 15 ms 26548 KB Output is correct
33 Correct 15 ms 26580 KB Output is correct
34 Correct 18 ms 26548 KB Output is correct
35 Correct 15 ms 26476 KB Output is correct
36 Correct 14 ms 26524 KB Output is correct
37 Correct 17 ms 26560 KB Output is correct
38 Correct 19 ms 26632 KB Output is correct
39 Correct 81 ms 34892 KB Output is correct
40 Correct 84 ms 35332 KB Output is correct
41 Correct 83 ms 34884 KB Output is correct
42 Correct 99 ms 34908 KB Output is correct
43 Correct 87 ms 35400 KB Output is correct
44 Correct 85 ms 35388 KB Output is correct
45 Correct 48 ms 33056 KB Output is correct
46 Correct 55 ms 32900 KB Output is correct
47 Correct 70 ms 33952 KB Output is correct
48 Correct 73 ms 34956 KB Output is correct
49 Correct 77 ms 34580 KB Output is correct
50 Correct 83 ms 34956 KB Output is correct
51 Correct 67 ms 34372 KB Output is correct
52 Correct 91 ms 35612 KB Output is correct
53 Correct 98 ms 35732 KB Output is correct
54 Correct 111 ms 36256 KB Output is correct
55 Correct 96 ms 34152 KB Output is correct
56 Correct 83 ms 33608 KB Output is correct
57 Correct 51 ms 31888 KB Output is correct
58 Correct 61 ms 32840 KB Output is correct
59 Correct 80 ms 33640 KB Output is correct
60 Correct 80 ms 34872 KB Output is correct
61 Correct 91 ms 34920 KB Output is correct
62 Correct 86 ms 34204 KB Output is correct
63 Correct 92 ms 34960 KB Output is correct
64 Correct 78 ms 34932 KB Output is correct
65 Correct 62 ms 34420 KB Output is correct
66 Correct 81 ms 34856 KB Output is correct
67 Correct 65 ms 32340 KB Output is correct
68 Correct 77 ms 33752 KB Output is correct
69 Correct 93 ms 35084 KB Output is correct
70 Correct 91 ms 34832 KB Output is correct
71 Correct 85 ms 34160 KB Output is correct
72 Correct 106 ms 36276 KB Output is correct
73 Correct 91 ms 35012 KB Output is correct
74 Correct 104 ms 35608 KB Output is correct
75 Correct 135 ms 35908 KB Output is correct
76 Correct 65 ms 33356 KB Output is correct
77 Correct 97 ms 34636 KB Output is correct
78 Correct 87 ms 35860 KB Output is correct
79 Correct 59 ms 32984 KB Output is correct
80 Correct 55 ms 32728 KB Output is correct
81 Correct 71 ms 35072 KB Output is correct
82 Correct 56 ms 33044 KB Output is correct
83 Correct 98 ms 35476 KB Output is correct
84 Correct 75 ms 35456 KB Output is correct
85 Correct 76 ms 34064 KB Output is correct
86 Correct 87 ms 34956 KB Output is correct
87 Correct 84 ms 34236 KB Output is correct
88 Correct 86 ms 35292 KB Output is correct
89 Correct 58 ms 31344 KB Output is correct
90 Correct 93 ms 34972 KB Output is correct
91 Correct 80 ms 33224 KB Output is correct
92 Correct 71 ms 32864 KB Output is correct
93 Correct 86 ms 34960 KB Output is correct
94 Correct 91 ms 34244 KB Output is correct
95 Correct 86 ms 34680 KB Output is correct
96 Correct 101 ms 34948 KB Output is correct
97 Correct 83 ms 34932 KB Output is correct
98 Correct 77 ms 33536 KB Output is correct
99 Correct 67 ms 34456 KB Output is correct
100 Correct 60 ms 33396 KB Output is correct
101 Correct 69 ms 34848 KB Output is correct
102 Correct 76 ms 35720 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 16 ms 26464 KB Output is correct
2 Correct 15 ms 26592 KB Output is correct
3 Correct 17 ms 26552 KB Output is correct
4 Correct 15 ms 26580 KB Output is correct
5 Correct 14 ms 26548 KB Output is correct
6 Correct 14 ms 26452 KB Output is correct
7 Correct 19 ms 26496 KB Output is correct
8 Correct 17 ms 26532 KB Output is correct
9 Correct 15 ms 26576 KB Output is correct
10 Correct 19 ms 26580 KB Output is correct
11 Correct 16 ms 26580 KB Output is correct
12 Correct 19 ms 26576 KB Output is correct
13 Correct 14 ms 26452 KB Output is correct
14 Correct 16 ms 26564 KB Output is correct
15 Correct 14 ms 26500 KB Output is correct
16 Correct 15 ms 26564 KB Output is correct
17 Correct 14 ms 26452 KB Output is correct
18 Correct 17 ms 26540 KB Output is correct
19 Correct 19 ms 26668 KB Output is correct
20 Correct 16 ms 26552 KB Output is correct
21 Correct 15 ms 26508 KB Output is correct
22 Correct 14 ms 26492 KB Output is correct
23 Correct 15 ms 26580 KB Output is correct
24 Correct 20 ms 26572 KB Output is correct
25 Correct 18 ms 26556 KB Output is correct
26 Correct 14 ms 26568 KB Output is correct
27 Correct 20 ms 26508 KB Output is correct
28 Correct 15 ms 26580 KB Output is correct
29 Correct 16 ms 26536 KB Output is correct
30 Correct 15 ms 26588 KB Output is correct
31 Correct 15 ms 26608 KB Output is correct
32 Correct 15 ms 26548 KB Output is correct
33 Correct 15 ms 26580 KB Output is correct
34 Correct 18 ms 26548 KB Output is correct
35 Correct 15 ms 26476 KB Output is correct
36 Correct 14 ms 26524 KB Output is correct
37 Correct 17 ms 26560 KB Output is correct
38 Correct 19 ms 26632 KB Output is correct
39 Correct 81 ms 34892 KB Output is correct
40 Correct 84 ms 35332 KB Output is correct
41 Correct 83 ms 34884 KB Output is correct
42 Correct 99 ms 34908 KB Output is correct
43 Correct 87 ms 35400 KB Output is correct
44 Correct 85 ms 35388 KB Output is correct
45 Correct 48 ms 33056 KB Output is correct
46 Correct 55 ms 32900 KB Output is correct
47 Correct 70 ms 33952 KB Output is correct
48 Correct 73 ms 34956 KB Output is correct
49 Correct 77 ms 34580 KB Output is correct
50 Correct 83 ms 34956 KB Output is correct
51 Correct 67 ms 34372 KB Output is correct
52 Correct 91 ms 35612 KB Output is correct
53 Correct 98 ms 35732 KB Output is correct
54 Correct 111 ms 36256 KB Output is correct
55 Correct 322 ms 56788 KB Output is correct
56 Correct 242 ms 50908 KB Output is correct
57 Correct 344 ms 59488 KB Output is correct
58 Correct 296 ms 52516 KB Output is correct
59 Correct 280 ms 51912 KB Output is correct
60 Correct 551 ms 60912 KB Output is correct
61 Correct 202 ms 52244 KB Output is correct
62 Correct 234 ms 52832 KB Output is correct
63 Correct 427 ms 62540 KB Output is correct
64 Correct 447 ms 62432 KB Output is correct
65 Correct 361 ms 54224 KB Output is correct
66 Correct 438 ms 59232 KB Output is correct
67 Correct 398 ms 54812 KB Output is correct
68 Correct 381 ms 59232 KB Output is correct
69 Correct 387 ms 59320 KB Output is correct
70 Correct 389 ms 59260 KB Output is correct
71 Correct 437 ms 59316 KB Output is correct
72 Correct 407 ms 56804 KB Output is correct
73 Correct 492 ms 59324 KB Output is correct
74 Correct 443 ms 57236 KB Output is correct
75 Correct 376 ms 59336 KB Output is correct
76 Correct 394 ms 59344 KB Output is correct
77 Correct 371 ms 59336 KB Output is correct
78 Correct 388 ms 59324 KB Output is correct
79 Correct 262 ms 57652 KB Output is correct
80 Correct 264 ms 59044 KB Output is correct
81 Correct 331 ms 62272 KB Output is correct
82 Correct 96 ms 34152 KB Output is correct
83 Correct 83 ms 33608 KB Output is correct
84 Correct 51 ms 31888 KB Output is correct
85 Correct 61 ms 32840 KB Output is correct
86 Correct 80 ms 33640 KB Output is correct
87 Correct 80 ms 34872 KB Output is correct
88 Correct 91 ms 34920 KB Output is correct
89 Correct 86 ms 34204 KB Output is correct
90 Correct 92 ms 34960 KB Output is correct
91 Correct 78 ms 34932 KB Output is correct
92 Correct 62 ms 34420 KB Output is correct
93 Correct 81 ms 34856 KB Output is correct
94 Correct 65 ms 32340 KB Output is correct
95 Correct 77 ms 33752 KB Output is correct
96 Correct 93 ms 35084 KB Output is correct
97 Correct 91 ms 34832 KB Output is correct
98 Correct 85 ms 34160 KB Output is correct
99 Correct 106 ms 36276 KB Output is correct
100 Correct 91 ms 35012 KB Output is correct
101 Correct 104 ms 35608 KB Output is correct
102 Correct 135 ms 35908 KB Output is correct
103 Correct 65 ms 33356 KB Output is correct
104 Correct 97 ms 34636 KB Output is correct
105 Correct 87 ms 35860 KB Output is correct
106 Correct 59 ms 32984 KB Output is correct
107 Correct 55 ms 32728 KB Output is correct
108 Correct 71 ms 35072 KB Output is correct
109 Correct 56 ms 33044 KB Output is correct
110 Correct 98 ms 35476 KB Output is correct
111 Correct 75 ms 35456 KB Output is correct
112 Correct 76 ms 34064 KB Output is correct
113 Correct 87 ms 34956 KB Output is correct
114 Correct 84 ms 34236 KB Output is correct
115 Correct 86 ms 35292 KB Output is correct
116 Correct 58 ms 31344 KB Output is correct
117 Correct 93 ms 34972 KB Output is correct
118 Correct 80 ms 33224 KB Output is correct
119 Correct 71 ms 32864 KB Output is correct
120 Correct 86 ms 34960 KB Output is correct
121 Correct 91 ms 34244 KB Output is correct
122 Correct 86 ms 34680 KB Output is correct
123 Correct 101 ms 34948 KB Output is correct
124 Correct 83 ms 34932 KB Output is correct
125 Correct 77 ms 33536 KB Output is correct
126 Correct 67 ms 34456 KB Output is correct
127 Correct 60 ms 33396 KB Output is correct
128 Correct 69 ms 34848 KB Output is correct
129 Correct 76 ms 35720 KB Output is correct
130 Correct 357 ms 59640 KB Output is correct
131 Correct 247 ms 50840 KB Output is correct
132 Correct 371 ms 59728 KB Output is correct
133 Correct 421 ms 59604 KB Output is correct
134 Correct 420 ms 56436 KB Output is correct
135 Correct 431 ms 61032 KB Output is correct
136 Correct 493 ms 62816 KB Output is correct
137 Correct 406 ms 62808 KB Output is correct
138 Correct 366 ms 54440 KB Output is correct
139 Correct 374 ms 59468 KB Output is correct
140 Correct 369 ms 55716 KB Output is correct
141 Correct 384 ms 59492 KB Output is correct
142 Correct 403 ms 59520 KB Output is correct
143 Correct 382 ms 59504 KB Output is correct
144 Correct 394 ms 57004 KB Output is correct
145 Correct 587 ms 59452 KB Output is correct
146 Correct 413 ms 58068 KB Output is correct
147 Correct 442 ms 59440 KB Output is correct
148 Correct 409 ms 59436 KB Output is correct
149 Correct 515 ms 59476 KB Output is correct
150 Correct 246 ms 57508 KB Output is correct
151 Correct 306 ms 59220 KB Output is correct
152 Correct 290 ms 59336 KB Output is correct
153 Correct 346 ms 62380 KB Output is correct