Submission #557196

# Submission time Handle Problem Language Result Execution time Memory
557196 2022-05-04T20:55:08 Z lunchbox Food Court (JOI21_foodcourt) C++17
100 / 100
437 ms 50624 KB
#include <bits/stdc++.h>
using namespace std;

#define int long long

using LL = long long;
const int N = 250000, N_ = 1 << 18, INF = 0x3f3f3f3f;

int n_;

array<LL, 2> st1[N_ * 2];

array<LL, 2> join(array<LL, 2> a, array<LL, 2> b) {
	return { a[0] + b[0], max(a[1] + b[0], b[1]) };
}

void update1(int i, int x) {
	i |= n_;
	st1[i][0] = x;
	st1[i][1] = max(0LL, x);
	while (i >>= 1)
		st1[i] = join(st1[i << 1 | 0], st1[i << 1 | 1]);
}

LL query1(int l, int r) {
	vector<int> ll, rr;
	array<LL, 2> v = { 0, 0 };

	for (l |= n_, r |= n_; l <= r; l >>= 1, r >>= 1) {
		if ((l & 1) == 1)
			ll.push_back(l++);
		if ((r & 1) == 0)
			rr.push_back(r--);
	}
	for (int i : ll)
		v = join(v, st1[i]);
	reverse(rr.begin(), rr.end());
	for (int i : rr)
		v = join(v, st1[i]);
	return v[1];
}

LL st2[N_ * 2], ll[N_ * 2];

void update2(int i, int x) {
	i |= n_;
	ll[i] = st2[i] = x;
	while (i >>= 1) {
		st2[i] = st2[i << 1 | 0] + st2[i << 1 | 1];
		ll[i] = ll[i << 1 | 0];
	}
}

LL query2(int l, int r) {
	LL sum = 0;

	for (l |= n_, r |= n_; l <= r; l >>= 1, r >>= 1) {
		if ((l & 1) == 1)
			sum += st2[l++];
		if ((r & 1) == 0)
			sum += st2[r--];
	}
	return sum;
}

int query3(LL x) {
	int i = 1;

	while (i < n_) {
		if (x <= st2[i << 1 | 0])
			i = i << 1 | 0;
		else {
			x -= st2[i << 1 | 0];
			i = i << 1 | 1;
		}
	}
	return i ^ n_;
}

vector<pair<int, int>> uu[N + 1], qq[N];

void run() {
	static int cc[N], ans[N];
	int n, m, q;

	scanf("%lld%lld%lld", &n, &m, &q);
	n_ = 1;
	while (n_ < q)
		n_ <<= 1;
	for (int h = 0; h < q; h++) {
		int t;

		scanf("%lld", &t);
		if (t == 1) {
			int l, r, k;

			scanf("%lld%lld%lld%lld", &l, &r, &cc[h], &k), l--;
			uu[l].push_back({ h << 1 | 0, k });
			uu[r].push_back({ h << 1 | 0, 0 });
		} else if (t == 2) {
			int l, r, k;

			scanf("%lld%lld%lld", &l, &r, &k), l--;
			uu[l].push_back({ h << 1 | 1, -k });
			uu[r].push_back({ h << 1 | 1, 0 });
		} else {
			int i, k;

			scanf("%lld%lld", &i, &k), i--;
			qq[i].push_back({ h, k });
		}
	}
	memset(ans, -1, q * sizeof * ans);
	for (int i = 0; i < n; i++) {
		for (auto [h2, k] : uu[i]) {
			int h = h2 >> 1;

			update1(h, k);
			if ((h2 & 1) == 0)
				update2(h, k);
		}
		for (auto [h, k] : qq[i]) {
			LL x = query1(0, h);

			ans[h] = x < k ? 0 : cc[query3(query2(0, h) - x + k)];
		}
	}
	for (int h = 0; h < q; h++)
		if (ans[h] != -1)
			printf("%lld\n", ans[h]);
}

signed main() {
	run();
	return 0;
}

Compilation message

foodcourt.cpp: In function 'void run()':
foodcourt.cpp:86:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   86 |  scanf("%lld%lld%lld", &n, &m, &q);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foodcourt.cpp:93:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   93 |   scanf("%lld", &t);
      |   ~~~~~^~~~~~~~~~~~
foodcourt.cpp:97:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   97 |    scanf("%lld%lld%lld%lld", &l, &r, &cc[h], &k), l--;
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foodcourt.cpp:103:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
  103 |    scanf("%lld%lld%lld", &l, &r, &k), l--;
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foodcourt.cpp:109:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
  109 |    scanf("%lld%lld", &i, &k), i--;
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12244 KB Output is correct
2 Correct 7 ms 12200 KB Output is correct
3 Correct 7 ms 12192 KB Output is correct
4 Correct 7 ms 12244 KB Output is correct
5 Correct 7 ms 12216 KB Output is correct
6 Correct 7 ms 12244 KB Output is correct
7 Correct 8 ms 12244 KB Output is correct
8 Correct 8 ms 12244 KB Output is correct
9 Correct 8 ms 12244 KB Output is correct
10 Correct 7 ms 12244 KB Output is correct
11 Correct 7 ms 12244 KB Output is correct
12 Correct 9 ms 12244 KB Output is correct
13 Correct 7 ms 12244 KB Output is correct
14 Correct 7 ms 12244 KB Output is correct
15 Correct 7 ms 12244 KB Output is correct
16 Correct 9 ms 12244 KB Output is correct
17 Correct 8 ms 12244 KB Output is correct
18 Correct 8 ms 12244 KB Output is correct
19 Correct 7 ms 12244 KB Output is correct
20 Correct 8 ms 12252 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12244 KB Output is correct
2 Correct 7 ms 12200 KB Output is correct
3 Correct 7 ms 12192 KB Output is correct
4 Correct 7 ms 12244 KB Output is correct
5 Correct 7 ms 12216 KB Output is correct
6 Correct 7 ms 12244 KB Output is correct
7 Correct 8 ms 12244 KB Output is correct
8 Correct 8 ms 12244 KB Output is correct
9 Correct 8 ms 12244 KB Output is correct
10 Correct 7 ms 12244 KB Output is correct
11 Correct 7 ms 12244 KB Output is correct
12 Correct 9 ms 12244 KB Output is correct
13 Correct 7 ms 12244 KB Output is correct
14 Correct 7 ms 12244 KB Output is correct
15 Correct 7 ms 12244 KB Output is correct
16 Correct 9 ms 12244 KB Output is correct
17 Correct 8 ms 12244 KB Output is correct
18 Correct 8 ms 12244 KB Output is correct
19 Correct 7 ms 12244 KB Output is correct
20 Correct 8 ms 12252 KB Output is correct
21 Correct 7 ms 12244 KB Output is correct
22 Correct 8 ms 12308 KB Output is correct
23 Correct 8 ms 12288 KB Output is correct
24 Correct 7 ms 12284 KB Output is correct
25 Correct 8 ms 12316 KB Output is correct
26 Correct 9 ms 12244 KB Output is correct
27 Correct 9 ms 12312 KB Output is correct
28 Correct 8 ms 12244 KB Output is correct
29 Correct 8 ms 12320 KB Output is correct
30 Correct 7 ms 12324 KB Output is correct
31 Correct 8 ms 12244 KB Output is correct
32 Correct 9 ms 12244 KB Output is correct
33 Correct 7 ms 12320 KB Output is correct
34 Correct 8 ms 12384 KB Output is correct
35 Correct 8 ms 12324 KB Output is correct
36 Correct 8 ms 12372 KB Output is correct
37 Correct 8 ms 12244 KB Output is correct
38 Correct 8 ms 12320 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 68 ms 20044 KB Output is correct
2 Correct 67 ms 20184 KB Output is correct
3 Correct 61 ms 20080 KB Output is correct
4 Correct 67 ms 20028 KB Output is correct
5 Correct 82 ms 20108 KB Output is correct
6 Correct 77 ms 20176 KB Output is correct
7 Correct 41 ms 18612 KB Output is correct
8 Correct 44 ms 18980 KB Output is correct
9 Correct 63 ms 19352 KB Output is correct
10 Correct 75 ms 20140 KB Output is correct
11 Correct 80 ms 19784 KB Output is correct
12 Correct 94 ms 20088 KB Output is correct
13 Correct 55 ms 19216 KB Output is correct
14 Correct 67 ms 20184 KB Output is correct
15 Correct 67 ms 20140 KB Output is correct
16 Correct 83 ms 20208 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 357 ms 40296 KB Output is correct
2 Correct 262 ms 38920 KB Output is correct
3 Correct 403 ms 48788 KB Output is correct
4 Correct 269 ms 39252 KB Output is correct
5 Correct 269 ms 39564 KB Output is correct
6 Correct 419 ms 49428 KB Output is correct
7 Correct 161 ms 44608 KB Output is correct
8 Correct 223 ms 43492 KB Output is correct
9 Correct 394 ms 48208 KB Output is correct
10 Correct 400 ms 48224 KB Output is correct
11 Correct 360 ms 44456 KB Output is correct
12 Correct 390 ms 49416 KB Output is correct
13 Correct 424 ms 44868 KB Output is correct
14 Correct 383 ms 49176 KB Output is correct
15 Correct 411 ms 49180 KB Output is correct
16 Correct 358 ms 49204 KB Output is correct
17 Correct 363 ms 49100 KB Output is correct
18 Correct 409 ms 46780 KB Output is correct
19 Correct 395 ms 49208 KB Output is correct
20 Correct 392 ms 47260 KB Output is correct
21 Correct 386 ms 49160 KB Output is correct
22 Correct 382 ms 49228 KB Output is correct
23 Correct 370 ms 49212 KB Output is correct
24 Correct 423 ms 49208 KB Output is correct
25 Correct 274 ms 48304 KB Output is correct
26 Correct 296 ms 49040 KB Output is correct
27 Correct 320 ms 49744 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12244 KB Output is correct
2 Correct 7 ms 12200 KB Output is correct
3 Correct 7 ms 12192 KB Output is correct
4 Correct 7 ms 12244 KB Output is correct
5 Correct 7 ms 12216 KB Output is correct
6 Correct 7 ms 12244 KB Output is correct
7 Correct 8 ms 12244 KB Output is correct
8 Correct 8 ms 12244 KB Output is correct
9 Correct 8 ms 12244 KB Output is correct
10 Correct 7 ms 12244 KB Output is correct
11 Correct 7 ms 12244 KB Output is correct
12 Correct 9 ms 12244 KB Output is correct
13 Correct 7 ms 12244 KB Output is correct
14 Correct 7 ms 12244 KB Output is correct
15 Correct 7 ms 12244 KB Output is correct
16 Correct 9 ms 12244 KB Output is correct
17 Correct 8 ms 12244 KB Output is correct
18 Correct 8 ms 12244 KB Output is correct
19 Correct 7 ms 12244 KB Output is correct
20 Correct 8 ms 12252 KB Output is correct
21 Correct 68 ms 20044 KB Output is correct
22 Correct 67 ms 20184 KB Output is correct
23 Correct 61 ms 20080 KB Output is correct
24 Correct 67 ms 20028 KB Output is correct
25 Correct 82 ms 20108 KB Output is correct
26 Correct 77 ms 20176 KB Output is correct
27 Correct 41 ms 18612 KB Output is correct
28 Correct 44 ms 18980 KB Output is correct
29 Correct 63 ms 19352 KB Output is correct
30 Correct 75 ms 20140 KB Output is correct
31 Correct 80 ms 19784 KB Output is correct
32 Correct 94 ms 20088 KB Output is correct
33 Correct 55 ms 19216 KB Output is correct
34 Correct 67 ms 20184 KB Output is correct
35 Correct 67 ms 20140 KB Output is correct
36 Correct 83 ms 20208 KB Output is correct
37 Correct 65 ms 19276 KB Output is correct
38 Correct 58 ms 18496 KB Output is correct
39 Correct 47 ms 17936 KB Output is correct
40 Correct 51 ms 18632 KB Output is correct
41 Correct 62 ms 18884 KB Output is correct
42 Correct 68 ms 20128 KB Output is correct
43 Correct 68 ms 20156 KB Output is correct
44 Correct 65 ms 19516 KB Output is correct
45 Correct 91 ms 20120 KB Output is correct
46 Correct 91 ms 20172 KB Output is correct
47 Correct 52 ms 19240 KB Output is correct
48 Correct 57 ms 20172 KB Output is correct
49 Correct 51 ms 17828 KB Output is correct
50 Correct 81 ms 18952 KB Output is correct
51 Correct 95 ms 20304 KB Output is correct
52 Correct 67 ms 20188 KB Output is correct
53 Correct 50 ms 18512 KB Output is correct
54 Correct 73 ms 20188 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 70 ms 19120 KB Output is correct
2 Correct 101 ms 21420 KB Output is correct
3 Correct 95 ms 21584 KB Output is correct
4 Correct 54 ms 18804 KB Output is correct
5 Correct 66 ms 20324 KB Output is correct
6 Correct 99 ms 21560 KB Output is correct
7 Correct 50 ms 19480 KB Output is correct
8 Correct 47 ms 18960 KB Output is correct
9 Correct 66 ms 20792 KB Output is correct
10 Correct 52 ms 18596 KB Output is correct
11 Correct 77 ms 21200 KB Output is correct
12 Correct 74 ms 21208 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12244 KB Output is correct
2 Correct 7 ms 12200 KB Output is correct
3 Correct 7 ms 12192 KB Output is correct
4 Correct 7 ms 12244 KB Output is correct
5 Correct 7 ms 12216 KB Output is correct
6 Correct 7 ms 12244 KB Output is correct
7 Correct 8 ms 12244 KB Output is correct
8 Correct 8 ms 12244 KB Output is correct
9 Correct 8 ms 12244 KB Output is correct
10 Correct 7 ms 12244 KB Output is correct
11 Correct 7 ms 12244 KB Output is correct
12 Correct 9 ms 12244 KB Output is correct
13 Correct 7 ms 12244 KB Output is correct
14 Correct 7 ms 12244 KB Output is correct
15 Correct 7 ms 12244 KB Output is correct
16 Correct 9 ms 12244 KB Output is correct
17 Correct 8 ms 12244 KB Output is correct
18 Correct 8 ms 12244 KB Output is correct
19 Correct 7 ms 12244 KB Output is correct
20 Correct 8 ms 12252 KB Output is correct
21 Correct 7 ms 12244 KB Output is correct
22 Correct 8 ms 12308 KB Output is correct
23 Correct 8 ms 12288 KB Output is correct
24 Correct 7 ms 12284 KB Output is correct
25 Correct 8 ms 12316 KB Output is correct
26 Correct 9 ms 12244 KB Output is correct
27 Correct 9 ms 12312 KB Output is correct
28 Correct 8 ms 12244 KB Output is correct
29 Correct 8 ms 12320 KB Output is correct
30 Correct 7 ms 12324 KB Output is correct
31 Correct 8 ms 12244 KB Output is correct
32 Correct 9 ms 12244 KB Output is correct
33 Correct 7 ms 12320 KB Output is correct
34 Correct 8 ms 12384 KB Output is correct
35 Correct 8 ms 12324 KB Output is correct
36 Correct 8 ms 12372 KB Output is correct
37 Correct 8 ms 12244 KB Output is correct
38 Correct 8 ms 12320 KB Output is correct
39 Correct 68 ms 20044 KB Output is correct
40 Correct 67 ms 20184 KB Output is correct
41 Correct 61 ms 20080 KB Output is correct
42 Correct 67 ms 20028 KB Output is correct
43 Correct 82 ms 20108 KB Output is correct
44 Correct 77 ms 20176 KB Output is correct
45 Correct 41 ms 18612 KB Output is correct
46 Correct 44 ms 18980 KB Output is correct
47 Correct 63 ms 19352 KB Output is correct
48 Correct 75 ms 20140 KB Output is correct
49 Correct 80 ms 19784 KB Output is correct
50 Correct 94 ms 20088 KB Output is correct
51 Correct 55 ms 19216 KB Output is correct
52 Correct 67 ms 20184 KB Output is correct
53 Correct 67 ms 20140 KB Output is correct
54 Correct 83 ms 20208 KB Output is correct
55 Correct 65 ms 19276 KB Output is correct
56 Correct 58 ms 18496 KB Output is correct
57 Correct 47 ms 17936 KB Output is correct
58 Correct 51 ms 18632 KB Output is correct
59 Correct 62 ms 18884 KB Output is correct
60 Correct 68 ms 20128 KB Output is correct
61 Correct 68 ms 20156 KB Output is correct
62 Correct 65 ms 19516 KB Output is correct
63 Correct 91 ms 20120 KB Output is correct
64 Correct 91 ms 20172 KB Output is correct
65 Correct 52 ms 19240 KB Output is correct
66 Correct 57 ms 20172 KB Output is correct
67 Correct 51 ms 17828 KB Output is correct
68 Correct 81 ms 18952 KB Output is correct
69 Correct 95 ms 20304 KB Output is correct
70 Correct 67 ms 20188 KB Output is correct
71 Correct 50 ms 18512 KB Output is correct
72 Correct 73 ms 20188 KB Output is correct
73 Correct 70 ms 19120 KB Output is correct
74 Correct 101 ms 21420 KB Output is correct
75 Correct 95 ms 21584 KB Output is correct
76 Correct 54 ms 18804 KB Output is correct
77 Correct 66 ms 20324 KB Output is correct
78 Correct 99 ms 21560 KB Output is correct
79 Correct 50 ms 19480 KB Output is correct
80 Correct 47 ms 18960 KB Output is correct
81 Correct 66 ms 20792 KB Output is correct
82 Correct 52 ms 18596 KB Output is correct
83 Correct 77 ms 21200 KB Output is correct
84 Correct 74 ms 21208 KB Output is correct
85 Correct 77 ms 20720 KB Output is correct
86 Correct 82 ms 21608 KB Output is correct
87 Correct 73 ms 20592 KB Output is correct
88 Correct 102 ms 21836 KB Output is correct
89 Correct 54 ms 17784 KB Output is correct
90 Correct 79 ms 21760 KB Output is correct
91 Correct 62 ms 20016 KB Output is correct
92 Correct 55 ms 19584 KB Output is correct
93 Correct 79 ms 21684 KB Output is correct
94 Correct 79 ms 21120 KB Output is correct
95 Correct 75 ms 21580 KB Output is correct
96 Correct 72 ms 21720 KB Output is correct
97 Correct 80 ms 21784 KB Output is correct
98 Correct 65 ms 20376 KB Output is correct
99 Correct 60 ms 20716 KB Output is correct
100 Correct 57 ms 19852 KB Output is correct
101 Correct 65 ms 21724 KB Output is correct
102 Correct 69 ms 22016 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 12244 KB Output is correct
2 Correct 7 ms 12200 KB Output is correct
3 Correct 7 ms 12192 KB Output is correct
4 Correct 7 ms 12244 KB Output is correct
5 Correct 7 ms 12216 KB Output is correct
6 Correct 7 ms 12244 KB Output is correct
7 Correct 8 ms 12244 KB Output is correct
8 Correct 8 ms 12244 KB Output is correct
9 Correct 8 ms 12244 KB Output is correct
10 Correct 7 ms 12244 KB Output is correct
11 Correct 7 ms 12244 KB Output is correct
12 Correct 9 ms 12244 KB Output is correct
13 Correct 7 ms 12244 KB Output is correct
14 Correct 7 ms 12244 KB Output is correct
15 Correct 7 ms 12244 KB Output is correct
16 Correct 9 ms 12244 KB Output is correct
17 Correct 8 ms 12244 KB Output is correct
18 Correct 8 ms 12244 KB Output is correct
19 Correct 7 ms 12244 KB Output is correct
20 Correct 8 ms 12252 KB Output is correct
21 Correct 7 ms 12244 KB Output is correct
22 Correct 8 ms 12308 KB Output is correct
23 Correct 8 ms 12288 KB Output is correct
24 Correct 7 ms 12284 KB Output is correct
25 Correct 8 ms 12316 KB Output is correct
26 Correct 9 ms 12244 KB Output is correct
27 Correct 9 ms 12312 KB Output is correct
28 Correct 8 ms 12244 KB Output is correct
29 Correct 8 ms 12320 KB Output is correct
30 Correct 7 ms 12324 KB Output is correct
31 Correct 8 ms 12244 KB Output is correct
32 Correct 9 ms 12244 KB Output is correct
33 Correct 7 ms 12320 KB Output is correct
34 Correct 8 ms 12384 KB Output is correct
35 Correct 8 ms 12324 KB Output is correct
36 Correct 8 ms 12372 KB Output is correct
37 Correct 8 ms 12244 KB Output is correct
38 Correct 8 ms 12320 KB Output is correct
39 Correct 68 ms 20044 KB Output is correct
40 Correct 67 ms 20184 KB Output is correct
41 Correct 61 ms 20080 KB Output is correct
42 Correct 67 ms 20028 KB Output is correct
43 Correct 82 ms 20108 KB Output is correct
44 Correct 77 ms 20176 KB Output is correct
45 Correct 41 ms 18612 KB Output is correct
46 Correct 44 ms 18980 KB Output is correct
47 Correct 63 ms 19352 KB Output is correct
48 Correct 75 ms 20140 KB Output is correct
49 Correct 80 ms 19784 KB Output is correct
50 Correct 94 ms 20088 KB Output is correct
51 Correct 55 ms 19216 KB Output is correct
52 Correct 67 ms 20184 KB Output is correct
53 Correct 67 ms 20140 KB Output is correct
54 Correct 83 ms 20208 KB Output is correct
55 Correct 357 ms 40296 KB Output is correct
56 Correct 262 ms 38920 KB Output is correct
57 Correct 403 ms 48788 KB Output is correct
58 Correct 269 ms 39252 KB Output is correct
59 Correct 269 ms 39564 KB Output is correct
60 Correct 419 ms 49428 KB Output is correct
61 Correct 161 ms 44608 KB Output is correct
62 Correct 223 ms 43492 KB Output is correct
63 Correct 394 ms 48208 KB Output is correct
64 Correct 400 ms 48224 KB Output is correct
65 Correct 360 ms 44456 KB Output is correct
66 Correct 390 ms 49416 KB Output is correct
67 Correct 424 ms 44868 KB Output is correct
68 Correct 383 ms 49176 KB Output is correct
69 Correct 411 ms 49180 KB Output is correct
70 Correct 358 ms 49204 KB Output is correct
71 Correct 363 ms 49100 KB Output is correct
72 Correct 409 ms 46780 KB Output is correct
73 Correct 395 ms 49208 KB Output is correct
74 Correct 392 ms 47260 KB Output is correct
75 Correct 386 ms 49160 KB Output is correct
76 Correct 382 ms 49228 KB Output is correct
77 Correct 370 ms 49212 KB Output is correct
78 Correct 423 ms 49208 KB Output is correct
79 Correct 274 ms 48304 KB Output is correct
80 Correct 296 ms 49040 KB Output is correct
81 Correct 320 ms 49744 KB Output is correct
82 Correct 65 ms 19276 KB Output is correct
83 Correct 58 ms 18496 KB Output is correct
84 Correct 47 ms 17936 KB Output is correct
85 Correct 51 ms 18632 KB Output is correct
86 Correct 62 ms 18884 KB Output is correct
87 Correct 68 ms 20128 KB Output is correct
88 Correct 68 ms 20156 KB Output is correct
89 Correct 65 ms 19516 KB Output is correct
90 Correct 91 ms 20120 KB Output is correct
91 Correct 91 ms 20172 KB Output is correct
92 Correct 52 ms 19240 KB Output is correct
93 Correct 57 ms 20172 KB Output is correct
94 Correct 51 ms 17828 KB Output is correct
95 Correct 81 ms 18952 KB Output is correct
96 Correct 95 ms 20304 KB Output is correct
97 Correct 67 ms 20188 KB Output is correct
98 Correct 50 ms 18512 KB Output is correct
99 Correct 73 ms 20188 KB Output is correct
100 Correct 70 ms 19120 KB Output is correct
101 Correct 101 ms 21420 KB Output is correct
102 Correct 95 ms 21584 KB Output is correct
103 Correct 54 ms 18804 KB Output is correct
104 Correct 66 ms 20324 KB Output is correct
105 Correct 99 ms 21560 KB Output is correct
106 Correct 50 ms 19480 KB Output is correct
107 Correct 47 ms 18960 KB Output is correct
108 Correct 66 ms 20792 KB Output is correct
109 Correct 52 ms 18596 KB Output is correct
110 Correct 77 ms 21200 KB Output is correct
111 Correct 74 ms 21208 KB Output is correct
112 Correct 77 ms 20720 KB Output is correct
113 Correct 82 ms 21608 KB Output is correct
114 Correct 73 ms 20592 KB Output is correct
115 Correct 102 ms 21836 KB Output is correct
116 Correct 54 ms 17784 KB Output is correct
117 Correct 79 ms 21760 KB Output is correct
118 Correct 62 ms 20016 KB Output is correct
119 Correct 55 ms 19584 KB Output is correct
120 Correct 79 ms 21684 KB Output is correct
121 Correct 79 ms 21120 KB Output is correct
122 Correct 75 ms 21580 KB Output is correct
123 Correct 72 ms 21720 KB Output is correct
124 Correct 80 ms 21784 KB Output is correct
125 Correct 65 ms 20376 KB Output is correct
126 Correct 60 ms 20716 KB Output is correct
127 Correct 57 ms 19852 KB Output is correct
128 Correct 65 ms 21724 KB Output is correct
129 Correct 69 ms 22016 KB Output is correct
130 Correct 412 ms 49364 KB Output is correct
131 Correct 258 ms 39208 KB Output is correct
132 Correct 412 ms 49404 KB Output is correct
133 Correct 381 ms 48404 KB Output is correct
134 Correct 345 ms 44472 KB Output is correct
135 Correct 402 ms 50176 KB Output is correct
136 Correct 400 ms 49052 KB Output is correct
137 Correct 407 ms 49088 KB Output is correct
138 Correct 372 ms 45020 KB Output is correct
139 Correct 437 ms 50032 KB Output is correct
140 Correct 363 ms 46252 KB Output is correct
141 Correct 390 ms 49864 KB Output is correct
142 Correct 386 ms 49756 KB Output is correct
143 Correct 386 ms 49780 KB Output is correct
144 Correct 401 ms 47472 KB Output is correct
145 Correct 361 ms 49780 KB Output is correct
146 Correct 382 ms 48496 KB Output is correct
147 Correct 369 ms 49780 KB Output is correct
148 Correct 395 ms 49788 KB Output is correct
149 Correct 370 ms 49780 KB Output is correct
150 Correct 227 ms 45340 KB Output is correct
151 Correct 300 ms 49612 KB Output is correct
152 Correct 318 ms 49648 KB Output is correct
153 Correct 294 ms 50624 KB Output is correct