답안 #631070

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
631070 2022-08-17T16:16:47 Z rainboy 송신탑 (IOI22_towers) C++17
77 / 100
1008 ms 4208 KB
#include "towers.h"
#include <vector>

using namespace std;

const int N = 100000;

int abs_(int a) { return a > 0 ? a : -a; }
int max(int a, int b) { return a > b ? a : b; }

typedef vector<int> vi;

int dd[N], iq[N + 1], pq[N], cnt;

int lt(int i, int j) { return dd[i] < dd[j]; }

int p2(int p) {
	return (p *= 2) > cnt ? 0 : (p < cnt && lt(iq[p + 1], iq[p]) ? p + 1 : p);
}

void pq_up(int i) {
	int p, q, j;
	for (p = pq[i]; (q = p / 2) && lt(i, j = iq[q]); p = q)
		iq[pq[j] = p] = j;
	iq[pq[i] = p] = i;
}

void pq_dn(int i) {
	int p, q, j;
	for (p = pq[i]; (q = p2(p)) && lt(j = iq[q], i); p = q)
		iq[pq[j] = p] = j;
	iq[pq[i] = p] = i;
}

void pq_add(int i) {
	pq[i] = ++cnt, pq_up(i);
}

int pq_remove_first() {
	int i = iq[1], j = iq[cnt--];
	if (j != i)
		pq[j] = 1, pq_dn(j);
	pq[i] = 0;
	return i;
}

void pq_remove(int i) {
	int j = iq[cnt--];
	if (j != i)
		pq[j] = pq[i], pq_up(j), pq_dn(j);
	pq[i] = 0;
}

int aa[N], ii[N], ii_[N], ll[N], rr[N], pp[N], qq[N], n, p, k, k_, first;

void init(int n_, vi aa_) {
	n = n_;
	for (int i = 0; i < n; i++)
		aa[i] = aa_[i];
	p = 0;
	while (p < n - 1 && aa[p] < aa[p + 1])
		p++;
	for (int i = p + 1; i < n; i++)
		if (aa[i - 1] < aa[i]) {
			p = -1;
			break;
		}
	first = 1;
	k = 0;
	ii[k++] = 0;
	for (int i = 1; i < n; i++)
		if (k % 2 != 0) {
			if (aa[ii[k - 1]] > aa[i])
				ii[k - 1] = i;
			else
				ii[k++] = i;
		} else {
			if (aa[ii[k - 1]] < aa[i])
				ii[k - 1] = i;
			else
				ii[k++] = i;
		}
	if (k % 2 == 0)
		k--;
	for (int h = 0; h < k; h++)
		pp[ii[h]] = h == 0 ? -1 : ii[h - 1], qq[ii[h]] = h + 1 == k ? n : ii[h + 1];
	for (int h = 0; h + 1 < k; h++)
		dd[ii[h]] = abs_(aa[ii[h + 1]] - aa[ii[h]]), pq_add(ii[h]);
	k = 0;
	while (cnt) {
		int i = pq_remove_first(), j = qq[i];
		if (pp[i] == -1) {
			pq_remove(j);
			pp[qq[j]] = -1;
		} else if (qq[j] == n) {
			pq_remove(pp[i]);
			qq[pp[i]] = n;
		} else {
			pq_remove(pp[i]), pq_remove(j);
			qq[pp[i]] = qq[j], pp[qq[j]] = pp[i];
			dd[pp[i]] = abs_(aa[qq[j]] - aa[pp[i]]), pq_add(pp[i]);
		}
		if (aa[i] > aa[j])
			ii[k++] = i;
		else
			dd[j] = dd[i], ii[k++] = j;
	}
}

int max_towers(int l, int r, int d) {
	if (p != -1)
		return l < p && p < r && aa[p] - aa[l] >= d && aa[p] - aa[r] >= d ? 2 : 1;
	else if (l == 0 && r == n - 1) {
		int lower = -1, upper = k;
		while (upper - lower > 1) {
			int h = (lower + upper) / 2;
			if (dd[ii[h]] < d)
				lower = h;
			else
				upper = h;
		}
		return k - upper + 1;
	} else {
		if (first) {
			k_ = 0;
			ii_[k_++] = 0;
			for (int i = 1; i < n; i++)
				if (k_ % 2 != 0) {
					if (aa[ii_[k_ - 1]] > aa[i])
						ii_[k_ - 1] = i;
					else if (aa[i] - aa[ii_[k_ - 1]] >= d)
						ii_[k_++] = i;
				} else {
					if (aa[ii_[k_ - 1]] < aa[i])
						ii_[k_ - 1] = i;
					else if (aa[ii_[k_ - 1]] - aa[i] >= d)
						ii_[k_++] = i;
				}
			for (int h = 1; h < k_ - 1; h += 2) {
				for (int i = ii_[h] - 1; i >= 0; i--)
					if (aa[ii_[h]] - aa[i] >= d) {
						ll[h / 2] = i;
						break;
					}
				for (int i = ii_[h] + 1; i < n; i++)
					if (aa[ii_[h]] - aa[i] >= d) {
						rr[h / 2] = i;
						break;
					}
			}
			k_ = (k_ - 1) / 2;
			first = 0;
		}
		int lower, upper;
		lower = -1, upper = k_;
		while (upper - lower > 1) {
			int h = (lower + upper) / 2;
			if (l <= ll[h])
				upper = h;
			else
				lower = h;
		}
		l = upper;
		lower = -1, upper = k_;
		while (upper - lower > 1) {
			int h = (lower + upper) / 2;
			if (rr[h] <= r)
				lower = h;
			else
				upper = h;
		}
		r = lower;
		return max(r - l + 1, 0) + 1;
	}
}
# 결과 실행 시간 메모리 Grader output
1 Correct 438 ms 932 KB Output is correct
2 Correct 857 ms 1488 KB Output is correct
3 Correct 709 ms 1488 KB Output is correct
4 Correct 817 ms 1436 KB Output is correct
5 Correct 859 ms 1440 KB Output is correct
6 Correct 913 ms 1464 KB Output is correct
7 Correct 641 ms 1444 KB Output is correct
8 Correct 0 ms 208 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 336 KB Output is correct
5 Correct 1 ms 336 KB Output is correct
6 Correct 1 ms 336 KB Output is correct
7 Correct 1 ms 336 KB Output is correct
8 Correct 1 ms 208 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
11 Correct 1 ms 288 KB Output is correct
12 Correct 0 ms 208 KB Output is correct
13 Correct 0 ms 336 KB Output is correct
14 Correct 1 ms 336 KB Output is correct
15 Correct 1 ms 336 KB Output is correct
16 Correct 1 ms 336 KB Output is correct
17 Correct 1 ms 336 KB Output is correct
18 Correct 0 ms 336 KB Output is correct
19 Correct 0 ms 336 KB Output is correct
20 Correct 1 ms 336 KB Output is correct
21 Correct 1 ms 336 KB Output is correct
22 Correct 1 ms 336 KB Output is correct
23 Correct 1 ms 336 KB Output is correct
24 Correct 1 ms 336 KB Output is correct
25 Correct 1 ms 336 KB Output is correct
26 Correct 1 ms 336 KB Output is correct
27 Correct 1 ms 336 KB Output is correct
28 Correct 1 ms 336 KB Output is correct
29 Correct 1 ms 336 KB Output is correct
30 Correct 1 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 0 ms 208 KB Output is correct
33 Correct 1 ms 208 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 336 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 336 KB Output is correct
5 Correct 1 ms 336 KB Output is correct
6 Correct 1 ms 336 KB Output is correct
7 Correct 1 ms 336 KB Output is correct
8 Correct 1 ms 208 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
11 Correct 1 ms 288 KB Output is correct
12 Correct 0 ms 208 KB Output is correct
13 Correct 0 ms 336 KB Output is correct
14 Correct 1 ms 336 KB Output is correct
15 Correct 1 ms 336 KB Output is correct
16 Correct 1 ms 336 KB Output is correct
17 Correct 1 ms 336 KB Output is correct
18 Correct 0 ms 336 KB Output is correct
19 Correct 0 ms 336 KB Output is correct
20 Correct 1 ms 336 KB Output is correct
21 Correct 1 ms 336 KB Output is correct
22 Correct 1 ms 336 KB Output is correct
23 Correct 1 ms 336 KB Output is correct
24 Correct 1 ms 336 KB Output is correct
25 Correct 1 ms 336 KB Output is correct
26 Correct 1 ms 336 KB Output is correct
27 Correct 1 ms 336 KB Output is correct
28 Correct 1 ms 336 KB Output is correct
29 Correct 1 ms 336 KB Output is correct
30 Correct 1 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 0 ms 208 KB Output is correct
33 Correct 1 ms 208 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 336 KB Output is correct
36 Correct 18 ms 2384 KB Output is correct
37 Correct 37 ms 3484 KB Output is correct
38 Correct 33 ms 3548 KB Output is correct
39 Correct 44 ms 3760 KB Output is correct
40 Correct 38 ms 3992 KB Output is correct
41 Correct 48 ms 3872 KB Output is correct
42 Correct 37 ms 4120 KB Output is correct
43 Correct 19 ms 1436 KB Output is correct
44 Correct 12 ms 1464 KB Output is correct
45 Correct 13 ms 1440 KB Output is correct
46 Correct 12 ms 1440 KB Output is correct
47 Correct 32 ms 3648 KB Output is correct
48 Correct 49 ms 4116 KB Output is correct
49 Correct 41 ms 4104 KB Output is correct
50 Correct 12 ms 1440 KB Output is correct
51 Correct 12 ms 1516 KB Output is correct
52 Correct 36 ms 3480 KB Output is correct
53 Correct 43 ms 3804 KB Output is correct
54 Correct 50 ms 3744 KB Output is correct
55 Correct 20 ms 1436 KB Output is correct
56 Correct 12 ms 1440 KB Output is correct
57 Correct 29 ms 3464 KB Output is correct
58 Correct 29 ms 3492 KB Output is correct
59 Correct 30 ms 3552 KB Output is correct
60 Correct 47 ms 3752 KB Output is correct
61 Correct 51 ms 3792 KB Output is correct
62 Correct 38 ms 3776 KB Output is correct
63 Correct 37 ms 3804 KB Output is correct
64 Correct 19 ms 1436 KB Output is correct
65 Correct 19 ms 1440 KB Output is correct
66 Correct 21 ms 1432 KB Output is correct
67 Correct 15 ms 1440 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 780 ms 3616 KB Output is correct
2 Correct 937 ms 3604 KB Output is correct
3 Correct 923 ms 3656 KB Output is correct
4 Correct 830 ms 4208 KB Output is correct
5 Correct 886 ms 4184 KB Output is correct
6 Correct 844 ms 4180 KB Output is correct
7 Correct 915 ms 4160 KB Output is correct
8 Correct 625 ms 1488 KB Output is correct
9 Correct 520 ms 1432 KB Output is correct
10 Correct 821 ms 1480 KB Output is correct
11 Correct 995 ms 1432 KB Output is correct
12 Correct 771 ms 1480 KB Output is correct
13 Correct 923 ms 1448 KB Output is correct
14 Correct 0 ms 208 KB Output is correct
15 Correct 1 ms 336 KB Output is correct
16 Correct 1 ms 208 KB Output is correct
17 Correct 31 ms 3648 KB Output is correct
18 Correct 37 ms 4188 KB Output is correct
19 Correct 38 ms 4176 KB Output is correct
20 Correct 12 ms 1508 KB Output is correct
21 Correct 19 ms 1552 KB Output is correct
22 Correct 30 ms 3480 KB Output is correct
23 Correct 47 ms 3756 KB Output is correct
24 Correct 40 ms 3740 KB Output is correct
25 Correct 18 ms 1440 KB Output is correct
26 Correct 13 ms 1436 KB Output is correct
27 Correct 1 ms 336 KB Output is correct
28 Correct 1 ms 336 KB Output is correct
29 Correct 1 ms 336 KB Output is correct
30 Correct 0 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 1 ms 336 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 336 KB Output is correct
36 Correct 1 ms 336 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 322 ms 976 KB Output is correct
2 Correct 862 ms 3552 KB Output is correct
3 Correct 967 ms 3488 KB Output is correct
4 Correct 1006 ms 3748 KB Output is correct
5 Correct 975 ms 3792 KB Output is correct
6 Correct 974 ms 3736 KB Output is correct
7 Correct 843 ms 3760 KB Output is correct
8 Correct 867 ms 1464 KB Output is correct
9 Correct 823 ms 1452 KB Output is correct
10 Correct 825 ms 1436 KB Output is correct
11 Correct 646 ms 1428 KB Output is correct
12 Correct 31 ms 3496 KB Output is correct
13 Correct 43 ms 3804 KB Output is correct
14 Correct 38 ms 3804 KB Output is correct
15 Correct 14 ms 1452 KB Output is correct
16 Correct 20 ms 1472 KB Output is correct
17 Correct 29 ms 3408 KB Output is correct
18 Correct 29 ms 3612 KB Output is correct
19 Correct 30 ms 3528 KB Output is correct
20 Correct 42 ms 3748 KB Output is correct
21 Correct 37 ms 3792 KB Output is correct
22 Correct 40 ms 3804 KB Output is correct
23 Correct 37 ms 3792 KB Output is correct
24 Correct 20 ms 1436 KB Output is correct
25 Correct 13 ms 1448 KB Output is correct
26 Correct 22 ms 1440 KB Output is correct
27 Correct 12 ms 1436 KB Output is correct
28 Correct 1 ms 336 KB Output is correct
29 Correct 1 ms 336 KB Output is correct
30 Correct 1 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 1 ms 336 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 336 KB Output is correct
36 Correct 1 ms 336 KB Output is correct
37 Correct 1 ms 336 KB Output is correct
38 Correct 1 ms 336 KB Output is correct
39 Correct 1 ms 336 KB Output is correct
40 Correct 1 ms 208 KB Output is correct
41 Correct 1 ms 336 KB Output is correct
42 Correct 1 ms 312 KB Output is correct
43 Correct 1 ms 336 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 336 KB Output is correct
5 Correct 1 ms 336 KB Output is correct
6 Correct 1 ms 336 KB Output is correct
7 Correct 1 ms 336 KB Output is correct
8 Correct 1 ms 208 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
11 Correct 1 ms 288 KB Output is correct
12 Correct 0 ms 208 KB Output is correct
13 Correct 0 ms 336 KB Output is correct
14 Correct 1 ms 336 KB Output is correct
15 Correct 1 ms 336 KB Output is correct
16 Correct 1 ms 336 KB Output is correct
17 Correct 1 ms 336 KB Output is correct
18 Correct 0 ms 336 KB Output is correct
19 Correct 0 ms 336 KB Output is correct
20 Correct 1 ms 336 KB Output is correct
21 Correct 1 ms 336 KB Output is correct
22 Correct 1 ms 336 KB Output is correct
23 Correct 1 ms 336 KB Output is correct
24 Correct 1 ms 336 KB Output is correct
25 Correct 1 ms 336 KB Output is correct
26 Correct 1 ms 336 KB Output is correct
27 Correct 1 ms 336 KB Output is correct
28 Correct 1 ms 336 KB Output is correct
29 Correct 1 ms 336 KB Output is correct
30 Correct 1 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 0 ms 208 KB Output is correct
33 Correct 1 ms 208 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 336 KB Output is correct
36 Correct 18 ms 2384 KB Output is correct
37 Correct 37 ms 3484 KB Output is correct
38 Correct 33 ms 3548 KB Output is correct
39 Correct 44 ms 3760 KB Output is correct
40 Correct 38 ms 3992 KB Output is correct
41 Correct 48 ms 3872 KB Output is correct
42 Correct 37 ms 4120 KB Output is correct
43 Correct 19 ms 1436 KB Output is correct
44 Correct 12 ms 1464 KB Output is correct
45 Correct 13 ms 1440 KB Output is correct
46 Correct 12 ms 1440 KB Output is correct
47 Correct 32 ms 3648 KB Output is correct
48 Correct 49 ms 4116 KB Output is correct
49 Correct 41 ms 4104 KB Output is correct
50 Correct 12 ms 1440 KB Output is correct
51 Correct 12 ms 1516 KB Output is correct
52 Correct 36 ms 3480 KB Output is correct
53 Correct 43 ms 3804 KB Output is correct
54 Correct 50 ms 3744 KB Output is correct
55 Correct 20 ms 1436 KB Output is correct
56 Correct 12 ms 1440 KB Output is correct
57 Correct 29 ms 3464 KB Output is correct
58 Correct 29 ms 3492 KB Output is correct
59 Correct 30 ms 3552 KB Output is correct
60 Correct 47 ms 3752 KB Output is correct
61 Correct 51 ms 3792 KB Output is correct
62 Correct 38 ms 3776 KB Output is correct
63 Correct 37 ms 3804 KB Output is correct
64 Correct 19 ms 1436 KB Output is correct
65 Correct 19 ms 1440 KB Output is correct
66 Correct 21 ms 1432 KB Output is correct
67 Correct 15 ms 1440 KB Output is correct
68 Correct 780 ms 3616 KB Output is correct
69 Correct 937 ms 3604 KB Output is correct
70 Correct 923 ms 3656 KB Output is correct
71 Correct 830 ms 4208 KB Output is correct
72 Correct 886 ms 4184 KB Output is correct
73 Correct 844 ms 4180 KB Output is correct
74 Correct 915 ms 4160 KB Output is correct
75 Correct 625 ms 1488 KB Output is correct
76 Correct 520 ms 1432 KB Output is correct
77 Correct 821 ms 1480 KB Output is correct
78 Correct 995 ms 1432 KB Output is correct
79 Correct 771 ms 1480 KB Output is correct
80 Correct 923 ms 1448 KB Output is correct
81 Correct 0 ms 208 KB Output is correct
82 Correct 1 ms 336 KB Output is correct
83 Correct 1 ms 208 KB Output is correct
84 Correct 31 ms 3648 KB Output is correct
85 Correct 37 ms 4188 KB Output is correct
86 Correct 38 ms 4176 KB Output is correct
87 Correct 12 ms 1508 KB Output is correct
88 Correct 19 ms 1552 KB Output is correct
89 Correct 30 ms 3480 KB Output is correct
90 Correct 47 ms 3756 KB Output is correct
91 Correct 40 ms 3740 KB Output is correct
92 Correct 18 ms 1440 KB Output is correct
93 Correct 13 ms 1436 KB Output is correct
94 Correct 1 ms 336 KB Output is correct
95 Correct 1 ms 336 KB Output is correct
96 Correct 1 ms 336 KB Output is correct
97 Correct 0 ms 336 KB Output is correct
98 Correct 1 ms 336 KB Output is correct
99 Correct 1 ms 336 KB Output is correct
100 Correct 1 ms 336 KB Output is correct
101 Correct 1 ms 336 KB Output is correct
102 Correct 1 ms 336 KB Output is correct
103 Correct 1 ms 336 KB Output is correct
104 Correct 617 ms 3248 KB Output is correct
105 Correct 914 ms 3536 KB Output is correct
106 Correct 949 ms 3536 KB Output is correct
107 Correct 668 ms 3820 KB Output is correct
108 Correct 1008 ms 3784 KB Output is correct
109 Correct 916 ms 3848 KB Output is correct
110 Correct 905 ms 4116 KB Output is correct
111 Correct 788 ms 1436 KB Output is correct
112 Correct 768 ms 1432 KB Output is correct
113 Correct 524 ms 1480 KB Output is correct
114 Correct 899 ms 1432 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 438 ms 932 KB Output is correct
2 Correct 857 ms 1488 KB Output is correct
3 Correct 709 ms 1488 KB Output is correct
4 Correct 817 ms 1436 KB Output is correct
5 Correct 859 ms 1440 KB Output is correct
6 Correct 913 ms 1464 KB Output is correct
7 Correct 641 ms 1444 KB Output is correct
8 Correct 0 ms 208 KB Output is correct
9 Correct 1 ms 336 KB Output is correct
10 Correct 1 ms 336 KB Output is correct
11 Correct 1 ms 336 KB Output is correct
12 Correct 1 ms 336 KB Output is correct
13 Correct 1 ms 384 KB Output is correct
14 Correct 1 ms 336 KB Output is correct
15 Correct 1 ms 336 KB Output is correct
16 Correct 1 ms 336 KB Output is correct
17 Correct 1 ms 336 KB Output is correct
18 Correct 1 ms 208 KB Output is correct
19 Correct 1 ms 336 KB Output is correct
20 Correct 1 ms 336 KB Output is correct
21 Correct 1 ms 288 KB Output is correct
22 Correct 0 ms 208 KB Output is correct
23 Correct 0 ms 336 KB Output is correct
24 Correct 1 ms 336 KB Output is correct
25 Correct 1 ms 336 KB Output is correct
26 Correct 1 ms 336 KB Output is correct
27 Correct 1 ms 336 KB Output is correct
28 Correct 0 ms 336 KB Output is correct
29 Correct 0 ms 336 KB Output is correct
30 Correct 1 ms 336 KB Output is correct
31 Correct 1 ms 336 KB Output is correct
32 Correct 1 ms 336 KB Output is correct
33 Correct 1 ms 336 KB Output is correct
34 Correct 1 ms 336 KB Output is correct
35 Correct 1 ms 336 KB Output is correct
36 Correct 1 ms 336 KB Output is correct
37 Correct 1 ms 336 KB Output is correct
38 Correct 1 ms 336 KB Output is correct
39 Correct 1 ms 336 KB Output is correct
40 Correct 1 ms 336 KB Output is correct
41 Correct 1 ms 336 KB Output is correct
42 Correct 0 ms 208 KB Output is correct
43 Correct 1 ms 208 KB Output is correct
44 Correct 1 ms 336 KB Output is correct
45 Correct 1 ms 336 KB Output is correct
46 Correct 18 ms 2384 KB Output is correct
47 Correct 37 ms 3484 KB Output is correct
48 Correct 33 ms 3548 KB Output is correct
49 Correct 44 ms 3760 KB Output is correct
50 Correct 38 ms 3992 KB Output is correct
51 Correct 48 ms 3872 KB Output is correct
52 Correct 37 ms 4120 KB Output is correct
53 Correct 19 ms 1436 KB Output is correct
54 Correct 12 ms 1464 KB Output is correct
55 Correct 13 ms 1440 KB Output is correct
56 Correct 12 ms 1440 KB Output is correct
57 Correct 32 ms 3648 KB Output is correct
58 Correct 49 ms 4116 KB Output is correct
59 Correct 41 ms 4104 KB Output is correct
60 Correct 12 ms 1440 KB Output is correct
61 Correct 12 ms 1516 KB Output is correct
62 Correct 36 ms 3480 KB Output is correct
63 Correct 43 ms 3804 KB Output is correct
64 Correct 50 ms 3744 KB Output is correct
65 Correct 20 ms 1436 KB Output is correct
66 Correct 12 ms 1440 KB Output is correct
67 Correct 29 ms 3464 KB Output is correct
68 Correct 29 ms 3492 KB Output is correct
69 Correct 30 ms 3552 KB Output is correct
70 Correct 47 ms 3752 KB Output is correct
71 Correct 51 ms 3792 KB Output is correct
72 Correct 38 ms 3776 KB Output is correct
73 Correct 37 ms 3804 KB Output is correct
74 Correct 19 ms 1436 KB Output is correct
75 Correct 19 ms 1440 KB Output is correct
76 Correct 21 ms 1432 KB Output is correct
77 Correct 15 ms 1440 KB Output is correct
78 Correct 780 ms 3616 KB Output is correct
79 Correct 937 ms 3604 KB Output is correct
80 Correct 923 ms 3656 KB Output is correct
81 Correct 830 ms 4208 KB Output is correct
82 Correct 886 ms 4184 KB Output is correct
83 Correct 844 ms 4180 KB Output is correct
84 Correct 915 ms 4160 KB Output is correct
85 Correct 625 ms 1488 KB Output is correct
86 Correct 520 ms 1432 KB Output is correct
87 Correct 821 ms 1480 KB Output is correct
88 Correct 995 ms 1432 KB Output is correct
89 Correct 771 ms 1480 KB Output is correct
90 Correct 923 ms 1448 KB Output is correct
91 Correct 0 ms 208 KB Output is correct
92 Correct 1 ms 336 KB Output is correct
93 Correct 1 ms 208 KB Output is correct
94 Correct 31 ms 3648 KB Output is correct
95 Correct 37 ms 4188 KB Output is correct
96 Correct 38 ms 4176 KB Output is correct
97 Correct 12 ms 1508 KB Output is correct
98 Correct 19 ms 1552 KB Output is correct
99 Correct 30 ms 3480 KB Output is correct
100 Correct 47 ms 3756 KB Output is correct
101 Correct 40 ms 3740 KB Output is correct
102 Correct 18 ms 1440 KB Output is correct
103 Correct 13 ms 1436 KB Output is correct
104 Correct 1 ms 336 KB Output is correct
105 Correct 1 ms 336 KB Output is correct
106 Correct 1 ms 336 KB Output is correct
107 Correct 0 ms 336 KB Output is correct
108 Correct 1 ms 336 KB Output is correct
109 Correct 1 ms 336 KB Output is correct
110 Correct 1 ms 336 KB Output is correct
111 Correct 1 ms 336 KB Output is correct
112 Correct 1 ms 336 KB Output is correct
113 Correct 1 ms 336 KB Output is correct
114 Correct 322 ms 976 KB Output is correct
115 Correct 862 ms 3552 KB Output is correct
116 Correct 967 ms 3488 KB Output is correct
117 Correct 1006 ms 3748 KB Output is correct
118 Correct 975 ms 3792 KB Output is correct
119 Correct 974 ms 3736 KB Output is correct
120 Correct 843 ms 3760 KB Output is correct
121 Correct 867 ms 1464 KB Output is correct
122 Correct 823 ms 1452 KB Output is correct
123 Correct 825 ms 1436 KB Output is correct
124 Correct 646 ms 1428 KB Output is correct
125 Correct 31 ms 3496 KB Output is correct
126 Correct 43 ms 3804 KB Output is correct
127 Correct 38 ms 3804 KB Output is correct
128 Correct 14 ms 1452 KB Output is correct
129 Correct 20 ms 1472 KB Output is correct
130 Correct 29 ms 3408 KB Output is correct
131 Correct 29 ms 3612 KB Output is correct
132 Correct 30 ms 3528 KB Output is correct
133 Correct 42 ms 3748 KB Output is correct
134 Correct 37 ms 3792 KB Output is correct
135 Correct 40 ms 3804 KB Output is correct
136 Correct 37 ms 3792 KB Output is correct
137 Correct 20 ms 1436 KB Output is correct
138 Correct 13 ms 1448 KB Output is correct
139 Correct 22 ms 1440 KB Output is correct
140 Correct 12 ms 1436 KB Output is correct
141 Correct 1 ms 336 KB Output is correct
142 Correct 1 ms 336 KB Output is correct
143 Correct 1 ms 336 KB Output is correct
144 Correct 1 ms 336 KB Output is correct
145 Correct 1 ms 336 KB Output is correct
146 Correct 1 ms 336 KB Output is correct
147 Correct 1 ms 336 KB Output is correct
148 Correct 1 ms 336 KB Output is correct
149 Correct 1 ms 336 KB Output is correct
150 Correct 1 ms 336 KB Output is correct
151 Correct 1 ms 336 KB Output is correct
152 Correct 1 ms 336 KB Output is correct
153 Correct 1 ms 208 KB Output is correct
154 Correct 1 ms 336 KB Output is correct
155 Correct 1 ms 312 KB Output is correct
156 Correct 1 ms 336 KB Output is correct
157 Correct 617 ms 3248 KB Output is correct
158 Correct 914 ms 3536 KB Output is correct
159 Correct 949 ms 3536 KB Output is correct
160 Correct 668 ms 3820 KB Output is correct
161 Correct 1008 ms 3784 KB Output is correct
162 Correct 916 ms 3848 KB Output is correct
163 Correct 905 ms 4116 KB Output is correct
164 Correct 788 ms 1436 KB Output is correct
165 Correct 768 ms 1432 KB Output is correct
166 Correct 524 ms 1480 KB Output is correct
167 Correct 899 ms 1432 KB Output is correct
168 Correct 1 ms 384 KB Output is correct
169 Incorrect 563 ms 1440 KB 2nd lines differ - on the 1st token, expected: '128', found: '1529'
170 Halted 0 ms 0 KB -