Submission #949915

# Submission time Handle Problem Language Result Execution time Memory
949915 2024-03-19T22:14:11 Z amirhoseinfar1385 Food Court (JOI21_foodcourt) C++17
100 / 100
626 ms 60200 KB
#include<bits/stdc++.h>
using namespace std;
const long long maxn=250000+10;
long long n,m,q,res[maxn],kaf=(1<<18);
struct que{
	long long l,r,t,k,c;
}allq[maxn];
struct node{
	long long summanf,begol,kamkon;
	node(){
		summanf=begol=kamkon=0;
	}
}fakenode;
struct segment{
	node seg[(1<<19)];
	node merge(node a,node b){
		node ret;
		ret.summanf=a.summanf+b.summanf;
		ret.begol=b.begol+max(0ll,a.begol-b.kamkon);
		ret.kamkon=a.kamkon+max(0ll,b.kamkon-a.begol);
		return ret;
	}
	void ins(long long i){
		long long fu=i;
		i+=kaf;
		if(allq[fu].t==1){
			seg[i].begol=allq[fu].k;
		}else{
			seg[i].summanf=seg[i].kamkon=allq[fu].k;
		}
		i>>=1;
		while(i>0){
			seg[i]=merge(seg[(i<<1)],seg[(i<<1)^1]);
			i>>=1;
		}
	}
	void reset(long long i){
		long long fu=i;
		i+=kaf;
		seg[i].summanf=seg[i].kamkon=seg[i].begol=0;
		i>>=1;
		while(i>0){
			seg[i]=merge(seg[(i<<1)],seg[(i<<1)^1]);
			i>>=1;
		}
	}
	node pors(long long i,long long l,long long r,long long tl,long long tr){
		if(l>r||l>tr||r<tl||tl>tr){
			return fakenode;
		}
		if(l>=tl&&r<=tr){
			return seg[i];
		}
		long long m=(l+r)>>1;
		return merge(pors((i<<1),l,m,tl,tr),pors((i<<1)^1,m+1,r,tl,tr));
	}
}seg;
vector<long long>ins[maxn],del[maxn],por[maxn];

void vorod(){
	cin>>n>>m>>q;
	for(long long i=1;i<=q;i++){
		cin>>allq[i].t;
		if(allq[i].t==1){
			cin>>allq[i].l>>allq[i].r>>allq[i].c>>allq[i].k;
		}else if(allq[i].t==2){
			cin>>allq[i].l>>allq[i].r>>allq[i].k;
		}else{
			cin>>allq[i].l>>allq[i].k;
		}
	}
}

void pre(){
	for(long long i=1;i<=q;i++){
		if(allq[i].t==1){
			ins[allq[i].l].push_back(i);
			del[allq[i].r+1].push_back(i);
		}else if(allq[i].t==2){
			ins[allq[i].l].push_back(i);
			del[allq[i].r+1].push_back(i);
		}else{
			por[allq[i].l].push_back(i);
		}
	}
}

void pors(long long ind){
	node unnow=seg.pors(1,0,kaf-1,0,ind);
	//cout<<"wtf: "<<ind<<" "<<unnow.begol<<" "<<unnow.kamkon<<endl;
	if(unnow.begol<allq[ind].k){
		res[ind]=0;
		return ;
	}
	node fake=unnow;
	long long low=-1,high=ind,mid;
	while(high-low>1){
		mid=(high+low)>>1;
		unnow=seg.pors(1,0,kaf-1,0,mid);
		if(unnow.begol-(fake.summanf-unnow.summanf)>=allq[ind].k){
			high=mid;
		}else{
			low=mid;
		}
	}
	res[ind]=allq[high].c;
}

void solve(){
	for(long long i=1;i<=n;i++){
		for(auto x:del[i]){
			seg.reset(x);
		}
		for(auto x:ins[i]){
			seg.ins(x);
		}
		for(auto x:por[i]){
			pors(x);
		}
	}	
}

void khor(){
	for(long long i=1;i<=q;i++){
		if(allq[i].t==3){
			cout<<res[i]<<"\n";
		}
	}
}

int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	//freopen("inp.txt","r",stdin);
	vorod();
	pre();
	solve();
	khor();
}

Compilation message

foodcourt.cpp: In member function 'void segment::reset(long long int)':
foodcourt.cpp:38:13: warning: unused variable 'fu' [-Wunused-variable]
   38 |   long long fu=i;
      |             ^~
# Verdict Execution time Memory Grader output
1 Correct 11 ms 33372 KB Output is correct
2 Correct 11 ms 33428 KB Output is correct
3 Correct 9 ms 33368 KB Output is correct
4 Correct 9 ms 33472 KB Output is correct
5 Correct 9 ms 33536 KB Output is correct
6 Correct 7 ms 33372 KB Output is correct
7 Correct 8 ms 33372 KB Output is correct
8 Correct 8 ms 33368 KB Output is correct
9 Correct 8 ms 33372 KB Output is correct
10 Correct 8 ms 33372 KB Output is correct
11 Correct 8 ms 33372 KB Output is correct
12 Correct 8 ms 33372 KB Output is correct
13 Correct 8 ms 33372 KB Output is correct
14 Correct 8 ms 33536 KB Output is correct
15 Correct 8 ms 33372 KB Output is correct
16 Correct 8 ms 33372 KB Output is correct
17 Correct 7 ms 33372 KB Output is correct
18 Correct 8 ms 33372 KB Output is correct
19 Correct 9 ms 33372 KB Output is correct
20 Correct 8 ms 33372 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 11 ms 33372 KB Output is correct
2 Correct 11 ms 33428 KB Output is correct
3 Correct 9 ms 33368 KB Output is correct
4 Correct 9 ms 33472 KB Output is correct
5 Correct 9 ms 33536 KB Output is correct
6 Correct 7 ms 33372 KB Output is correct
7 Correct 8 ms 33372 KB Output is correct
8 Correct 8 ms 33368 KB Output is correct
9 Correct 8 ms 33372 KB Output is correct
10 Correct 8 ms 33372 KB Output is correct
11 Correct 8 ms 33372 KB Output is correct
12 Correct 8 ms 33372 KB Output is correct
13 Correct 8 ms 33372 KB Output is correct
14 Correct 8 ms 33536 KB Output is correct
15 Correct 8 ms 33372 KB Output is correct
16 Correct 8 ms 33372 KB Output is correct
17 Correct 7 ms 33372 KB Output is correct
18 Correct 8 ms 33372 KB Output is correct
19 Correct 9 ms 33372 KB Output is correct
20 Correct 8 ms 33372 KB Output is correct
21 Correct 10 ms 33372 KB Output is correct
22 Correct 11 ms 33372 KB Output is correct
23 Correct 8 ms 33432 KB Output is correct
24 Correct 8 ms 33372 KB Output is correct
25 Correct 7 ms 33456 KB Output is correct
26 Correct 8 ms 33624 KB Output is correct
27 Correct 8 ms 33372 KB Output is correct
28 Correct 8 ms 33372 KB Output is correct
29 Correct 8 ms 33372 KB Output is correct
30 Correct 8 ms 33372 KB Output is correct
31 Correct 8 ms 33372 KB Output is correct
32 Correct 10 ms 33372 KB Output is correct
33 Correct 7 ms 33372 KB Output is correct
34 Correct 8 ms 33368 KB Output is correct
35 Correct 7 ms 33372 KB Output is correct
36 Correct 8 ms 33368 KB Output is correct
37 Correct 7 ms 33372 KB Output is correct
38 Correct 9 ms 33496 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 49 ms 37972 KB Output is correct
2 Correct 53 ms 37972 KB Output is correct
3 Correct 61 ms 37980 KB Output is correct
4 Correct 46 ms 37956 KB Output is correct
5 Correct 48 ms 38112 KB Output is correct
6 Correct 48 ms 37980 KB Output is correct
7 Correct 41 ms 36400 KB Output is correct
8 Correct 45 ms 36552 KB Output is correct
9 Correct 46 ms 37968 KB Output is correct
10 Correct 46 ms 38140 KB Output is correct
11 Correct 46 ms 38076 KB Output is correct
12 Correct 49 ms 37980 KB Output is correct
13 Correct 51 ms 37716 KB Output is correct
14 Correct 61 ms 37968 KB Output is correct
15 Correct 43 ms 37724 KB Output is correct
16 Correct 48 ms 37976 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 430 ms 50876 KB Output is correct
2 Correct 341 ms 46676 KB Output is correct
3 Correct 465 ms 51912 KB Output is correct
4 Correct 286 ms 46932 KB Output is correct
5 Correct 276 ms 48720 KB Output is correct
6 Correct 432 ms 51536 KB Output is correct
7 Correct 253 ms 46360 KB Output is correct
8 Correct 267 ms 46604 KB Output is correct
9 Correct 626 ms 51140 KB Output is correct
10 Correct 557 ms 57064 KB Output is correct
11 Correct 434 ms 57760 KB Output is correct
12 Correct 398 ms 57648 KB Output is correct
13 Correct 384 ms 57424 KB Output is correct
14 Correct 445 ms 57496 KB Output is correct
15 Correct 406 ms 57524 KB Output is correct
16 Correct 456 ms 57424 KB Output is correct
17 Correct 414 ms 57408 KB Output is correct
18 Correct 401 ms 57684 KB Output is correct
19 Correct 458 ms 57492 KB Output is correct
20 Correct 413 ms 57712 KB Output is correct
21 Correct 425 ms 57440 KB Output is correct
22 Correct 432 ms 57376 KB Output is correct
23 Correct 408 ms 57808 KB Output is correct
24 Correct 435 ms 57404 KB Output is correct
25 Correct 377 ms 54308 KB Output is correct
26 Correct 470 ms 54944 KB Output is correct
27 Correct 304 ms 59220 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 11 ms 33372 KB Output is correct
2 Correct 11 ms 33428 KB Output is correct
3 Correct 9 ms 33368 KB Output is correct
4 Correct 9 ms 33472 KB Output is correct
5 Correct 9 ms 33536 KB Output is correct
6 Correct 7 ms 33372 KB Output is correct
7 Correct 8 ms 33372 KB Output is correct
8 Correct 8 ms 33368 KB Output is correct
9 Correct 8 ms 33372 KB Output is correct
10 Correct 8 ms 33372 KB Output is correct
11 Correct 8 ms 33372 KB Output is correct
12 Correct 8 ms 33372 KB Output is correct
13 Correct 8 ms 33372 KB Output is correct
14 Correct 8 ms 33536 KB Output is correct
15 Correct 8 ms 33372 KB Output is correct
16 Correct 8 ms 33372 KB Output is correct
17 Correct 7 ms 33372 KB Output is correct
18 Correct 8 ms 33372 KB Output is correct
19 Correct 9 ms 33372 KB Output is correct
20 Correct 8 ms 33372 KB Output is correct
21 Correct 49 ms 37972 KB Output is correct
22 Correct 53 ms 37972 KB Output is correct
23 Correct 61 ms 37980 KB Output is correct
24 Correct 46 ms 37956 KB Output is correct
25 Correct 48 ms 38112 KB Output is correct
26 Correct 48 ms 37980 KB Output is correct
27 Correct 41 ms 36400 KB Output is correct
28 Correct 45 ms 36552 KB Output is correct
29 Correct 46 ms 37968 KB Output is correct
30 Correct 46 ms 38140 KB Output is correct
31 Correct 46 ms 38076 KB Output is correct
32 Correct 49 ms 37980 KB Output is correct
33 Correct 51 ms 37716 KB Output is correct
34 Correct 61 ms 37968 KB Output is correct
35 Correct 43 ms 37724 KB Output is correct
36 Correct 48 ms 37976 KB Output is correct
37 Correct 75 ms 37808 KB Output is correct
38 Correct 73 ms 37516 KB Output is correct
39 Correct 44 ms 36380 KB Output is correct
40 Correct 52 ms 36628 KB Output is correct
41 Correct 74 ms 38176 KB Output is correct
42 Correct 85 ms 37916 KB Output is correct
43 Correct 96 ms 37972 KB Output is correct
44 Correct 73 ms 37968 KB Output is correct
45 Correct 76 ms 37968 KB Output is correct
46 Correct 76 ms 38008 KB Output is correct
47 Correct 80 ms 36780 KB Output is correct
48 Correct 78 ms 37208 KB Output is correct
49 Correct 49 ms 37200 KB Output is correct
50 Correct 58 ms 37716 KB Output is correct
51 Correct 71 ms 37976 KB Output is correct
52 Correct 68 ms 37976 KB Output is correct
53 Correct 37 ms 37556 KB Output is correct
54 Correct 46 ms 38152 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 113 ms 37712 KB Output is correct
2 Correct 111 ms 37724 KB Output is correct
3 Correct 131 ms 37972 KB Output is correct
4 Correct 78 ms 37204 KB Output is correct
5 Correct 99 ms 37508 KB Output is correct
6 Correct 117 ms 37760 KB Output is correct
7 Correct 92 ms 36568 KB Output is correct
8 Correct 75 ms 36348 KB Output is correct
9 Correct 98 ms 37188 KB Output is correct
10 Correct 78 ms 36700 KB Output is correct
11 Correct 104 ms 37200 KB Output is correct
12 Correct 104 ms 37200 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 11 ms 33372 KB Output is correct
2 Correct 11 ms 33428 KB Output is correct
3 Correct 9 ms 33368 KB Output is correct
4 Correct 9 ms 33472 KB Output is correct
5 Correct 9 ms 33536 KB Output is correct
6 Correct 7 ms 33372 KB Output is correct
7 Correct 8 ms 33372 KB Output is correct
8 Correct 8 ms 33368 KB Output is correct
9 Correct 8 ms 33372 KB Output is correct
10 Correct 8 ms 33372 KB Output is correct
11 Correct 8 ms 33372 KB Output is correct
12 Correct 8 ms 33372 KB Output is correct
13 Correct 8 ms 33372 KB Output is correct
14 Correct 8 ms 33536 KB Output is correct
15 Correct 8 ms 33372 KB Output is correct
16 Correct 8 ms 33372 KB Output is correct
17 Correct 7 ms 33372 KB Output is correct
18 Correct 8 ms 33372 KB Output is correct
19 Correct 9 ms 33372 KB Output is correct
20 Correct 8 ms 33372 KB Output is correct
21 Correct 10 ms 33372 KB Output is correct
22 Correct 11 ms 33372 KB Output is correct
23 Correct 8 ms 33432 KB Output is correct
24 Correct 8 ms 33372 KB Output is correct
25 Correct 7 ms 33456 KB Output is correct
26 Correct 8 ms 33624 KB Output is correct
27 Correct 8 ms 33372 KB Output is correct
28 Correct 8 ms 33372 KB Output is correct
29 Correct 8 ms 33372 KB Output is correct
30 Correct 8 ms 33372 KB Output is correct
31 Correct 8 ms 33372 KB Output is correct
32 Correct 10 ms 33372 KB Output is correct
33 Correct 7 ms 33372 KB Output is correct
34 Correct 8 ms 33368 KB Output is correct
35 Correct 7 ms 33372 KB Output is correct
36 Correct 8 ms 33368 KB Output is correct
37 Correct 7 ms 33372 KB Output is correct
38 Correct 9 ms 33496 KB Output is correct
39 Correct 49 ms 37972 KB Output is correct
40 Correct 53 ms 37972 KB Output is correct
41 Correct 61 ms 37980 KB Output is correct
42 Correct 46 ms 37956 KB Output is correct
43 Correct 48 ms 38112 KB Output is correct
44 Correct 48 ms 37980 KB Output is correct
45 Correct 41 ms 36400 KB Output is correct
46 Correct 45 ms 36552 KB Output is correct
47 Correct 46 ms 37968 KB Output is correct
48 Correct 46 ms 38140 KB Output is correct
49 Correct 46 ms 38076 KB Output is correct
50 Correct 49 ms 37980 KB Output is correct
51 Correct 51 ms 37716 KB Output is correct
52 Correct 61 ms 37968 KB Output is correct
53 Correct 43 ms 37724 KB Output is correct
54 Correct 48 ms 37976 KB Output is correct
55 Correct 75 ms 37808 KB Output is correct
56 Correct 73 ms 37516 KB Output is correct
57 Correct 44 ms 36380 KB Output is correct
58 Correct 52 ms 36628 KB Output is correct
59 Correct 74 ms 38176 KB Output is correct
60 Correct 85 ms 37916 KB Output is correct
61 Correct 96 ms 37972 KB Output is correct
62 Correct 73 ms 37968 KB Output is correct
63 Correct 76 ms 37968 KB Output is correct
64 Correct 76 ms 38008 KB Output is correct
65 Correct 80 ms 36780 KB Output is correct
66 Correct 78 ms 37208 KB Output is correct
67 Correct 49 ms 37200 KB Output is correct
68 Correct 58 ms 37716 KB Output is correct
69 Correct 71 ms 37976 KB Output is correct
70 Correct 68 ms 37976 KB Output is correct
71 Correct 37 ms 37556 KB Output is correct
72 Correct 46 ms 38152 KB Output is correct
73 Correct 113 ms 37712 KB Output is correct
74 Correct 111 ms 37724 KB Output is correct
75 Correct 131 ms 37972 KB Output is correct
76 Correct 78 ms 37204 KB Output is correct
77 Correct 99 ms 37508 KB Output is correct
78 Correct 117 ms 37760 KB Output is correct
79 Correct 92 ms 36568 KB Output is correct
80 Correct 75 ms 36348 KB Output is correct
81 Correct 98 ms 37188 KB Output is correct
82 Correct 78 ms 36700 KB Output is correct
83 Correct 104 ms 37200 KB Output is correct
84 Correct 104 ms 37200 KB Output is correct
85 Correct 81 ms 37700 KB Output is correct
86 Correct 116 ms 38004 KB Output is correct
87 Correct 70 ms 37716 KB Output is correct
88 Correct 96 ms 37980 KB Output is correct
89 Correct 52 ms 37144 KB Output is correct
90 Correct 86 ms 37972 KB Output is correct
91 Correct 64 ms 37456 KB Output is correct
92 Correct 61 ms 37204 KB Output is correct
93 Correct 83 ms 37812 KB Output is correct
94 Correct 78 ms 37972 KB Output is correct
95 Correct 75 ms 37824 KB Output is correct
96 Correct 78 ms 37936 KB Output is correct
97 Correct 76 ms 37972 KB Output is correct
98 Correct 69 ms 37564 KB Output is correct
99 Correct 74 ms 36788 KB Output is correct
100 Correct 68 ms 36688 KB Output is correct
101 Correct 79 ms 37208 KB Output is correct
102 Correct 70 ms 38320 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 11 ms 33372 KB Output is correct
2 Correct 11 ms 33428 KB Output is correct
3 Correct 9 ms 33368 KB Output is correct
4 Correct 9 ms 33472 KB Output is correct
5 Correct 9 ms 33536 KB Output is correct
6 Correct 7 ms 33372 KB Output is correct
7 Correct 8 ms 33372 KB Output is correct
8 Correct 8 ms 33368 KB Output is correct
9 Correct 8 ms 33372 KB Output is correct
10 Correct 8 ms 33372 KB Output is correct
11 Correct 8 ms 33372 KB Output is correct
12 Correct 8 ms 33372 KB Output is correct
13 Correct 8 ms 33372 KB Output is correct
14 Correct 8 ms 33536 KB Output is correct
15 Correct 8 ms 33372 KB Output is correct
16 Correct 8 ms 33372 KB Output is correct
17 Correct 7 ms 33372 KB Output is correct
18 Correct 8 ms 33372 KB Output is correct
19 Correct 9 ms 33372 KB Output is correct
20 Correct 8 ms 33372 KB Output is correct
21 Correct 10 ms 33372 KB Output is correct
22 Correct 11 ms 33372 KB Output is correct
23 Correct 8 ms 33432 KB Output is correct
24 Correct 8 ms 33372 KB Output is correct
25 Correct 7 ms 33456 KB Output is correct
26 Correct 8 ms 33624 KB Output is correct
27 Correct 8 ms 33372 KB Output is correct
28 Correct 8 ms 33372 KB Output is correct
29 Correct 8 ms 33372 KB Output is correct
30 Correct 8 ms 33372 KB Output is correct
31 Correct 8 ms 33372 KB Output is correct
32 Correct 10 ms 33372 KB Output is correct
33 Correct 7 ms 33372 KB Output is correct
34 Correct 8 ms 33368 KB Output is correct
35 Correct 7 ms 33372 KB Output is correct
36 Correct 8 ms 33368 KB Output is correct
37 Correct 7 ms 33372 KB Output is correct
38 Correct 9 ms 33496 KB Output is correct
39 Correct 49 ms 37972 KB Output is correct
40 Correct 53 ms 37972 KB Output is correct
41 Correct 61 ms 37980 KB Output is correct
42 Correct 46 ms 37956 KB Output is correct
43 Correct 48 ms 38112 KB Output is correct
44 Correct 48 ms 37980 KB Output is correct
45 Correct 41 ms 36400 KB Output is correct
46 Correct 45 ms 36552 KB Output is correct
47 Correct 46 ms 37968 KB Output is correct
48 Correct 46 ms 38140 KB Output is correct
49 Correct 46 ms 38076 KB Output is correct
50 Correct 49 ms 37980 KB Output is correct
51 Correct 51 ms 37716 KB Output is correct
52 Correct 61 ms 37968 KB Output is correct
53 Correct 43 ms 37724 KB Output is correct
54 Correct 48 ms 37976 KB Output is correct
55 Correct 430 ms 50876 KB Output is correct
56 Correct 341 ms 46676 KB Output is correct
57 Correct 465 ms 51912 KB Output is correct
58 Correct 286 ms 46932 KB Output is correct
59 Correct 276 ms 48720 KB Output is correct
60 Correct 432 ms 51536 KB Output is correct
61 Correct 253 ms 46360 KB Output is correct
62 Correct 267 ms 46604 KB Output is correct
63 Correct 626 ms 51140 KB Output is correct
64 Correct 557 ms 57064 KB Output is correct
65 Correct 434 ms 57760 KB Output is correct
66 Correct 398 ms 57648 KB Output is correct
67 Correct 384 ms 57424 KB Output is correct
68 Correct 445 ms 57496 KB Output is correct
69 Correct 406 ms 57524 KB Output is correct
70 Correct 456 ms 57424 KB Output is correct
71 Correct 414 ms 57408 KB Output is correct
72 Correct 401 ms 57684 KB Output is correct
73 Correct 458 ms 57492 KB Output is correct
74 Correct 413 ms 57712 KB Output is correct
75 Correct 425 ms 57440 KB Output is correct
76 Correct 432 ms 57376 KB Output is correct
77 Correct 408 ms 57808 KB Output is correct
78 Correct 435 ms 57404 KB Output is correct
79 Correct 377 ms 54308 KB Output is correct
80 Correct 470 ms 54944 KB Output is correct
81 Correct 304 ms 59220 KB Output is correct
82 Correct 75 ms 37808 KB Output is correct
83 Correct 73 ms 37516 KB Output is correct
84 Correct 44 ms 36380 KB Output is correct
85 Correct 52 ms 36628 KB Output is correct
86 Correct 74 ms 38176 KB Output is correct
87 Correct 85 ms 37916 KB Output is correct
88 Correct 96 ms 37972 KB Output is correct
89 Correct 73 ms 37968 KB Output is correct
90 Correct 76 ms 37968 KB Output is correct
91 Correct 76 ms 38008 KB Output is correct
92 Correct 80 ms 36780 KB Output is correct
93 Correct 78 ms 37208 KB Output is correct
94 Correct 49 ms 37200 KB Output is correct
95 Correct 58 ms 37716 KB Output is correct
96 Correct 71 ms 37976 KB Output is correct
97 Correct 68 ms 37976 KB Output is correct
98 Correct 37 ms 37556 KB Output is correct
99 Correct 46 ms 38152 KB Output is correct
100 Correct 113 ms 37712 KB Output is correct
101 Correct 111 ms 37724 KB Output is correct
102 Correct 131 ms 37972 KB Output is correct
103 Correct 78 ms 37204 KB Output is correct
104 Correct 99 ms 37508 KB Output is correct
105 Correct 117 ms 37760 KB Output is correct
106 Correct 92 ms 36568 KB Output is correct
107 Correct 75 ms 36348 KB Output is correct
108 Correct 98 ms 37188 KB Output is correct
109 Correct 78 ms 36700 KB Output is correct
110 Correct 104 ms 37200 KB Output is correct
111 Correct 104 ms 37200 KB Output is correct
112 Correct 81 ms 37700 KB Output is correct
113 Correct 116 ms 38004 KB Output is correct
114 Correct 70 ms 37716 KB Output is correct
115 Correct 96 ms 37980 KB Output is correct
116 Correct 52 ms 37144 KB Output is correct
117 Correct 86 ms 37972 KB Output is correct
118 Correct 64 ms 37456 KB Output is correct
119 Correct 61 ms 37204 KB Output is correct
120 Correct 83 ms 37812 KB Output is correct
121 Correct 78 ms 37972 KB Output is correct
122 Correct 75 ms 37824 KB Output is correct
123 Correct 78 ms 37936 KB Output is correct
124 Correct 76 ms 37972 KB Output is correct
125 Correct 69 ms 37564 KB Output is correct
126 Correct 74 ms 36788 KB Output is correct
127 Correct 68 ms 36688 KB Output is correct
128 Correct 79 ms 37208 KB Output is correct
129 Correct 70 ms 38320 KB Output is correct
130 Correct 480 ms 58412 KB Output is correct
131 Correct 340 ms 51540 KB Output is correct
132 Correct 482 ms 58196 KB Output is correct
133 Correct 405 ms 57992 KB Output is correct
134 Correct 342 ms 55892 KB Output is correct
135 Correct 424 ms 58552 KB Output is correct
136 Correct 570 ms 58044 KB Output is correct
137 Correct 554 ms 57940 KB Output is correct
138 Correct 391 ms 58276 KB Output is correct
139 Correct 407 ms 58196 KB Output is correct
140 Correct 392 ms 58196 KB Output is correct
141 Correct 419 ms 58192 KB Output is correct
142 Correct 450 ms 57936 KB Output is correct
143 Correct 430 ms 58176 KB Output is correct
144 Correct 450 ms 58164 KB Output is correct
145 Correct 392 ms 58192 KB Output is correct
146 Correct 408 ms 57936 KB Output is correct
147 Correct 413 ms 58100 KB Output is correct
148 Correct 412 ms 58096 KB Output is correct
149 Correct 467 ms 58196 KB Output is correct
150 Correct 350 ms 52996 KB Output is correct
151 Correct 396 ms 55468 KB Output is correct
152 Correct 387 ms 55324 KB Output is correct
153 Correct 307 ms 60200 KB Output is correct