답안 #1093902

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1093902 2024-09-28T04:23:47 Z emptypringlescan 푸드 코트 (JOI21_foodcourt) C++17
100 / 100
538 ms 91736 KB
#include <bits/stdc++.h>
using namespace std;
struct node{
	int s,e,m;
	long long sumneg,val,ppl,lazy;
	int col;
	node *l,*r;
	node(int S, int E){
		s=S; e=E; m=(s+e)/2;
		sumneg=val=ppl=lazy=0;
		col=-1;
		if(s!=e){
			l=new node(s,m);
			r=new node(m+1,e);
		}
	}
	void prop(){
		if(s==e) return;
		if(lazy){
			l->val+=lazy;
			l->lazy+=lazy;
			r->val+=lazy;
			r->lazy+=lazy;
			lazy=0;
		}
	}
	void radd(int S, int E, long long V){
		if(S<=s&&e<=E){
			val+=V;
			lazy+=V;
			return;
		}
		prop();
		if(E<=m) l->radd(S,E,V);
		else if(S>m) r->radd(S,E,V);
		else l->radd(S,m,V),r->radd(m+1,E,V);
		val=min(l->val,r->val);
	}
	void sneg(int S, long long V){
		if(s==e){
			sumneg=V;
			return;
		}
		prop();
		if(S<=m) l->sneg(S,V);
		else r->sneg(S,V);
		sumneg=l->sumneg+r->sumneg;
	}
	void sppl(int S, long long V, int C){
		if(s==e){
			ppl=V;
			col=C;
			return;
		}
		prop();
		if(S<=m) l->sppl(S,V,C);
		else r->sppl(S,V,C);
		ppl=l->ppl+r->ppl;
	}
	long long qval(int S, int E){
		if(S<=s&&e<=E) return val;
		prop();
		if(E<=m) return l->qval(S,E);
		else if(S>m) return r->qval(S,E);
		else return min(l->qval(S,m),r->qval(m+1,E));
	}
	long long qsum(int S, int E){
		if(S<=s&&e<=E) return sumneg;
		prop();
		if(E<=m) return l->qsum(S,E);
		else if(S>m) return r->qsum(S,E);
		else return l->qsum(S,m)+r->qsum(m+1,E);
	}
	pair<int,int> bsta(long long V){
		if(s==e){
			//assert(V<=ppl||ppl==0);
			return {s,col};
		}
		prop();
		if(l->ppl>=V) return l->bsta(V);
		else return r->bsta(V-l->ppl);
	}
} *root;
int32_t main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n,m,q;
    cin >> n >> m >> q;
    long long ans[q];
    memset(ans,-1,sizeof(ans));
    vector<pair<int,pair<long long,int> > > st[n+5],en[n+5];
    vector<pair<int,long long> > st2[n+5],en2[n+5];
    vector<pair<int,long long> > qu[n+5];
    root=new node(0,q);
    for(int i=0; i<q; i++){
		int cmd;
		cin >> cmd;
		if(cmd==1){
			int l,r,c;
			long long k;
			cin >> l >> r >> c >> k;
			st[l].push_back({i,{k,c}});
			en[r].push_back({i,{k,c}});
		}
		else if(cmd==2){
			int l,r;
			long long k;
			cin >> l >> r >> k;
			st2[l].push_back({i,k});
			en2[r].push_back({i,k});
		}
		else{
			int a;
			long long b;
			cin >> a >> b;
			qu[a].push_back({i,b});
		}
	}
	for(int i=1; i<=n; i++){
		for(auto [x,y]:st[i]){
			root->sppl(x,y.first,y.second);
			root->radd(x,q,y.first);
		}
		for(auto [x,y]:st2[i]){
			root->sneg(x,y);
			root->radd(x,q,-y);
		}
		for(auto [x,y]:qu[i]){
			//cout << "hi";
			long long smol=root->qval(0,x);
			//cout << smol << ' ';
			long long off=root->qsum(0,x)+y;
			//cout << off << ' ';
			if(smol<0) off+=smol;
			pair<int,int> yey=root->bsta(off);
			//cout << yey.first << ',' << yey.second << ' ';
			if(yey.first>x) ans[x]=0;
			else ans[x]=yey.second;
			//cout << ans[x] << '\n';
		}
		for(auto [x,y]:en[i]){
			root->sppl(x,0,-1);
			root->radd(x,q,-y.first);
		}
		for(auto [x,y]:en2[i]){
			root->sneg(x,0);
			root->radd(x,q,y);
		}
	}
	for(int i=0; i<q; i++) if(ans[i]!=-1) cout << ans[i] << '\n';
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 856 KB Output is correct
2 Correct 2 ms 1112 KB Output is correct
3 Correct 2 ms 860 KB Output is correct
4 Correct 2 ms 1116 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 1 ms 604 KB Output is correct
7 Correct 2 ms 1116 KB Output is correct
8 Correct 2 ms 1116 KB Output is correct
9 Correct 2 ms 1116 KB Output is correct
10 Correct 2 ms 980 KB Output is correct
11 Correct 2 ms 1116 KB Output is correct
12 Correct 2 ms 1116 KB Output is correct
13 Correct 2 ms 860 KB Output is correct
14 Correct 1 ms 1116 KB Output is correct
15 Correct 1 ms 980 KB Output is correct
16 Correct 2 ms 1116 KB Output is correct
17 Correct 2 ms 860 KB Output is correct
18 Correct 2 ms 1116 KB Output is correct
19 Correct 2 ms 860 KB Output is correct
20 Correct 2 ms 1116 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 856 KB Output is correct
2 Correct 2 ms 1112 KB Output is correct
3 Correct 2 ms 860 KB Output is correct
4 Correct 2 ms 1116 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 1 ms 604 KB Output is correct
7 Correct 2 ms 1116 KB Output is correct
8 Correct 2 ms 1116 KB Output is correct
9 Correct 2 ms 1116 KB Output is correct
10 Correct 2 ms 980 KB Output is correct
11 Correct 2 ms 1116 KB Output is correct
12 Correct 2 ms 1116 KB Output is correct
13 Correct 2 ms 860 KB Output is correct
14 Correct 1 ms 1116 KB Output is correct
15 Correct 1 ms 980 KB Output is correct
16 Correct 2 ms 1116 KB Output is correct
17 Correct 2 ms 860 KB Output is correct
18 Correct 2 ms 1116 KB Output is correct
19 Correct 2 ms 860 KB Output is correct
20 Correct 2 ms 1116 KB Output is correct
21 Correct 2 ms 1116 KB Output is correct
22 Correct 2 ms 1116 KB Output is correct
23 Correct 2 ms 856 KB Output is correct
24 Correct 2 ms 1116 KB Output is correct
25 Correct 1 ms 860 KB Output is correct
26 Correct 2 ms 860 KB Output is correct
27 Correct 2 ms 1044 KB Output is correct
28 Correct 2 ms 1116 KB Output is correct
29 Correct 2 ms 1104 KB Output is correct
30 Correct 2 ms 1116 KB Output is correct
31 Correct 2 ms 1116 KB Output is correct
32 Correct 2 ms 1116 KB Output is correct
33 Correct 3 ms 856 KB Output is correct
34 Correct 2 ms 1116 KB Output is correct
35 Correct 2 ms 1084 KB Output is correct
36 Correct 2 ms 1116 KB Output is correct
37 Correct 1 ms 860 KB Output is correct
38 Correct 2 ms 1120 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 78 ms 23132 KB Output is correct
2 Correct 80 ms 23384 KB Output is correct
3 Correct 76 ms 23116 KB Output is correct
4 Correct 75 ms 23080 KB Output is correct
5 Correct 79 ms 23380 KB Output is correct
6 Correct 77 ms 23480 KB Output is correct
7 Correct 36 ms 13368 KB Output is correct
8 Correct 40 ms 13744 KB Output is correct
9 Correct 75 ms 23380 KB Output is correct
10 Correct 100 ms 23404 KB Output is correct
11 Correct 76 ms 23344 KB Output is correct
12 Correct 80 ms 23380 KB Output is correct
13 Correct 62 ms 19284 KB Output is correct
14 Correct 70 ms 23112 KB Output is correct
15 Correct 75 ms 21284 KB Output is correct
16 Correct 78 ms 23888 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 439 ms 81380 KB Output is correct
2 Correct 328 ms 66836 KB Output is correct
3 Correct 538 ms 89424 KB Output is correct
4 Correct 362 ms 73300 KB Output is correct
5 Correct 340 ms 67316 KB Output is correct
6 Correct 499 ms 90708 KB Output is correct
7 Correct 189 ms 54144 KB Output is correct
8 Correct 197 ms 54688 KB Output is correct
9 Correct 453 ms 88660 KB Output is correct
10 Correct 453 ms 88620 KB Output is correct
11 Correct 491 ms 89996 KB Output is correct
12 Correct 514 ms 90060 KB Output is correct
13 Correct 533 ms 90012 KB Output is correct
14 Correct 501 ms 89940 KB Output is correct
15 Correct 501 ms 89940 KB Output is correct
16 Correct 485 ms 89936 KB Output is correct
17 Correct 456 ms 89940 KB Output is correct
18 Correct 463 ms 90012 KB Output is correct
19 Correct 471 ms 89984 KB Output is correct
20 Correct 470 ms 89936 KB Output is correct
21 Correct 513 ms 89940 KB Output is correct
22 Correct 499 ms 89940 KB Output is correct
23 Correct 503 ms 90024 KB Output is correct
24 Correct 501 ms 90056 KB Output is correct
25 Correct 388 ms 82464 KB Output is correct
26 Correct 410 ms 90296 KB Output is correct
27 Correct 339 ms 90960 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 856 KB Output is correct
2 Correct 2 ms 1112 KB Output is correct
3 Correct 2 ms 860 KB Output is correct
4 Correct 2 ms 1116 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 1 ms 604 KB Output is correct
7 Correct 2 ms 1116 KB Output is correct
8 Correct 2 ms 1116 KB Output is correct
9 Correct 2 ms 1116 KB Output is correct
10 Correct 2 ms 980 KB Output is correct
11 Correct 2 ms 1116 KB Output is correct
12 Correct 2 ms 1116 KB Output is correct
13 Correct 2 ms 860 KB Output is correct
14 Correct 1 ms 1116 KB Output is correct
15 Correct 1 ms 980 KB Output is correct
16 Correct 2 ms 1116 KB Output is correct
17 Correct 2 ms 860 KB Output is correct
18 Correct 2 ms 1116 KB Output is correct
19 Correct 2 ms 860 KB Output is correct
20 Correct 2 ms 1116 KB Output is correct
21 Correct 78 ms 23132 KB Output is correct
22 Correct 80 ms 23384 KB Output is correct
23 Correct 76 ms 23116 KB Output is correct
24 Correct 75 ms 23080 KB Output is correct
25 Correct 79 ms 23380 KB Output is correct
26 Correct 77 ms 23480 KB Output is correct
27 Correct 36 ms 13368 KB Output is correct
28 Correct 40 ms 13744 KB Output is correct
29 Correct 75 ms 23380 KB Output is correct
30 Correct 100 ms 23404 KB Output is correct
31 Correct 76 ms 23344 KB Output is correct
32 Correct 80 ms 23380 KB Output is correct
33 Correct 62 ms 19284 KB Output is correct
34 Correct 70 ms 23112 KB Output is correct
35 Correct 75 ms 21284 KB Output is correct
36 Correct 78 ms 23888 KB Output is correct
37 Correct 78 ms 20748 KB Output is correct
38 Correct 71 ms 19372 KB Output is correct
39 Correct 32 ms 11632 KB Output is correct
40 Correct 39 ms 13640 KB Output is correct
41 Correct 82 ms 23120 KB Output is correct
42 Correct 85 ms 23120 KB Output is correct
43 Correct 98 ms 23208 KB Output is correct
44 Correct 84 ms 23228 KB Output is correct
45 Correct 84 ms 23120 KB Output is correct
46 Correct 85 ms 23124 KB Output is correct
47 Correct 55 ms 22004 KB Output is correct
48 Correct 79 ms 23284 KB Output is correct
49 Correct 60 ms 16496 KB Output is correct
50 Correct 71 ms 20816 KB Output is correct
51 Correct 85 ms 23380 KB Output is correct
52 Correct 88 ms 23124 KB Output is correct
53 Correct 65 ms 19288 KB Output is correct
54 Correct 80 ms 23900 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 71 ms 21584 KB Output is correct
2 Correct 92 ms 21844 KB Output is correct
3 Correct 86 ms 23380 KB Output is correct
4 Correct 55 ms 18448 KB Output is correct
5 Correct 71 ms 21328 KB Output is correct
6 Correct 81 ms 23388 KB Output is correct
7 Correct 40 ms 13104 KB Output is correct
8 Correct 37 ms 12468 KB Output is correct
9 Correct 73 ms 22764 KB Output is correct
10 Correct 50 ms 18172 KB Output is correct
11 Correct 77 ms 23380 KB Output is correct
12 Correct 75 ms 23388 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 856 KB Output is correct
2 Correct 2 ms 1112 KB Output is correct
3 Correct 2 ms 860 KB Output is correct
4 Correct 2 ms 1116 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 1 ms 604 KB Output is correct
7 Correct 2 ms 1116 KB Output is correct
8 Correct 2 ms 1116 KB Output is correct
9 Correct 2 ms 1116 KB Output is correct
10 Correct 2 ms 980 KB Output is correct
11 Correct 2 ms 1116 KB Output is correct
12 Correct 2 ms 1116 KB Output is correct
13 Correct 2 ms 860 KB Output is correct
14 Correct 1 ms 1116 KB Output is correct
15 Correct 1 ms 980 KB Output is correct
16 Correct 2 ms 1116 KB Output is correct
17 Correct 2 ms 860 KB Output is correct
18 Correct 2 ms 1116 KB Output is correct
19 Correct 2 ms 860 KB Output is correct
20 Correct 2 ms 1116 KB Output is correct
21 Correct 2 ms 1116 KB Output is correct
22 Correct 2 ms 1116 KB Output is correct
23 Correct 2 ms 856 KB Output is correct
24 Correct 2 ms 1116 KB Output is correct
25 Correct 1 ms 860 KB Output is correct
26 Correct 2 ms 860 KB Output is correct
27 Correct 2 ms 1044 KB Output is correct
28 Correct 2 ms 1116 KB Output is correct
29 Correct 2 ms 1104 KB Output is correct
30 Correct 2 ms 1116 KB Output is correct
31 Correct 2 ms 1116 KB Output is correct
32 Correct 2 ms 1116 KB Output is correct
33 Correct 3 ms 856 KB Output is correct
34 Correct 2 ms 1116 KB Output is correct
35 Correct 2 ms 1084 KB Output is correct
36 Correct 2 ms 1116 KB Output is correct
37 Correct 1 ms 860 KB Output is correct
38 Correct 2 ms 1120 KB Output is correct
39 Correct 78 ms 23132 KB Output is correct
40 Correct 80 ms 23384 KB Output is correct
41 Correct 76 ms 23116 KB Output is correct
42 Correct 75 ms 23080 KB Output is correct
43 Correct 79 ms 23380 KB Output is correct
44 Correct 77 ms 23480 KB Output is correct
45 Correct 36 ms 13368 KB Output is correct
46 Correct 40 ms 13744 KB Output is correct
47 Correct 75 ms 23380 KB Output is correct
48 Correct 100 ms 23404 KB Output is correct
49 Correct 76 ms 23344 KB Output is correct
50 Correct 80 ms 23380 KB Output is correct
51 Correct 62 ms 19284 KB Output is correct
52 Correct 70 ms 23112 KB Output is correct
53 Correct 75 ms 21284 KB Output is correct
54 Correct 78 ms 23888 KB Output is correct
55 Correct 78 ms 20748 KB Output is correct
56 Correct 71 ms 19372 KB Output is correct
57 Correct 32 ms 11632 KB Output is correct
58 Correct 39 ms 13640 KB Output is correct
59 Correct 82 ms 23120 KB Output is correct
60 Correct 85 ms 23120 KB Output is correct
61 Correct 98 ms 23208 KB Output is correct
62 Correct 84 ms 23228 KB Output is correct
63 Correct 84 ms 23120 KB Output is correct
64 Correct 85 ms 23124 KB Output is correct
65 Correct 55 ms 22004 KB Output is correct
66 Correct 79 ms 23284 KB Output is correct
67 Correct 60 ms 16496 KB Output is correct
68 Correct 71 ms 20816 KB Output is correct
69 Correct 85 ms 23380 KB Output is correct
70 Correct 88 ms 23124 KB Output is correct
71 Correct 65 ms 19288 KB Output is correct
72 Correct 80 ms 23900 KB Output is correct
73 Correct 71 ms 21584 KB Output is correct
74 Correct 92 ms 21844 KB Output is correct
75 Correct 86 ms 23380 KB Output is correct
76 Correct 55 ms 18448 KB Output is correct
77 Correct 71 ms 21328 KB Output is correct
78 Correct 81 ms 23388 KB Output is correct
79 Correct 40 ms 13104 KB Output is correct
80 Correct 37 ms 12468 KB Output is correct
81 Correct 73 ms 22764 KB Output is correct
82 Correct 50 ms 18172 KB Output is correct
83 Correct 77 ms 23380 KB Output is correct
84 Correct 75 ms 23388 KB Output is correct
85 Correct 85 ms 20564 KB Output is correct
86 Correct 84 ms 23632 KB Output is correct
87 Correct 74 ms 21332 KB Output is correct
88 Correct 84 ms 23888 KB Output is correct
89 Correct 52 ms 17024 KB Output is correct
90 Correct 84 ms 23632 KB Output is correct
91 Correct 65 ms 18388 KB Output is correct
92 Correct 65 ms 17756 KB Output is correct
93 Correct 83 ms 23636 KB Output is correct
94 Correct 86 ms 23636 KB Output is correct
95 Correct 88 ms 22824 KB Output is correct
96 Correct 86 ms 23636 KB Output is correct
97 Correct 82 ms 23772 KB Output is correct
98 Correct 70 ms 19284 KB Output is correct
99 Correct 55 ms 22628 KB Output is correct
100 Correct 59 ms 20060 KB Output is correct
101 Correct 75 ms 23872 KB Output is correct
102 Correct 69 ms 24076 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 856 KB Output is correct
2 Correct 2 ms 1112 KB Output is correct
3 Correct 2 ms 860 KB Output is correct
4 Correct 2 ms 1116 KB Output is correct
5 Correct 1 ms 860 KB Output is correct
6 Correct 1 ms 604 KB Output is correct
7 Correct 2 ms 1116 KB Output is correct
8 Correct 2 ms 1116 KB Output is correct
9 Correct 2 ms 1116 KB Output is correct
10 Correct 2 ms 980 KB Output is correct
11 Correct 2 ms 1116 KB Output is correct
12 Correct 2 ms 1116 KB Output is correct
13 Correct 2 ms 860 KB Output is correct
14 Correct 1 ms 1116 KB Output is correct
15 Correct 1 ms 980 KB Output is correct
16 Correct 2 ms 1116 KB Output is correct
17 Correct 2 ms 860 KB Output is correct
18 Correct 2 ms 1116 KB Output is correct
19 Correct 2 ms 860 KB Output is correct
20 Correct 2 ms 1116 KB Output is correct
21 Correct 2 ms 1116 KB Output is correct
22 Correct 2 ms 1116 KB Output is correct
23 Correct 2 ms 856 KB Output is correct
24 Correct 2 ms 1116 KB Output is correct
25 Correct 1 ms 860 KB Output is correct
26 Correct 2 ms 860 KB Output is correct
27 Correct 2 ms 1044 KB Output is correct
28 Correct 2 ms 1116 KB Output is correct
29 Correct 2 ms 1104 KB Output is correct
30 Correct 2 ms 1116 KB Output is correct
31 Correct 2 ms 1116 KB Output is correct
32 Correct 2 ms 1116 KB Output is correct
33 Correct 3 ms 856 KB Output is correct
34 Correct 2 ms 1116 KB Output is correct
35 Correct 2 ms 1084 KB Output is correct
36 Correct 2 ms 1116 KB Output is correct
37 Correct 1 ms 860 KB Output is correct
38 Correct 2 ms 1120 KB Output is correct
39 Correct 78 ms 23132 KB Output is correct
40 Correct 80 ms 23384 KB Output is correct
41 Correct 76 ms 23116 KB Output is correct
42 Correct 75 ms 23080 KB Output is correct
43 Correct 79 ms 23380 KB Output is correct
44 Correct 77 ms 23480 KB Output is correct
45 Correct 36 ms 13368 KB Output is correct
46 Correct 40 ms 13744 KB Output is correct
47 Correct 75 ms 23380 KB Output is correct
48 Correct 100 ms 23404 KB Output is correct
49 Correct 76 ms 23344 KB Output is correct
50 Correct 80 ms 23380 KB Output is correct
51 Correct 62 ms 19284 KB Output is correct
52 Correct 70 ms 23112 KB Output is correct
53 Correct 75 ms 21284 KB Output is correct
54 Correct 78 ms 23888 KB Output is correct
55 Correct 439 ms 81380 KB Output is correct
56 Correct 328 ms 66836 KB Output is correct
57 Correct 538 ms 89424 KB Output is correct
58 Correct 362 ms 73300 KB Output is correct
59 Correct 340 ms 67316 KB Output is correct
60 Correct 499 ms 90708 KB Output is correct
61 Correct 189 ms 54144 KB Output is correct
62 Correct 197 ms 54688 KB Output is correct
63 Correct 453 ms 88660 KB Output is correct
64 Correct 453 ms 88620 KB Output is correct
65 Correct 491 ms 89996 KB Output is correct
66 Correct 514 ms 90060 KB Output is correct
67 Correct 533 ms 90012 KB Output is correct
68 Correct 501 ms 89940 KB Output is correct
69 Correct 501 ms 89940 KB Output is correct
70 Correct 485 ms 89936 KB Output is correct
71 Correct 456 ms 89940 KB Output is correct
72 Correct 463 ms 90012 KB Output is correct
73 Correct 471 ms 89984 KB Output is correct
74 Correct 470 ms 89936 KB Output is correct
75 Correct 513 ms 89940 KB Output is correct
76 Correct 499 ms 89940 KB Output is correct
77 Correct 503 ms 90024 KB Output is correct
78 Correct 501 ms 90056 KB Output is correct
79 Correct 388 ms 82464 KB Output is correct
80 Correct 410 ms 90296 KB Output is correct
81 Correct 339 ms 90960 KB Output is correct
82 Correct 78 ms 20748 KB Output is correct
83 Correct 71 ms 19372 KB Output is correct
84 Correct 32 ms 11632 KB Output is correct
85 Correct 39 ms 13640 KB Output is correct
86 Correct 82 ms 23120 KB Output is correct
87 Correct 85 ms 23120 KB Output is correct
88 Correct 98 ms 23208 KB Output is correct
89 Correct 84 ms 23228 KB Output is correct
90 Correct 84 ms 23120 KB Output is correct
91 Correct 85 ms 23124 KB Output is correct
92 Correct 55 ms 22004 KB Output is correct
93 Correct 79 ms 23284 KB Output is correct
94 Correct 60 ms 16496 KB Output is correct
95 Correct 71 ms 20816 KB Output is correct
96 Correct 85 ms 23380 KB Output is correct
97 Correct 88 ms 23124 KB Output is correct
98 Correct 65 ms 19288 KB Output is correct
99 Correct 80 ms 23900 KB Output is correct
100 Correct 71 ms 21584 KB Output is correct
101 Correct 92 ms 21844 KB Output is correct
102 Correct 86 ms 23380 KB Output is correct
103 Correct 55 ms 18448 KB Output is correct
104 Correct 71 ms 21328 KB Output is correct
105 Correct 81 ms 23388 KB Output is correct
106 Correct 40 ms 13104 KB Output is correct
107 Correct 37 ms 12468 KB Output is correct
108 Correct 73 ms 22764 KB Output is correct
109 Correct 50 ms 18172 KB Output is correct
110 Correct 77 ms 23380 KB Output is correct
111 Correct 75 ms 23388 KB Output is correct
112 Correct 85 ms 20564 KB Output is correct
113 Correct 84 ms 23632 KB Output is correct
114 Correct 74 ms 21332 KB Output is correct
115 Correct 84 ms 23888 KB Output is correct
116 Correct 52 ms 17024 KB Output is correct
117 Correct 84 ms 23632 KB Output is correct
118 Correct 65 ms 18388 KB Output is correct
119 Correct 65 ms 17756 KB Output is correct
120 Correct 83 ms 23636 KB Output is correct
121 Correct 86 ms 23636 KB Output is correct
122 Correct 88 ms 22824 KB Output is correct
123 Correct 86 ms 23636 KB Output is correct
124 Correct 82 ms 23772 KB Output is correct
125 Correct 70 ms 19284 KB Output is correct
126 Correct 55 ms 22628 KB Output is correct
127 Correct 59 ms 20060 KB Output is correct
128 Correct 75 ms 23872 KB Output is correct
129 Correct 69 ms 24076 KB Output is correct
130 Correct 516 ms 89172 KB Output is correct
131 Correct 341 ms 65900 KB Output is correct
132 Correct 517 ms 89940 KB Output is correct
133 Correct 467 ms 87376 KB Output is correct
134 Correct 415 ms 80820 KB Output is correct
135 Correct 509 ms 91488 KB Output is correct
136 Correct 465 ms 89720 KB Output is correct
137 Correct 471 ms 89660 KB Output is correct
138 Correct 536 ms 90712 KB Output is correct
139 Correct 489 ms 90708 KB Output is correct
140 Correct 498 ms 90708 KB Output is correct
141 Correct 501 ms 90536 KB Output is correct
142 Correct 496 ms 90452 KB Output is correct
143 Correct 519 ms 90604 KB Output is correct
144 Correct 491 ms 90696 KB Output is correct
145 Correct 511 ms 90680 KB Output is correct
146 Correct 509 ms 90700 KB Output is correct
147 Correct 461 ms 90660 KB Output is correct
148 Correct 468 ms 90632 KB Output is correct
149 Correct 480 ms 90708 KB Output is correct
150 Correct 260 ms 85712 KB Output is correct
151 Correct 388 ms 90708 KB Output is correct
152 Correct 403 ms 91020 KB Output is correct
153 Correct 366 ms 91736 KB Output is correct