Submission #661134

# Submission time Handle Problem Language Result Execution time Memory
661134 2022-11-24T15:40:33 Z rainboy Food Court (JOI21_foodcourt) C
100 / 100
358 ms 30568 KB
#include <stdio.h>
#include <sys/time.h>

#define N	250000
#define M	250000
#define Q	250000
#define N_	(1 << 18)	/* N_ = pow2(ceil(log2(Q + 1))) */

long long min(long long a, long long b) { return a < b ? a : b; }

unsigned int X = 12345;

int rand_() {
	return (X *= 3) >> 1;
}

int xx[Q * 2], hh[Q * 2];
int tt[Q], ll[Q], rr[Q], ii[Q], cc[Q], ans[Q]; long long kk[Q];

void sort(int *hh, int l, int r) {
	while (l < r) {
		int i = l, j = l, k = r, h = hh[l + rand_() % (r - l)], tmp;

		while (j < k)
			if (xx[hh[j]] == xx[h])
				j++;
			else if (xx[hh[j]] < xx[h]) {
				tmp = hh[i], hh[i] = hh[j], hh[j] = tmp;
				i++, j++;
			} else {
				k--;
				tmp = hh[j], hh[j] = hh[k], hh[k] = tmp;
			}
		sort(hh, l, i);
		l = k;
	}
}

long long sta[N_ * 2], stb[N_ * 2], stab[N_ * 2]; int n_;

void pul(int i) {
	int l = i << 1, r = l | 1;

	sta[i] = sta[l] + sta[r];
	stb[i] = stb[l] + stb[r];
	stab[i] = min(stab[l] + stb[r], sta[l] + stab[r]);
}

void update(int i, long long a, long long b) {
	i += n_;
	sta[i] += a, stb[i] += b, stab[i] = min(sta[i], stb[i]);
	while (i > 1)
		pul(i >>= 1);
}

void query_lr(int r, long long *a_, long long *ab_) {
	int l;
	long long a, b, ab;

	a = 0, b = 0, ab = 0;
	for (l = 0 + n_, r += n_; l <= r; l >>= 1, r >>= 1)
		if ((r & 1) == 0)
			ab = min(sta[r] + ab, stab[r] + b), a += sta[r], b += stb[r], r--;
	*a_ = a, *ab_ = ab;
}

int query_i(long long a) {
	int i = 1;

	while (i < n_)
		if (a <= sta[i << 1 | 0])
			i = i << 1 | 0;
		else
			a -= sta[i << 1 | 0], i = i << 1 | 1;
	return i - n_;
}

int main() {
	int n, m, q, h;

	scanf("%d%*d%d", &n, &q);
	for (h = 0; h < q; h++) {
		scanf("%d", &tt[h]);
		if (tt[h] == 1)
			scanf("%d%d%d%lld", &ll[h], &rr[h], &cc[h], &kk[h]), ll[h]--, rr[h]--;
		else if (tt[h] == 2)
			scanf("%d%d%lld", &ll[h], &rr[h], &kk[h]), ll[h]--, rr[h]--;
		else
			scanf("%d%lld", &ii[h], &kk[h]), ii[h]--;
	}
	m = 0;
	for (h = 0; h < q; h++)
		if (tt[h] != 3)
			xx[hh[m++] = h << 1 | 0] = ll[h] * 3 + 0, xx[hh[m++] = h << 1 | 1] = rr[h] * 3 + 2;
		else
			xx[hh[m++] = h << 1 | 0] = ii[h] * 3 + 1;
	sort(hh, 0, m);
	n_ = 1;
	while (n_ <= q)
		n_ <<= 1;
	for (h = 0; h < m; h++) {
		int h_ = hh[h], h1 = h_ >> 1;
		long long l, r;

		if (tt[h1] == 1)
			update(h1, (h_ & 1) == 0 ? kk[h1] : -kk[h1], 0);
		else if (tt[h1] == 2)
			update(h1, 0, (h_ & 1) == 0 ? kk[h1] : -kk[h1]);
		else {
			query_lr(h1, &r, &l);
			if (kk[h1] <= r - l)
				ans[h1] = cc[query_i(l + kk[h1])];
		}
	}
	for (h = 0; h < q; h++)
		if (tt[h] == 3)
			printf("%d\n", ans[h]);
	return 0;
}

Compilation message

foodcourt.c: In function 'main':
foodcourt.c:81:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   81 |  scanf("%d%*d%d", &n, &q);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~
foodcourt.c:83:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   83 |   scanf("%d", &tt[h]);
      |   ^~~~~~~~~~~~~~~~~~~
foodcourt.c:85:4: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   85 |    scanf("%d%d%d%lld", &ll[h], &rr[h], &cc[h], &kk[h]), ll[h]--, rr[h]--;
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foodcourt.c:87:4: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   87 |    scanf("%d%d%lld", &ll[h], &rr[h], &kk[h]), ll[h]--, rr[h]--;
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foodcourt.c:89:4: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   89 |    scanf("%d%lld", &ii[h], &kk[h]), ii[h]--;
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 2 ms 596 KB Output is correct
2 Correct 2 ms 504 KB Output is correct
3 Correct 2 ms 468 KB Output is correct
4 Correct 2 ms 536 KB Output is correct
5 Correct 2 ms 500 KB Output is correct
6 Correct 2 ms 468 KB Output is correct
7 Correct 2 ms 468 KB Output is correct
8 Correct 2 ms 552 KB Output is correct
9 Correct 2 ms 468 KB Output is correct
10 Correct 2 ms 468 KB Output is correct
11 Correct 2 ms 468 KB Output is correct
12 Correct 2 ms 468 KB Output is correct
13 Correct 2 ms 468 KB Output is correct
14 Correct 2 ms 468 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 2 ms 508 KB Output is correct
17 Correct 2 ms 500 KB Output is correct
18 Correct 2 ms 468 KB Output is correct
19 Correct 2 ms 500 KB Output is correct
20 Correct 2 ms 512 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 596 KB Output is correct
2 Correct 2 ms 504 KB Output is correct
3 Correct 2 ms 468 KB Output is correct
4 Correct 2 ms 536 KB Output is correct
5 Correct 2 ms 500 KB Output is correct
6 Correct 2 ms 468 KB Output is correct
7 Correct 2 ms 468 KB Output is correct
8 Correct 2 ms 552 KB Output is correct
9 Correct 2 ms 468 KB Output is correct
10 Correct 2 ms 468 KB Output is correct
11 Correct 2 ms 468 KB Output is correct
12 Correct 2 ms 468 KB Output is correct
13 Correct 2 ms 468 KB Output is correct
14 Correct 2 ms 468 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 2 ms 508 KB Output is correct
17 Correct 2 ms 500 KB Output is correct
18 Correct 2 ms 468 KB Output is correct
19 Correct 2 ms 500 KB Output is correct
20 Correct 2 ms 512 KB Output is correct
21 Correct 3 ms 468 KB Output is correct
22 Correct 3 ms 596 KB Output is correct
23 Correct 2 ms 468 KB Output is correct
24 Correct 2 ms 596 KB Output is correct
25 Correct 2 ms 468 KB Output is correct
26 Correct 2 ms 544 KB Output is correct
27 Correct 2 ms 596 KB Output is correct
28 Correct 2 ms 596 KB Output is correct
29 Correct 2 ms 596 KB Output is correct
30 Correct 3 ms 596 KB Output is correct
31 Correct 2 ms 516 KB Output is correct
32 Correct 2 ms 596 KB Output is correct
33 Correct 2 ms 468 KB Output is correct
34 Correct 2 ms 596 KB Output is correct
35 Correct 2 ms 468 KB Output is correct
36 Correct 2 ms 596 KB Output is correct
37 Correct 2 ms 468 KB Output is correct
38 Correct 3 ms 468 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 57 ms 7308 KB Output is correct
2 Correct 59 ms 7376 KB Output is correct
3 Correct 66 ms 7344 KB Output is correct
4 Correct 57 ms 7308 KB Output is correct
5 Correct 60 ms 7496 KB Output is correct
6 Correct 60 ms 7364 KB Output is correct
7 Correct 42 ms 6700 KB Output is correct
8 Correct 55 ms 6824 KB Output is correct
9 Correct 72 ms 7408 KB Output is correct
10 Correct 60 ms 7360 KB Output is correct
11 Correct 85 ms 7368 KB Output is correct
12 Correct 57 ms 7384 KB Output is correct
13 Correct 57 ms 6776 KB Output is correct
14 Correct 57 ms 7452 KB Output is correct
15 Correct 69 ms 7516 KB Output is correct
16 Correct 70 ms 7696 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 257 ms 27088 KB Output is correct
2 Correct 214 ms 21724 KB Output is correct
3 Correct 313 ms 29636 KB Output is correct
4 Correct 222 ms 21580 KB Output is correct
5 Correct 214 ms 22056 KB Output is correct
6 Correct 329 ms 30000 KB Output is correct
7 Correct 164 ms 27724 KB Output is correct
8 Correct 181 ms 27648 KB Output is correct
9 Correct 297 ms 29576 KB Output is correct
10 Correct 312 ms 29568 KB Output is correct
11 Correct 322 ms 29336 KB Output is correct
12 Correct 348 ms 29740 KB Output is correct
13 Correct 318 ms 29316 KB Output is correct
14 Correct 298 ms 29724 KB Output is correct
15 Correct 317 ms 29800 KB Output is correct
16 Correct 312 ms 29632 KB Output is correct
17 Correct 313 ms 29584 KB Output is correct
18 Correct 294 ms 29412 KB Output is correct
19 Correct 301 ms 29696 KB Output is correct
20 Correct 313 ms 29512 KB Output is correct
21 Correct 325 ms 29672 KB Output is correct
22 Correct 317 ms 29664 KB Output is correct
23 Correct 288 ms 29696 KB Output is correct
24 Correct 316 ms 29684 KB Output is correct
25 Correct 269 ms 28876 KB Output is correct
26 Correct 315 ms 29312 KB Output is correct
27 Correct 301 ms 28468 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 596 KB Output is correct
2 Correct 2 ms 504 KB Output is correct
3 Correct 2 ms 468 KB Output is correct
4 Correct 2 ms 536 KB Output is correct
5 Correct 2 ms 500 KB Output is correct
6 Correct 2 ms 468 KB Output is correct
7 Correct 2 ms 468 KB Output is correct
8 Correct 2 ms 552 KB Output is correct
9 Correct 2 ms 468 KB Output is correct
10 Correct 2 ms 468 KB Output is correct
11 Correct 2 ms 468 KB Output is correct
12 Correct 2 ms 468 KB Output is correct
13 Correct 2 ms 468 KB Output is correct
14 Correct 2 ms 468 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 2 ms 508 KB Output is correct
17 Correct 2 ms 500 KB Output is correct
18 Correct 2 ms 468 KB Output is correct
19 Correct 2 ms 500 KB Output is correct
20 Correct 2 ms 512 KB Output is correct
21 Correct 57 ms 7308 KB Output is correct
22 Correct 59 ms 7376 KB Output is correct
23 Correct 66 ms 7344 KB Output is correct
24 Correct 57 ms 7308 KB Output is correct
25 Correct 60 ms 7496 KB Output is correct
26 Correct 60 ms 7364 KB Output is correct
27 Correct 42 ms 6700 KB Output is correct
28 Correct 55 ms 6824 KB Output is correct
29 Correct 72 ms 7408 KB Output is correct
30 Correct 60 ms 7360 KB Output is correct
31 Correct 85 ms 7368 KB Output is correct
32 Correct 57 ms 7384 KB Output is correct
33 Correct 57 ms 6776 KB Output is correct
34 Correct 57 ms 7452 KB Output is correct
35 Correct 69 ms 7516 KB Output is correct
36 Correct 70 ms 7696 KB Output is correct
37 Correct 54 ms 6672 KB Output is correct
38 Correct 60 ms 6104 KB Output is correct
39 Correct 35 ms 5860 KB Output is correct
40 Correct 40 ms 6564 KB Output is correct
41 Correct 58 ms 7500 KB Output is correct
42 Correct 58 ms 7448 KB Output is correct
43 Correct 61 ms 7456 KB Output is correct
44 Correct 61 ms 7408 KB Output is correct
45 Correct 63 ms 7468 KB Output is correct
46 Correct 63 ms 7448 KB Output is correct
47 Correct 44 ms 7268 KB Output is correct
48 Correct 56 ms 7332 KB Output is correct
49 Correct 42 ms 5336 KB Output is correct
50 Correct 57 ms 6452 KB Output is correct
51 Correct 77 ms 7476 KB Output is correct
52 Correct 66 ms 7612 KB Output is correct
53 Correct 46 ms 6096 KB Output is correct
54 Correct 62 ms 7700 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 55 ms 7296 KB Output is correct
2 Correct 59 ms 7920 KB Output is correct
3 Correct 63 ms 8080 KB Output is correct
4 Correct 52 ms 5756 KB Output is correct
5 Correct 60 ms 6976 KB Output is correct
6 Correct 63 ms 8088 KB Output is correct
7 Correct 40 ms 6960 KB Output is correct
8 Correct 41 ms 6544 KB Output is correct
9 Correct 57 ms 7912 KB Output is correct
10 Correct 47 ms 5660 KB Output is correct
11 Correct 59 ms 8036 KB Output is correct
12 Correct 60 ms 8012 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 596 KB Output is correct
2 Correct 2 ms 504 KB Output is correct
3 Correct 2 ms 468 KB Output is correct
4 Correct 2 ms 536 KB Output is correct
5 Correct 2 ms 500 KB Output is correct
6 Correct 2 ms 468 KB Output is correct
7 Correct 2 ms 468 KB Output is correct
8 Correct 2 ms 552 KB Output is correct
9 Correct 2 ms 468 KB Output is correct
10 Correct 2 ms 468 KB Output is correct
11 Correct 2 ms 468 KB Output is correct
12 Correct 2 ms 468 KB Output is correct
13 Correct 2 ms 468 KB Output is correct
14 Correct 2 ms 468 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 2 ms 508 KB Output is correct
17 Correct 2 ms 500 KB Output is correct
18 Correct 2 ms 468 KB Output is correct
19 Correct 2 ms 500 KB Output is correct
20 Correct 2 ms 512 KB Output is correct
21 Correct 3 ms 468 KB Output is correct
22 Correct 3 ms 596 KB Output is correct
23 Correct 2 ms 468 KB Output is correct
24 Correct 2 ms 596 KB Output is correct
25 Correct 2 ms 468 KB Output is correct
26 Correct 2 ms 544 KB Output is correct
27 Correct 2 ms 596 KB Output is correct
28 Correct 2 ms 596 KB Output is correct
29 Correct 2 ms 596 KB Output is correct
30 Correct 3 ms 596 KB Output is correct
31 Correct 2 ms 516 KB Output is correct
32 Correct 2 ms 596 KB Output is correct
33 Correct 2 ms 468 KB Output is correct
34 Correct 2 ms 596 KB Output is correct
35 Correct 2 ms 468 KB Output is correct
36 Correct 2 ms 596 KB Output is correct
37 Correct 2 ms 468 KB Output is correct
38 Correct 3 ms 468 KB Output is correct
39 Correct 57 ms 7308 KB Output is correct
40 Correct 59 ms 7376 KB Output is correct
41 Correct 66 ms 7344 KB Output is correct
42 Correct 57 ms 7308 KB Output is correct
43 Correct 60 ms 7496 KB Output is correct
44 Correct 60 ms 7364 KB Output is correct
45 Correct 42 ms 6700 KB Output is correct
46 Correct 55 ms 6824 KB Output is correct
47 Correct 72 ms 7408 KB Output is correct
48 Correct 60 ms 7360 KB Output is correct
49 Correct 85 ms 7368 KB Output is correct
50 Correct 57 ms 7384 KB Output is correct
51 Correct 57 ms 6776 KB Output is correct
52 Correct 57 ms 7452 KB Output is correct
53 Correct 69 ms 7516 KB Output is correct
54 Correct 70 ms 7696 KB Output is correct
55 Correct 54 ms 6672 KB Output is correct
56 Correct 60 ms 6104 KB Output is correct
57 Correct 35 ms 5860 KB Output is correct
58 Correct 40 ms 6564 KB Output is correct
59 Correct 58 ms 7500 KB Output is correct
60 Correct 58 ms 7448 KB Output is correct
61 Correct 61 ms 7456 KB Output is correct
62 Correct 61 ms 7408 KB Output is correct
63 Correct 63 ms 7468 KB Output is correct
64 Correct 63 ms 7448 KB Output is correct
65 Correct 44 ms 7268 KB Output is correct
66 Correct 56 ms 7332 KB Output is correct
67 Correct 42 ms 5336 KB Output is correct
68 Correct 57 ms 6452 KB Output is correct
69 Correct 77 ms 7476 KB Output is correct
70 Correct 66 ms 7612 KB Output is correct
71 Correct 46 ms 6096 KB Output is correct
72 Correct 62 ms 7700 KB Output is correct
73 Correct 55 ms 7296 KB Output is correct
74 Correct 59 ms 7920 KB Output is correct
75 Correct 63 ms 8080 KB Output is correct
76 Correct 52 ms 5756 KB Output is correct
77 Correct 60 ms 6976 KB Output is correct
78 Correct 63 ms 8088 KB Output is correct
79 Correct 40 ms 6960 KB Output is correct
80 Correct 41 ms 6544 KB Output is correct
81 Correct 57 ms 7912 KB Output is correct
82 Correct 47 ms 5660 KB Output is correct
83 Correct 59 ms 8036 KB Output is correct
84 Correct 60 ms 8012 KB Output is correct
85 Correct 59 ms 7272 KB Output is correct
86 Correct 63 ms 7932 KB Output is correct
87 Correct 56 ms 7132 KB Output is correct
88 Correct 75 ms 8140 KB Output is correct
89 Correct 50 ms 5428 KB Output is correct
90 Correct 65 ms 8000 KB Output is correct
91 Correct 52 ms 6736 KB Output is correct
92 Correct 48 ms 6348 KB Output is correct
93 Correct 77 ms 8140 KB Output is correct
94 Correct 78 ms 7928 KB Output is correct
95 Correct 69 ms 7892 KB Output is correct
96 Correct 79 ms 7980 KB Output is correct
97 Correct 84 ms 8000 KB Output is correct
98 Correct 53 ms 6860 KB Output is correct
99 Correct 47 ms 7812 KB Output is correct
100 Correct 57 ms 6704 KB Output is correct
101 Correct 74 ms 7884 KB Output is correct
102 Correct 61 ms 7772 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 596 KB Output is correct
2 Correct 2 ms 504 KB Output is correct
3 Correct 2 ms 468 KB Output is correct
4 Correct 2 ms 536 KB Output is correct
5 Correct 2 ms 500 KB Output is correct
6 Correct 2 ms 468 KB Output is correct
7 Correct 2 ms 468 KB Output is correct
8 Correct 2 ms 552 KB Output is correct
9 Correct 2 ms 468 KB Output is correct
10 Correct 2 ms 468 KB Output is correct
11 Correct 2 ms 468 KB Output is correct
12 Correct 2 ms 468 KB Output is correct
13 Correct 2 ms 468 KB Output is correct
14 Correct 2 ms 468 KB Output is correct
15 Correct 2 ms 468 KB Output is correct
16 Correct 2 ms 508 KB Output is correct
17 Correct 2 ms 500 KB Output is correct
18 Correct 2 ms 468 KB Output is correct
19 Correct 2 ms 500 KB Output is correct
20 Correct 2 ms 512 KB Output is correct
21 Correct 3 ms 468 KB Output is correct
22 Correct 3 ms 596 KB Output is correct
23 Correct 2 ms 468 KB Output is correct
24 Correct 2 ms 596 KB Output is correct
25 Correct 2 ms 468 KB Output is correct
26 Correct 2 ms 544 KB Output is correct
27 Correct 2 ms 596 KB Output is correct
28 Correct 2 ms 596 KB Output is correct
29 Correct 2 ms 596 KB Output is correct
30 Correct 3 ms 596 KB Output is correct
31 Correct 2 ms 516 KB Output is correct
32 Correct 2 ms 596 KB Output is correct
33 Correct 2 ms 468 KB Output is correct
34 Correct 2 ms 596 KB Output is correct
35 Correct 2 ms 468 KB Output is correct
36 Correct 2 ms 596 KB Output is correct
37 Correct 2 ms 468 KB Output is correct
38 Correct 3 ms 468 KB Output is correct
39 Correct 57 ms 7308 KB Output is correct
40 Correct 59 ms 7376 KB Output is correct
41 Correct 66 ms 7344 KB Output is correct
42 Correct 57 ms 7308 KB Output is correct
43 Correct 60 ms 7496 KB Output is correct
44 Correct 60 ms 7364 KB Output is correct
45 Correct 42 ms 6700 KB Output is correct
46 Correct 55 ms 6824 KB Output is correct
47 Correct 72 ms 7408 KB Output is correct
48 Correct 60 ms 7360 KB Output is correct
49 Correct 85 ms 7368 KB Output is correct
50 Correct 57 ms 7384 KB Output is correct
51 Correct 57 ms 6776 KB Output is correct
52 Correct 57 ms 7452 KB Output is correct
53 Correct 69 ms 7516 KB Output is correct
54 Correct 70 ms 7696 KB Output is correct
55 Correct 257 ms 27088 KB Output is correct
56 Correct 214 ms 21724 KB Output is correct
57 Correct 313 ms 29636 KB Output is correct
58 Correct 222 ms 21580 KB Output is correct
59 Correct 214 ms 22056 KB Output is correct
60 Correct 329 ms 30000 KB Output is correct
61 Correct 164 ms 27724 KB Output is correct
62 Correct 181 ms 27648 KB Output is correct
63 Correct 297 ms 29576 KB Output is correct
64 Correct 312 ms 29568 KB Output is correct
65 Correct 322 ms 29336 KB Output is correct
66 Correct 348 ms 29740 KB Output is correct
67 Correct 318 ms 29316 KB Output is correct
68 Correct 298 ms 29724 KB Output is correct
69 Correct 317 ms 29800 KB Output is correct
70 Correct 312 ms 29632 KB Output is correct
71 Correct 313 ms 29584 KB Output is correct
72 Correct 294 ms 29412 KB Output is correct
73 Correct 301 ms 29696 KB Output is correct
74 Correct 313 ms 29512 KB Output is correct
75 Correct 325 ms 29672 KB Output is correct
76 Correct 317 ms 29664 KB Output is correct
77 Correct 288 ms 29696 KB Output is correct
78 Correct 316 ms 29684 KB Output is correct
79 Correct 269 ms 28876 KB Output is correct
80 Correct 315 ms 29312 KB Output is correct
81 Correct 301 ms 28468 KB Output is correct
82 Correct 54 ms 6672 KB Output is correct
83 Correct 60 ms 6104 KB Output is correct
84 Correct 35 ms 5860 KB Output is correct
85 Correct 40 ms 6564 KB Output is correct
86 Correct 58 ms 7500 KB Output is correct
87 Correct 58 ms 7448 KB Output is correct
88 Correct 61 ms 7456 KB Output is correct
89 Correct 61 ms 7408 KB Output is correct
90 Correct 63 ms 7468 KB Output is correct
91 Correct 63 ms 7448 KB Output is correct
92 Correct 44 ms 7268 KB Output is correct
93 Correct 56 ms 7332 KB Output is correct
94 Correct 42 ms 5336 KB Output is correct
95 Correct 57 ms 6452 KB Output is correct
96 Correct 77 ms 7476 KB Output is correct
97 Correct 66 ms 7612 KB Output is correct
98 Correct 46 ms 6096 KB Output is correct
99 Correct 62 ms 7700 KB Output is correct
100 Correct 55 ms 7296 KB Output is correct
101 Correct 59 ms 7920 KB Output is correct
102 Correct 63 ms 8080 KB Output is correct
103 Correct 52 ms 5756 KB Output is correct
104 Correct 60 ms 6976 KB Output is correct
105 Correct 63 ms 8088 KB Output is correct
106 Correct 40 ms 6960 KB Output is correct
107 Correct 41 ms 6544 KB Output is correct
108 Correct 57 ms 7912 KB Output is correct
109 Correct 47 ms 5660 KB Output is correct
110 Correct 59 ms 8036 KB Output is correct
111 Correct 60 ms 8012 KB Output is correct
112 Correct 59 ms 7272 KB Output is correct
113 Correct 63 ms 7932 KB Output is correct
114 Correct 56 ms 7132 KB Output is correct
115 Correct 75 ms 8140 KB Output is correct
116 Correct 50 ms 5428 KB Output is correct
117 Correct 65 ms 8000 KB Output is correct
118 Correct 52 ms 6736 KB Output is correct
119 Correct 48 ms 6348 KB Output is correct
120 Correct 77 ms 8140 KB Output is correct
121 Correct 78 ms 7928 KB Output is correct
122 Correct 69 ms 7892 KB Output is correct
123 Correct 79 ms 7980 KB Output is correct
124 Correct 84 ms 8000 KB Output is correct
125 Correct 53 ms 6860 KB Output is correct
126 Correct 47 ms 7812 KB Output is correct
127 Correct 57 ms 6704 KB Output is correct
128 Correct 74 ms 7884 KB Output is correct
129 Correct 61 ms 7772 KB Output is correct
130 Correct 349 ms 30148 KB Output is correct
131 Correct 201 ms 21964 KB Output is correct
132 Correct 305 ms 30108 KB Output is correct
133 Correct 321 ms 29260 KB Output is correct
134 Correct 284 ms 26036 KB Output is correct
135 Correct 312 ms 30568 KB Output is correct
136 Correct 290 ms 30468 KB Output is correct
137 Correct 358 ms 30520 KB Output is correct
138 Correct 301 ms 29900 KB Output is correct
139 Correct 294 ms 30452 KB Output is correct
140 Correct 296 ms 29908 KB Output is correct
141 Correct 283 ms 30292 KB Output is correct
142 Correct 290 ms 30284 KB Output is correct
143 Correct 278 ms 30232 KB Output is correct
144 Correct 305 ms 30124 KB Output is correct
145 Correct 285 ms 30324 KB Output is correct
146 Correct 288 ms 30156 KB Output is correct
147 Correct 289 ms 30252 KB Output is correct
148 Correct 283 ms 30252 KB Output is correct
149 Correct 313 ms 30312 KB Output is correct
150 Correct 198 ms 29488 KB Output is correct
151 Correct 261 ms 29884 KB Output is correct
152 Correct 259 ms 29900 KB Output is correct
153 Correct 253 ms 29360 KB Output is correct