답안 #719461

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
719461 2023-04-06T01:04:20 Z qwerasdfzxcl 푸드 코트 (JOI21_foodcourt) C++17
100 / 100
641 ms 70344 KB
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

struct Node{
	ll x, mn;
	int mni;
	Node(){}
	Node(ll _x, ll _mn, int _mni): x(_x), mn(_mn), mni(_mni) {}

	Node operator + (const Node &N) const{
		if (mni==-1) return N;
		if (N.mni==-1) return *this;

		Node ret;
		ret.x = x + N.x;
		if (mn < x+N.mn) ret.mn = mn, ret.mni = mni;
		else ret.mn = x + N.mn, ret.mni = N.mni;
		return ret;
	}
};

template<typename T>
struct Seg{
	T tree[1001000], I;
	int sz;

	void update(int i, int l, int r, int p, T x){
		if (r<p || p<l) return;
		if (l==r){
			tree[i] = x;
			return;
		}

		int m = (l+r)>>1;
		update(i<<1, l, m, p, x); update(i<<1|1, m+1, r, p, x);
		tree[i] = tree[i<<1] + tree[i<<1|1];
	}
	T query(int i, int l, int r, int s, int e) const{
		if (r<s || e<l) return I;
		if (s<=l && r<=e) return tree[i];

		int m = (l+r)>>1;
		return query(i<<1, l, m, s, e) + query(i<<1|1, m+1, r, s, e);
	}

	void init(int n, T _I){sz = n, I = _I; fill(tree, tree+(sz+1)*4, I);}
	void update(int p, T x){update(1, 0, sz, p, x);}
	T query(int l, int r) const{return query(1, 0, sz, l, r);}
};

int search(const Seg<ll> &S, int i, int l, int r, int e, ll x){
	if (l==r) return l;

	int m = (l+r)>>1;
	if (e <= m || S.tree[i<<1] >= x) return search(S, i<<1, l, m, e, x);
	return search(S, i<<1|1, m+1, r, e, x-S.tree[i<<1]);
}

int find(const Seg<ll> &S, int r, ll x){
	x = S.query(0, r) - x;
	return search(S, 1, 0, S.sz, r, x);
}

Seg<Node> tree1;
Seg<ll> tree2;

vector<pair<int, ll>> on[250250], off[250250], Q[250250];
int col[250250], ans[250250];

int main(){
	int n, m, q;
	scanf("%d %d %d", &n, &m, &q);

	for (int i=1;i<=q;i++){
		int op;
		scanf("%d", &op);
		if (op==1){
			int l, r, c, k;
			scanf("%d %d %d %d", &l, &r, &c, &k);
			on[l].emplace_back(i, k);
			off[r+1].emplace_back(i, k);
			col[i] = c;
		}
		else if (op==2){
			int l, r, k;
			scanf("%d %d %d", &l, &r, &k);
			on[l].emplace_back(i, -k);
			off[r+1].emplace_back(i, -k);
		}
		else{
			int x;
			ll y;
			scanf("%d %lld", &x, &y);
			Q[x].emplace_back(i, y);
		}
	}

	tree1.init(q, Node(0, 0, -1));
	tree2.init(q, 0);
	tree1.update(0, Node(0, 0, 0));

	for (int i=1;i<=n;i++){
		for (auto &[j, x]:on[i]){
			tree1.update(j, Node(x, x, j));
			if (x>0) tree2.update(j, x);
		} 
		for (auto &[j, x]:off[i]){
			tree1.update(j, Node(0, 0, -1));
			if (x>0) tree2.update(j, 0);
		} 

		// printf("%d: ", i);
		// for (int j=1;j<=q;j++) printf("%lld ", tree2.query(j, j));
		// printf("\n");

		for (auto &[j, x]:Q[i]){
			auto [S, mn, mni] = tree1.query(0, j);
			ll cnt = tree1.query(mni+1, j).x;

			// printf("%d %lld -> %lld %lld %d %lld -> %d\n", j, x, S, mn, mni, cnt, find(tree2, j, cnt-x));
			if (cnt < x) ans[j] = -1;
			else ans[j] = col[find(tree2, j, cnt-x)];
		}
	}

	for (int i=1;i<=q;i++) if (ans[i]){
		printf("%d\n", ans[i]==-1?0:ans[i]);
	}
}

Compilation message

foodcourt.cpp: In function 'int main()':
foodcourt.cpp:74:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   74 |  scanf("%d %d %d", &n, &m, &q);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foodcourt.cpp:78:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   78 |   scanf("%d", &op);
      |   ~~~~~^~~~~~~~~~~
foodcourt.cpp:81:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   81 |    scanf("%d %d %d %d", &l, &r, &c, &k);
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foodcourt.cpp:88:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   88 |    scanf("%d %d %d", &l, &r, &k);
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foodcourt.cpp:95:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   95 |    scanf("%d %lld", &x, &y);
      |    ~~~~~^~~~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 18192 KB Output is correct
2 Correct 11 ms 18312 KB Output is correct
3 Correct 11 ms 18232 KB Output is correct
4 Correct 11 ms 18348 KB Output is correct
5 Correct 10 ms 18216 KB Output is correct
6 Correct 11 ms 18272 KB Output is correct
7 Correct 11 ms 18348 KB Output is correct
8 Correct 12 ms 18320 KB Output is correct
9 Correct 15 ms 18260 KB Output is correct
10 Correct 12 ms 18344 KB Output is correct
11 Correct 14 ms 18328 KB Output is correct
12 Correct 11 ms 18344 KB Output is correct
13 Correct 10 ms 18260 KB Output is correct
14 Correct 10 ms 18260 KB Output is correct
15 Correct 11 ms 18212 KB Output is correct
16 Correct 11 ms 18260 KB Output is correct
17 Correct 11 ms 18216 KB Output is correct
18 Correct 12 ms 18344 KB Output is correct
19 Correct 12 ms 18216 KB Output is correct
20 Correct 12 ms 18280 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 18192 KB Output is correct
2 Correct 11 ms 18312 KB Output is correct
3 Correct 11 ms 18232 KB Output is correct
4 Correct 11 ms 18348 KB Output is correct
5 Correct 10 ms 18216 KB Output is correct
6 Correct 11 ms 18272 KB Output is correct
7 Correct 11 ms 18348 KB Output is correct
8 Correct 12 ms 18320 KB Output is correct
9 Correct 15 ms 18260 KB Output is correct
10 Correct 12 ms 18344 KB Output is correct
11 Correct 14 ms 18328 KB Output is correct
12 Correct 11 ms 18344 KB Output is correct
13 Correct 10 ms 18260 KB Output is correct
14 Correct 10 ms 18260 KB Output is correct
15 Correct 11 ms 18212 KB Output is correct
16 Correct 11 ms 18260 KB Output is correct
17 Correct 11 ms 18216 KB Output is correct
18 Correct 12 ms 18344 KB Output is correct
19 Correct 12 ms 18216 KB Output is correct
20 Correct 12 ms 18280 KB Output is correct
21 Correct 12 ms 18340 KB Output is correct
22 Correct 11 ms 18340 KB Output is correct
23 Correct 12 ms 18388 KB Output is correct
24 Correct 11 ms 18288 KB Output is correct
25 Correct 14 ms 18260 KB Output is correct
26 Correct 10 ms 18260 KB Output is correct
27 Correct 11 ms 18260 KB Output is correct
28 Correct 12 ms 18272 KB Output is correct
29 Correct 11 ms 18260 KB Output is correct
30 Correct 16 ms 18260 KB Output is correct
31 Correct 11 ms 18260 KB Output is correct
32 Correct 13 ms 18340 KB Output is correct
33 Correct 14 ms 18336 KB Output is correct
34 Correct 13 ms 18260 KB Output is correct
35 Correct 12 ms 18216 KB Output is correct
36 Correct 12 ms 18260 KB Output is correct
37 Correct 13 ms 18140 KB Output is correct
38 Correct 11 ms 18316 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 102 ms 30796 KB Output is correct
2 Correct 116 ms 31016 KB Output is correct
3 Correct 104 ms 30796 KB Output is correct
4 Correct 109 ms 30888 KB Output is correct
5 Correct 102 ms 30996 KB Output is correct
6 Correct 127 ms 30972 KB Output is correct
7 Correct 61 ms 28472 KB Output is correct
8 Correct 66 ms 28904 KB Output is correct
9 Correct 103 ms 30924 KB Output is correct
10 Correct 97 ms 30872 KB Output is correct
11 Correct 113 ms 30956 KB Output is correct
12 Correct 127 ms 30908 KB Output is correct
13 Correct 97 ms 29312 KB Output is correct
14 Correct 99 ms 30692 KB Output is correct
15 Correct 138 ms 30888 KB Output is correct
16 Correct 128 ms 31060 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 489 ms 64468 KB Output is correct
2 Correct 395 ms 55232 KB Output is correct
3 Correct 536 ms 68796 KB Output is correct
4 Correct 371 ms 55072 KB Output is correct
5 Correct 366 ms 55764 KB Output is correct
6 Correct 510 ms 69292 KB Output is correct
7 Correct 226 ms 63900 KB Output is correct
8 Correct 230 ms 63708 KB Output is correct
9 Correct 542 ms 67900 KB Output is correct
10 Correct 553 ms 68052 KB Output is correct
11 Correct 497 ms 68536 KB Output is correct
12 Correct 497 ms 69020 KB Output is correct
13 Correct 514 ms 68748 KB Output is correct
14 Correct 557 ms 69108 KB Output is correct
15 Correct 531 ms 68940 KB Output is correct
16 Correct 554 ms 68944 KB Output is correct
17 Correct 533 ms 69020 KB Output is correct
18 Correct 510 ms 68780 KB Output is correct
19 Correct 535 ms 68984 KB Output is correct
20 Correct 540 ms 68864 KB Output is correct
21 Correct 509 ms 68924 KB Output is correct
22 Correct 542 ms 68964 KB Output is correct
23 Correct 549 ms 69044 KB Output is correct
24 Correct 506 ms 69020 KB Output is correct
25 Correct 443 ms 67592 KB Output is correct
26 Correct 462 ms 68576 KB Output is correct
27 Correct 426 ms 69484 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 18192 KB Output is correct
2 Correct 11 ms 18312 KB Output is correct
3 Correct 11 ms 18232 KB Output is correct
4 Correct 11 ms 18348 KB Output is correct
5 Correct 10 ms 18216 KB Output is correct
6 Correct 11 ms 18272 KB Output is correct
7 Correct 11 ms 18348 KB Output is correct
8 Correct 12 ms 18320 KB Output is correct
9 Correct 15 ms 18260 KB Output is correct
10 Correct 12 ms 18344 KB Output is correct
11 Correct 14 ms 18328 KB Output is correct
12 Correct 11 ms 18344 KB Output is correct
13 Correct 10 ms 18260 KB Output is correct
14 Correct 10 ms 18260 KB Output is correct
15 Correct 11 ms 18212 KB Output is correct
16 Correct 11 ms 18260 KB Output is correct
17 Correct 11 ms 18216 KB Output is correct
18 Correct 12 ms 18344 KB Output is correct
19 Correct 12 ms 18216 KB Output is correct
20 Correct 12 ms 18280 KB Output is correct
21 Correct 102 ms 30796 KB Output is correct
22 Correct 116 ms 31016 KB Output is correct
23 Correct 104 ms 30796 KB Output is correct
24 Correct 109 ms 30888 KB Output is correct
25 Correct 102 ms 30996 KB Output is correct
26 Correct 127 ms 30972 KB Output is correct
27 Correct 61 ms 28472 KB Output is correct
28 Correct 66 ms 28904 KB Output is correct
29 Correct 103 ms 30924 KB Output is correct
30 Correct 97 ms 30872 KB Output is correct
31 Correct 113 ms 30956 KB Output is correct
32 Correct 127 ms 30908 KB Output is correct
33 Correct 97 ms 29312 KB Output is correct
34 Correct 99 ms 30692 KB Output is correct
35 Correct 138 ms 30888 KB Output is correct
36 Correct 128 ms 31060 KB Output is correct
37 Correct 118 ms 29356 KB Output is correct
38 Correct 96 ms 28136 KB Output is correct
39 Correct 47 ms 27256 KB Output is correct
40 Correct 59 ms 28692 KB Output is correct
41 Correct 104 ms 30620 KB Output is correct
42 Correct 108 ms 30768 KB Output is correct
43 Correct 123 ms 30648 KB Output is correct
44 Correct 137 ms 30636 KB Output is correct
45 Correct 115 ms 30712 KB Output is correct
46 Correct 129 ms 30768 KB Output is correct
47 Correct 72 ms 29572 KB Output is correct
48 Correct 113 ms 30544 KB Output is correct
49 Correct 84 ms 27032 KB Output is correct
50 Correct 100 ms 28852 KB Output is correct
51 Correct 110 ms 30800 KB Output is correct
52 Correct 152 ms 30792 KB Output is correct
53 Correct 84 ms 28288 KB Output is correct
54 Correct 114 ms 31132 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 120 ms 29652 KB Output is correct
2 Correct 117 ms 30824 KB Output is correct
3 Correct 120 ms 31088 KB Output is correct
4 Correct 85 ms 27212 KB Output is correct
5 Correct 104 ms 29260 KB Output is correct
6 Correct 124 ms 31028 KB Output is correct
7 Correct 61 ms 28484 KB Output is correct
8 Correct 68 ms 27820 KB Output is correct
9 Correct 104 ms 30220 KB Output is correct
10 Correct 75 ms 26908 KB Output is correct
11 Correct 100 ms 30616 KB Output is correct
12 Correct 103 ms 30632 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 18192 KB Output is correct
2 Correct 11 ms 18312 KB Output is correct
3 Correct 11 ms 18232 KB Output is correct
4 Correct 11 ms 18348 KB Output is correct
5 Correct 10 ms 18216 KB Output is correct
6 Correct 11 ms 18272 KB Output is correct
7 Correct 11 ms 18348 KB Output is correct
8 Correct 12 ms 18320 KB Output is correct
9 Correct 15 ms 18260 KB Output is correct
10 Correct 12 ms 18344 KB Output is correct
11 Correct 14 ms 18328 KB Output is correct
12 Correct 11 ms 18344 KB Output is correct
13 Correct 10 ms 18260 KB Output is correct
14 Correct 10 ms 18260 KB Output is correct
15 Correct 11 ms 18212 KB Output is correct
16 Correct 11 ms 18260 KB Output is correct
17 Correct 11 ms 18216 KB Output is correct
18 Correct 12 ms 18344 KB Output is correct
19 Correct 12 ms 18216 KB Output is correct
20 Correct 12 ms 18280 KB Output is correct
21 Correct 12 ms 18340 KB Output is correct
22 Correct 11 ms 18340 KB Output is correct
23 Correct 12 ms 18388 KB Output is correct
24 Correct 11 ms 18288 KB Output is correct
25 Correct 14 ms 18260 KB Output is correct
26 Correct 10 ms 18260 KB Output is correct
27 Correct 11 ms 18260 KB Output is correct
28 Correct 12 ms 18272 KB Output is correct
29 Correct 11 ms 18260 KB Output is correct
30 Correct 16 ms 18260 KB Output is correct
31 Correct 11 ms 18260 KB Output is correct
32 Correct 13 ms 18340 KB Output is correct
33 Correct 14 ms 18336 KB Output is correct
34 Correct 13 ms 18260 KB Output is correct
35 Correct 12 ms 18216 KB Output is correct
36 Correct 12 ms 18260 KB Output is correct
37 Correct 13 ms 18140 KB Output is correct
38 Correct 11 ms 18316 KB Output is correct
39 Correct 102 ms 30796 KB Output is correct
40 Correct 116 ms 31016 KB Output is correct
41 Correct 104 ms 30796 KB Output is correct
42 Correct 109 ms 30888 KB Output is correct
43 Correct 102 ms 30996 KB Output is correct
44 Correct 127 ms 30972 KB Output is correct
45 Correct 61 ms 28472 KB Output is correct
46 Correct 66 ms 28904 KB Output is correct
47 Correct 103 ms 30924 KB Output is correct
48 Correct 97 ms 30872 KB Output is correct
49 Correct 113 ms 30956 KB Output is correct
50 Correct 127 ms 30908 KB Output is correct
51 Correct 97 ms 29312 KB Output is correct
52 Correct 99 ms 30692 KB Output is correct
53 Correct 138 ms 30888 KB Output is correct
54 Correct 128 ms 31060 KB Output is correct
55 Correct 118 ms 29356 KB Output is correct
56 Correct 96 ms 28136 KB Output is correct
57 Correct 47 ms 27256 KB Output is correct
58 Correct 59 ms 28692 KB Output is correct
59 Correct 104 ms 30620 KB Output is correct
60 Correct 108 ms 30768 KB Output is correct
61 Correct 123 ms 30648 KB Output is correct
62 Correct 137 ms 30636 KB Output is correct
63 Correct 115 ms 30712 KB Output is correct
64 Correct 129 ms 30768 KB Output is correct
65 Correct 72 ms 29572 KB Output is correct
66 Correct 113 ms 30544 KB Output is correct
67 Correct 84 ms 27032 KB Output is correct
68 Correct 100 ms 28852 KB Output is correct
69 Correct 110 ms 30800 KB Output is correct
70 Correct 152 ms 30792 KB Output is correct
71 Correct 84 ms 28288 KB Output is correct
72 Correct 114 ms 31132 KB Output is correct
73 Correct 120 ms 29652 KB Output is correct
74 Correct 117 ms 30824 KB Output is correct
75 Correct 120 ms 31088 KB Output is correct
76 Correct 85 ms 27212 KB Output is correct
77 Correct 104 ms 29260 KB Output is correct
78 Correct 124 ms 31028 KB Output is correct
79 Correct 61 ms 28484 KB Output is correct
80 Correct 68 ms 27820 KB Output is correct
81 Correct 104 ms 30220 KB Output is correct
82 Correct 75 ms 26908 KB Output is correct
83 Correct 100 ms 30616 KB Output is correct
84 Correct 103 ms 30632 KB Output is correct
85 Correct 133 ms 29912 KB Output is correct
86 Correct 119 ms 31136 KB Output is correct
87 Correct 104 ms 29648 KB Output is correct
88 Correct 116 ms 31352 KB Output is correct
89 Correct 78 ms 26832 KB Output is correct
90 Correct 117 ms 31308 KB Output is correct
91 Correct 96 ms 28980 KB Output is correct
92 Correct 105 ms 28324 KB Output is correct
93 Correct 128 ms 31212 KB Output is correct
94 Correct 118 ms 31156 KB Output is correct
95 Correct 105 ms 30916 KB Output is correct
96 Correct 139 ms 31228 KB Output is correct
97 Correct 116 ms 31188 KB Output is correct
98 Correct 94 ms 29248 KB Output is correct
99 Correct 71 ms 30000 KB Output is correct
100 Correct 90 ms 28704 KB Output is correct
101 Correct 106 ms 31104 KB Output is correct
102 Correct 96 ms 31404 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 18192 KB Output is correct
2 Correct 11 ms 18312 KB Output is correct
3 Correct 11 ms 18232 KB Output is correct
4 Correct 11 ms 18348 KB Output is correct
5 Correct 10 ms 18216 KB Output is correct
6 Correct 11 ms 18272 KB Output is correct
7 Correct 11 ms 18348 KB Output is correct
8 Correct 12 ms 18320 KB Output is correct
9 Correct 15 ms 18260 KB Output is correct
10 Correct 12 ms 18344 KB Output is correct
11 Correct 14 ms 18328 KB Output is correct
12 Correct 11 ms 18344 KB Output is correct
13 Correct 10 ms 18260 KB Output is correct
14 Correct 10 ms 18260 KB Output is correct
15 Correct 11 ms 18212 KB Output is correct
16 Correct 11 ms 18260 KB Output is correct
17 Correct 11 ms 18216 KB Output is correct
18 Correct 12 ms 18344 KB Output is correct
19 Correct 12 ms 18216 KB Output is correct
20 Correct 12 ms 18280 KB Output is correct
21 Correct 12 ms 18340 KB Output is correct
22 Correct 11 ms 18340 KB Output is correct
23 Correct 12 ms 18388 KB Output is correct
24 Correct 11 ms 18288 KB Output is correct
25 Correct 14 ms 18260 KB Output is correct
26 Correct 10 ms 18260 KB Output is correct
27 Correct 11 ms 18260 KB Output is correct
28 Correct 12 ms 18272 KB Output is correct
29 Correct 11 ms 18260 KB Output is correct
30 Correct 16 ms 18260 KB Output is correct
31 Correct 11 ms 18260 KB Output is correct
32 Correct 13 ms 18340 KB Output is correct
33 Correct 14 ms 18336 KB Output is correct
34 Correct 13 ms 18260 KB Output is correct
35 Correct 12 ms 18216 KB Output is correct
36 Correct 12 ms 18260 KB Output is correct
37 Correct 13 ms 18140 KB Output is correct
38 Correct 11 ms 18316 KB Output is correct
39 Correct 102 ms 30796 KB Output is correct
40 Correct 116 ms 31016 KB Output is correct
41 Correct 104 ms 30796 KB Output is correct
42 Correct 109 ms 30888 KB Output is correct
43 Correct 102 ms 30996 KB Output is correct
44 Correct 127 ms 30972 KB Output is correct
45 Correct 61 ms 28472 KB Output is correct
46 Correct 66 ms 28904 KB Output is correct
47 Correct 103 ms 30924 KB Output is correct
48 Correct 97 ms 30872 KB Output is correct
49 Correct 113 ms 30956 KB Output is correct
50 Correct 127 ms 30908 KB Output is correct
51 Correct 97 ms 29312 KB Output is correct
52 Correct 99 ms 30692 KB Output is correct
53 Correct 138 ms 30888 KB Output is correct
54 Correct 128 ms 31060 KB Output is correct
55 Correct 489 ms 64468 KB Output is correct
56 Correct 395 ms 55232 KB Output is correct
57 Correct 536 ms 68796 KB Output is correct
58 Correct 371 ms 55072 KB Output is correct
59 Correct 366 ms 55764 KB Output is correct
60 Correct 510 ms 69292 KB Output is correct
61 Correct 226 ms 63900 KB Output is correct
62 Correct 230 ms 63708 KB Output is correct
63 Correct 542 ms 67900 KB Output is correct
64 Correct 553 ms 68052 KB Output is correct
65 Correct 497 ms 68536 KB Output is correct
66 Correct 497 ms 69020 KB Output is correct
67 Correct 514 ms 68748 KB Output is correct
68 Correct 557 ms 69108 KB Output is correct
69 Correct 531 ms 68940 KB Output is correct
70 Correct 554 ms 68944 KB Output is correct
71 Correct 533 ms 69020 KB Output is correct
72 Correct 510 ms 68780 KB Output is correct
73 Correct 535 ms 68984 KB Output is correct
74 Correct 540 ms 68864 KB Output is correct
75 Correct 509 ms 68924 KB Output is correct
76 Correct 542 ms 68964 KB Output is correct
77 Correct 549 ms 69044 KB Output is correct
78 Correct 506 ms 69020 KB Output is correct
79 Correct 443 ms 67592 KB Output is correct
80 Correct 462 ms 68576 KB Output is correct
81 Correct 426 ms 69484 KB Output is correct
82 Correct 118 ms 29356 KB Output is correct
83 Correct 96 ms 28136 KB Output is correct
84 Correct 47 ms 27256 KB Output is correct
85 Correct 59 ms 28692 KB Output is correct
86 Correct 104 ms 30620 KB Output is correct
87 Correct 108 ms 30768 KB Output is correct
88 Correct 123 ms 30648 KB Output is correct
89 Correct 137 ms 30636 KB Output is correct
90 Correct 115 ms 30712 KB Output is correct
91 Correct 129 ms 30768 KB Output is correct
92 Correct 72 ms 29572 KB Output is correct
93 Correct 113 ms 30544 KB Output is correct
94 Correct 84 ms 27032 KB Output is correct
95 Correct 100 ms 28852 KB Output is correct
96 Correct 110 ms 30800 KB Output is correct
97 Correct 152 ms 30792 KB Output is correct
98 Correct 84 ms 28288 KB Output is correct
99 Correct 114 ms 31132 KB Output is correct
100 Correct 120 ms 29652 KB Output is correct
101 Correct 117 ms 30824 KB Output is correct
102 Correct 120 ms 31088 KB Output is correct
103 Correct 85 ms 27212 KB Output is correct
104 Correct 104 ms 29260 KB Output is correct
105 Correct 124 ms 31028 KB Output is correct
106 Correct 61 ms 28484 KB Output is correct
107 Correct 68 ms 27820 KB Output is correct
108 Correct 104 ms 30220 KB Output is correct
109 Correct 75 ms 26908 KB Output is correct
110 Correct 100 ms 30616 KB Output is correct
111 Correct 103 ms 30632 KB Output is correct
112 Correct 133 ms 29912 KB Output is correct
113 Correct 119 ms 31136 KB Output is correct
114 Correct 104 ms 29648 KB Output is correct
115 Correct 116 ms 31352 KB Output is correct
116 Correct 78 ms 26832 KB Output is correct
117 Correct 117 ms 31308 KB Output is correct
118 Correct 96 ms 28980 KB Output is correct
119 Correct 105 ms 28324 KB Output is correct
120 Correct 128 ms 31212 KB Output is correct
121 Correct 118 ms 31156 KB Output is correct
122 Correct 105 ms 30916 KB Output is correct
123 Correct 139 ms 31228 KB Output is correct
124 Correct 116 ms 31188 KB Output is correct
125 Correct 94 ms 29248 KB Output is correct
126 Correct 71 ms 30000 KB Output is correct
127 Correct 90 ms 28704 KB Output is correct
128 Correct 106 ms 31104 KB Output is correct
129 Correct 96 ms 31404 KB Output is correct
130 Correct 541 ms 69248 KB Output is correct
131 Correct 378 ms 55300 KB Output is correct
132 Correct 541 ms 69424 KB Output is correct
133 Correct 576 ms 67692 KB Output is correct
134 Correct 452 ms 62240 KB Output is correct
135 Correct 547 ms 69980 KB Output is correct
136 Correct 536 ms 68756 KB Output is correct
137 Correct 534 ms 68744 KB Output is correct
138 Correct 514 ms 69176 KB Output is correct
139 Correct 560 ms 69760 KB Output is correct
140 Correct 545 ms 69260 KB Output is correct
141 Correct 528 ms 69696 KB Output is correct
142 Correct 553 ms 69580 KB Output is correct
143 Correct 571 ms 69700 KB Output is correct
144 Correct 530 ms 69604 KB Output is correct
145 Correct 503 ms 69716 KB Output is correct
146 Correct 537 ms 69476 KB Output is correct
147 Correct 607 ms 69588 KB Output is correct
148 Correct 641 ms 69588 KB Output is correct
149 Correct 526 ms 69588 KB Output is correct
150 Correct 281 ms 64864 KB Output is correct
151 Correct 454 ms 69300 KB Output is correct
152 Correct 455 ms 69172 KB Output is correct
153 Correct 412 ms 70344 KB Output is correct