Submission #312010

# Submission time Handle Problem Language Result Execution time Memory
312010 2020-10-12T06:30:12 Z wildturtle Interval Collection (CCO20_day2problem2) C++14
22 / 25
5073 ms 481196 KB
#include<bits/stdc++.h>
using namespace std;
long long a,b,t,n,tree[4000006],treeL[4000006],treeR[4000006];
multiset <long long> stl,str,msl[1000006],msr[1000006];
char ch;
#define tavi begin()
#define bolo rbegin()
void update(long long node,long long L,long long R,long long idx,long long mxare) {
	if(idx<L || R<idx) return;
	if(L==R) {
		if(mxare) { if(msr[idx].empty()) treeR[node]=1e17; else treeR[node]=*msr[idx].tavi; }
		else { if(msl[idx].empty()) treeL[node]=-1e17; else treeL[node]=*msl[idx].bolo; }
		tree[node]=treeR[node]-treeL[node];
		return;
	}
	update(2*node,L,(L+R)/2,idx,mxare);
	update(2*node+1,(L+R)/2+1,R,idx,mxare);
	tree[node]=min(min(tree[2*node],tree[2*node+1]),treeR[2*node+1]-treeL[2*node]);
	treeL[node]=max(treeL[2*node],treeL[2*node+1]);
	treeR[node]=min(treeR[2*node],treeR[2*node+1]);
}
int main() {
    for (long long i=1;i<=4000000;i++)
    {
        tree[i]=2*1e17;
        treeL[i]=-1e17;
        treeR[i]=1e17;
    }
	cin>>t;
	while(t--) {
		cin>>ch>>a>>b;
		if(ch=='A') {
			stl.insert(a);
			str.insert(b);
			msl[b].insert(a);
			msr[a].insert(b);
			update(1,1,1e6+1,b,0);
			update(1,1,1e6+1,a,1);
		}
		else {
			stl.erase(stl.find(a));
			str.erase(str.find(b));
			msl[b].erase(a);
			msr[a].erase(b);
			update(1,1,1e6+1,b,0);
			update(1,1,1e6+1,a,1);
		}
		if(*(stl.bolo)<=*(str.tavi)) {
			//kveta
			//cout<<"*";
			cout<<*(msr[*(stl.bolo)].tavi)-*(msl[*(str.tavi)].bolo)<<endl;
		}
		else {
			cout<<tree[1]<<endl;
		}
	}
}
/*
5
A 1 5
A 2 7
A 4 6
A 6 8
R 4 6*/
# Verdict Execution time Memory Grader output
1 Correct 126 ms 188280 KB Output is correct
2 Correct 120 ms 188152 KB Output is correct
3 Correct 120 ms 188280 KB Output is correct
4 Correct 121 ms 188152 KB Output is correct
5 Correct 123 ms 188280 KB Output is correct
6 Correct 121 ms 188152 KB Output is correct
7 Correct 120 ms 188152 KB Output is correct
8 Correct 120 ms 188280 KB Output is correct
9 Correct 125 ms 188280 KB Output is correct
10 Correct 120 ms 188280 KB Output is correct
11 Correct 121 ms 188280 KB Output is correct
12 Correct 122 ms 188412 KB Output is correct
13 Correct 120 ms 188280 KB Output is correct
14 Correct 122 ms 188232 KB Output is correct
15 Correct 121 ms 188312 KB Output is correct
16 Correct 123 ms 188268 KB Output is correct
17 Correct 121 ms 188280 KB Output is correct
18 Correct 121 ms 188152 KB Output is correct
19 Correct 122 ms 188152 KB Output is correct
20 Correct 122 ms 188152 KB Output is correct
21 Correct 121 ms 188280 KB Output is correct
22 Correct 123 ms 188232 KB Output is correct
23 Correct 121 ms 188280 KB Output is correct
24 Correct 125 ms 188152 KB Output is correct
25 Correct 121 ms 188280 KB Output is correct
26 Correct 121 ms 188280 KB Output is correct
27 Correct 120 ms 188280 KB Output is correct
28 Correct 120 ms 188280 KB Output is correct
29 Correct 120 ms 188280 KB Output is correct
30 Correct 123 ms 188280 KB Output is correct
31 Correct 121 ms 188244 KB Output is correct
32 Correct 124 ms 188280 KB Output is correct
33 Correct 122 ms 188152 KB Output is correct
34 Correct 124 ms 188152 KB Output is correct
35 Correct 121 ms 188152 KB Output is correct
36 Correct 122 ms 188152 KB Output is correct
37 Correct 121 ms 188204 KB Output is correct
38 Correct 123 ms 188152 KB Output is correct
39 Correct 123 ms 188152 KB Output is correct
40 Correct 122 ms 188152 KB Output is correct
41 Correct 123 ms 188280 KB Output is correct
42 Correct 120 ms 188152 KB Output is correct
43 Correct 121 ms 188280 KB Output is correct
44 Correct 120 ms 188152 KB Output is correct
45 Correct 122 ms 188196 KB Output is correct
46 Correct 122 ms 188280 KB Output is correct
47 Correct 131 ms 188152 KB Output is correct
48 Correct 120 ms 188152 KB Output is correct
49 Correct 120 ms 188280 KB Output is correct
50 Correct 123 ms 188280 KB Output is correct
51 Correct 121 ms 188280 KB Output is correct
52 Correct 120 ms 188280 KB Output is correct
53 Correct 123 ms 188372 KB Output is correct
54 Correct 120 ms 188280 KB Output is correct
55 Correct 122 ms 188280 KB Output is correct
56 Correct 120 ms 188312 KB Output is correct
57 Correct 122 ms 188280 KB Output is correct
58 Correct 120 ms 188344 KB Output is correct
59 Correct 121 ms 188280 KB Output is correct
60 Correct 123 ms 188324 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 126 ms 188280 KB Output is correct
2 Correct 120 ms 188152 KB Output is correct
3 Correct 120 ms 188280 KB Output is correct
4 Correct 121 ms 188152 KB Output is correct
5 Correct 123 ms 188280 KB Output is correct
6 Correct 121 ms 188152 KB Output is correct
7 Correct 120 ms 188152 KB Output is correct
8 Correct 120 ms 188280 KB Output is correct
9 Correct 125 ms 188280 KB Output is correct
10 Correct 120 ms 188280 KB Output is correct
11 Correct 121 ms 188280 KB Output is correct
12 Correct 122 ms 188412 KB Output is correct
13 Correct 120 ms 188280 KB Output is correct
14 Correct 122 ms 188232 KB Output is correct
15 Correct 121 ms 188312 KB Output is correct
16 Correct 123 ms 188268 KB Output is correct
17 Correct 121 ms 188280 KB Output is correct
18 Correct 121 ms 188152 KB Output is correct
19 Correct 122 ms 188152 KB Output is correct
20 Correct 122 ms 188152 KB Output is correct
21 Correct 121 ms 188280 KB Output is correct
22 Correct 123 ms 188232 KB Output is correct
23 Correct 121 ms 188280 KB Output is correct
24 Correct 125 ms 188152 KB Output is correct
25 Correct 121 ms 188280 KB Output is correct
26 Correct 121 ms 188280 KB Output is correct
27 Correct 120 ms 188280 KB Output is correct
28 Correct 120 ms 188280 KB Output is correct
29 Correct 120 ms 188280 KB Output is correct
30 Correct 123 ms 188280 KB Output is correct
31 Correct 121 ms 188244 KB Output is correct
32 Correct 124 ms 188280 KB Output is correct
33 Correct 122 ms 188152 KB Output is correct
34 Correct 124 ms 188152 KB Output is correct
35 Correct 121 ms 188152 KB Output is correct
36 Correct 122 ms 188152 KB Output is correct
37 Correct 121 ms 188204 KB Output is correct
38 Correct 123 ms 188152 KB Output is correct
39 Correct 123 ms 188152 KB Output is correct
40 Correct 122 ms 188152 KB Output is correct
41 Correct 123 ms 188280 KB Output is correct
42 Correct 120 ms 188152 KB Output is correct
43 Correct 121 ms 188280 KB Output is correct
44 Correct 120 ms 188152 KB Output is correct
45 Correct 122 ms 188196 KB Output is correct
46 Correct 122 ms 188280 KB Output is correct
47 Correct 131 ms 188152 KB Output is correct
48 Correct 120 ms 188152 KB Output is correct
49 Correct 120 ms 188280 KB Output is correct
50 Correct 123 ms 188280 KB Output is correct
51 Correct 121 ms 188280 KB Output is correct
52 Correct 120 ms 188280 KB Output is correct
53 Correct 123 ms 188372 KB Output is correct
54 Correct 120 ms 188280 KB Output is correct
55 Correct 122 ms 188280 KB Output is correct
56 Correct 120 ms 188312 KB Output is correct
57 Correct 122 ms 188280 KB Output is correct
58 Correct 120 ms 188344 KB Output is correct
59 Correct 121 ms 188280 KB Output is correct
60 Correct 123 ms 188324 KB Output is correct
61 Correct 121 ms 188188 KB Output is correct
62 Correct 119 ms 188152 KB Output is correct
63 Correct 117 ms 188152 KB Output is correct
64 Correct 203 ms 189560 KB Output is correct
65 Correct 200 ms 188792 KB Output is correct
66 Correct 190 ms 188536 KB Output is correct
67 Correct 181 ms 188408 KB Output is correct
68 Correct 202 ms 189560 KB Output is correct
69 Correct 193 ms 188664 KB Output is correct
70 Correct 191 ms 188536 KB Output is correct
71 Correct 189 ms 188536 KB Output is correct
72 Correct 204 ms 190200 KB Output is correct
73 Correct 202 ms 189944 KB Output is correct
74 Correct 199 ms 189816 KB Output is correct
75 Correct 202 ms 189688 KB Output is correct
76 Correct 206 ms 190712 KB Output is correct
77 Correct 206 ms 190668 KB Output is correct
78 Correct 211 ms 190608 KB Output is correct
79 Correct 208 ms 190712 KB Output is correct
80 Correct 202 ms 189560 KB Output is correct
81 Correct 195 ms 188668 KB Output is correct
82 Correct 191 ms 188536 KB Output is correct
83 Correct 181 ms 188408 KB Output is correct
84 Correct 205 ms 189636 KB Output is correct
85 Correct 196 ms 188668 KB Output is correct
86 Correct 189 ms 188536 KB Output is correct
87 Correct 186 ms 188408 KB Output is correct
88 Correct 204 ms 190200 KB Output is correct
89 Correct 200 ms 189816 KB Output is correct
90 Correct 199 ms 189816 KB Output is correct
91 Correct 198 ms 189816 KB Output is correct
92 Correct 202 ms 190680 KB Output is correct
93 Correct 204 ms 190712 KB Output is correct
94 Correct 208 ms 190712 KB Output is correct
95 Correct 203 ms 190712 KB Output is correct
96 Correct 179 ms 188500 KB Output is correct
97 Correct 181 ms 188536 KB Output is correct
98 Correct 181 ms 188408 KB Output is correct
99 Correct 181 ms 188536 KB Output is correct
100 Correct 189 ms 188512 KB Output is correct
101 Correct 190 ms 188536 KB Output is correct
102 Correct 199 ms 188408 KB Output is correct
103 Correct 184 ms 188484 KB Output is correct
104 Correct 200 ms 189560 KB Output is correct
105 Correct 194 ms 188664 KB Output is correct
106 Correct 189 ms 188536 KB Output is correct
107 Correct 180 ms 188408 KB Output is correct
108 Correct 207 ms 189688 KB Output is correct
109 Correct 196 ms 188664 KB Output is correct
110 Correct 187 ms 188420 KB Output is correct
111 Correct 184 ms 188568 KB Output is correct
112 Correct 184 ms 189560 KB Output is correct
113 Correct 185 ms 189560 KB Output is correct
114 Correct 180 ms 189688 KB Output is correct
115 Correct 185 ms 189564 KB Output is correct
116 Correct 182 ms 189560 KB Output is correct
117 Correct 186 ms 189560 KB Output is correct
118 Correct 181 ms 189688 KB Output is correct
119 Correct 183 ms 189560 KB Output is correct
120 Correct 183 ms 189688 KB Output is correct
121 Correct 188 ms 189688 KB Output is correct
122 Correct 187 ms 190712 KB Output is correct
123 Correct 185 ms 190584 KB Output is correct
124 Correct 176 ms 188664 KB Output is correct
125 Correct 171 ms 188536 KB Output is correct
126 Correct 168 ms 188408 KB Output is correct
127 Correct 177 ms 188924 KB Output is correct
128 Correct 171 ms 188536 KB Output is correct
129 Correct 168 ms 188408 KB Output is correct
130 Correct 178 ms 188924 KB Output is correct
131 Correct 171 ms 188408 KB Output is correct
132 Correct 170 ms 188408 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 126 ms 188280 KB Output is correct
2 Correct 120 ms 188152 KB Output is correct
3 Correct 120 ms 188280 KB Output is correct
4 Correct 121 ms 188152 KB Output is correct
5 Correct 123 ms 188280 KB Output is correct
6 Correct 121 ms 188152 KB Output is correct
7 Correct 120 ms 188152 KB Output is correct
8 Correct 120 ms 188280 KB Output is correct
9 Correct 125 ms 188280 KB Output is correct
10 Correct 120 ms 188280 KB Output is correct
11 Correct 121 ms 188280 KB Output is correct
12 Correct 122 ms 188412 KB Output is correct
13 Correct 120 ms 188280 KB Output is correct
14 Correct 122 ms 188232 KB Output is correct
15 Correct 121 ms 188312 KB Output is correct
16 Correct 123 ms 188268 KB Output is correct
17 Correct 121 ms 188280 KB Output is correct
18 Correct 121 ms 188152 KB Output is correct
19 Correct 122 ms 188152 KB Output is correct
20 Correct 122 ms 188152 KB Output is correct
21 Correct 121 ms 188280 KB Output is correct
22 Correct 123 ms 188232 KB Output is correct
23 Correct 121 ms 188280 KB Output is correct
24 Correct 125 ms 188152 KB Output is correct
25 Correct 121 ms 188280 KB Output is correct
26 Correct 121 ms 188280 KB Output is correct
27 Correct 120 ms 188280 KB Output is correct
28 Correct 120 ms 188280 KB Output is correct
29 Correct 120 ms 188280 KB Output is correct
30 Correct 123 ms 188280 KB Output is correct
31 Correct 121 ms 188244 KB Output is correct
32 Correct 124 ms 188280 KB Output is correct
33 Correct 122 ms 188152 KB Output is correct
34 Correct 124 ms 188152 KB Output is correct
35 Correct 121 ms 188152 KB Output is correct
36 Correct 122 ms 188152 KB Output is correct
37 Correct 121 ms 188204 KB Output is correct
38 Correct 123 ms 188152 KB Output is correct
39 Correct 123 ms 188152 KB Output is correct
40 Correct 122 ms 188152 KB Output is correct
41 Correct 123 ms 188280 KB Output is correct
42 Correct 120 ms 188152 KB Output is correct
43 Correct 121 ms 188280 KB Output is correct
44 Correct 120 ms 188152 KB Output is correct
45 Correct 122 ms 188196 KB Output is correct
46 Correct 122 ms 188280 KB Output is correct
47 Correct 131 ms 188152 KB Output is correct
48 Correct 120 ms 188152 KB Output is correct
49 Correct 120 ms 188280 KB Output is correct
50 Correct 123 ms 188280 KB Output is correct
51 Correct 121 ms 188280 KB Output is correct
52 Correct 120 ms 188280 KB Output is correct
53 Correct 123 ms 188372 KB Output is correct
54 Correct 120 ms 188280 KB Output is correct
55 Correct 122 ms 188280 KB Output is correct
56 Correct 120 ms 188312 KB Output is correct
57 Correct 122 ms 188280 KB Output is correct
58 Correct 120 ms 188344 KB Output is correct
59 Correct 121 ms 188280 KB Output is correct
60 Correct 123 ms 188324 KB Output is correct
61 Correct 121 ms 188188 KB Output is correct
62 Correct 119 ms 188152 KB Output is correct
63 Correct 117 ms 188152 KB Output is correct
64 Correct 203 ms 189560 KB Output is correct
65 Correct 200 ms 188792 KB Output is correct
66 Correct 190 ms 188536 KB Output is correct
67 Correct 181 ms 188408 KB Output is correct
68 Correct 202 ms 189560 KB Output is correct
69 Correct 193 ms 188664 KB Output is correct
70 Correct 191 ms 188536 KB Output is correct
71 Correct 189 ms 188536 KB Output is correct
72 Correct 204 ms 190200 KB Output is correct
73 Correct 202 ms 189944 KB Output is correct
74 Correct 199 ms 189816 KB Output is correct
75 Correct 202 ms 189688 KB Output is correct
76 Correct 206 ms 190712 KB Output is correct
77 Correct 206 ms 190668 KB Output is correct
78 Correct 211 ms 190608 KB Output is correct
79 Correct 208 ms 190712 KB Output is correct
80 Correct 202 ms 189560 KB Output is correct
81 Correct 195 ms 188668 KB Output is correct
82 Correct 191 ms 188536 KB Output is correct
83 Correct 181 ms 188408 KB Output is correct
84 Correct 205 ms 189636 KB Output is correct
85 Correct 196 ms 188668 KB Output is correct
86 Correct 189 ms 188536 KB Output is correct
87 Correct 186 ms 188408 KB Output is correct
88 Correct 204 ms 190200 KB Output is correct
89 Correct 200 ms 189816 KB Output is correct
90 Correct 199 ms 189816 KB Output is correct
91 Correct 198 ms 189816 KB Output is correct
92 Correct 202 ms 190680 KB Output is correct
93 Correct 204 ms 190712 KB Output is correct
94 Correct 208 ms 190712 KB Output is correct
95 Correct 203 ms 190712 KB Output is correct
96 Correct 179 ms 188500 KB Output is correct
97 Correct 181 ms 188536 KB Output is correct
98 Correct 181 ms 188408 KB Output is correct
99 Correct 181 ms 188536 KB Output is correct
100 Correct 189 ms 188512 KB Output is correct
101 Correct 190 ms 188536 KB Output is correct
102 Correct 199 ms 188408 KB Output is correct
103 Correct 184 ms 188484 KB Output is correct
104 Correct 200 ms 189560 KB Output is correct
105 Correct 194 ms 188664 KB Output is correct
106 Correct 189 ms 188536 KB Output is correct
107 Correct 180 ms 188408 KB Output is correct
108 Correct 207 ms 189688 KB Output is correct
109 Correct 196 ms 188664 KB Output is correct
110 Correct 187 ms 188420 KB Output is correct
111 Correct 184 ms 188568 KB Output is correct
112 Correct 184 ms 189560 KB Output is correct
113 Correct 185 ms 189560 KB Output is correct
114 Correct 180 ms 189688 KB Output is correct
115 Correct 185 ms 189564 KB Output is correct
116 Correct 182 ms 189560 KB Output is correct
117 Correct 186 ms 189560 KB Output is correct
118 Correct 181 ms 189688 KB Output is correct
119 Correct 183 ms 189560 KB Output is correct
120 Correct 183 ms 189688 KB Output is correct
121 Correct 188 ms 189688 KB Output is correct
122 Correct 187 ms 190712 KB Output is correct
123 Correct 185 ms 190584 KB Output is correct
124 Correct 176 ms 188664 KB Output is correct
125 Correct 171 ms 188536 KB Output is correct
126 Correct 168 ms 188408 KB Output is correct
127 Correct 177 ms 188924 KB Output is correct
128 Correct 171 ms 188536 KB Output is correct
129 Correct 168 ms 188408 KB Output is correct
130 Correct 178 ms 188924 KB Output is correct
131 Correct 171 ms 188408 KB Output is correct
132 Correct 170 ms 188408 KB Output is correct
133 Correct 501 ms 193912 KB Output is correct
134 Correct 446 ms 190200 KB Output is correct
135 Correct 427 ms 189436 KB Output is correct
136 Correct 388 ms 189304 KB Output is correct
137 Correct 493 ms 193940 KB Output is correct
138 Correct 459 ms 190328 KB Output is correct
139 Correct 435 ms 189432 KB Output is correct
140 Correct 410 ms 189432 KB Output is correct
141 Correct 528 ms 196728 KB Output is correct
142 Correct 519 ms 195208 KB Output is correct
143 Correct 496 ms 194936 KB Output is correct
144 Correct 515 ms 194740 KB Output is correct
145 Correct 521 ms 198756 KB Output is correct
146 Correct 558 ms 198776 KB Output is correct
147 Correct 527 ms 198648 KB Output is correct
148 Correct 519 ms 198704 KB Output is correct
149 Correct 526 ms 193972 KB Output is correct
150 Correct 469 ms 190200 KB Output is correct
151 Correct 444 ms 189432 KB Output is correct
152 Correct 418 ms 189304 KB Output is correct
153 Correct 619 ms 193912 KB Output is correct
154 Correct 466 ms 190156 KB Output is correct
155 Correct 424 ms 189436 KB Output is correct
156 Correct 418 ms 189340 KB Output is correct
157 Correct 547 ms 196844 KB Output is correct
158 Correct 518 ms 195192 KB Output is correct
159 Correct 529 ms 194808 KB Output is correct
160 Correct 520 ms 194808 KB Output is correct
161 Correct 556 ms 198520 KB Output is correct
162 Correct 567 ms 198648 KB Output is correct
163 Correct 564 ms 198528 KB Output is correct
164 Correct 533 ms 198520 KB Output is correct
165 Correct 416 ms 189304 KB Output is correct
166 Correct 385 ms 189344 KB Output is correct
167 Correct 391 ms 189304 KB Output is correct
168 Correct 421 ms 189436 KB Output is correct
169 Correct 426 ms 189304 KB Output is correct
170 Correct 499 ms 189320 KB Output is correct
171 Correct 413 ms 189376 KB Output is correct
172 Correct 390 ms 189232 KB Output is correct
173 Correct 500 ms 193912 KB Output is correct
174 Correct 452 ms 190200 KB Output is correct
175 Correct 429 ms 189432 KB Output is correct
176 Correct 390 ms 189304 KB Output is correct
177 Correct 520 ms 193860 KB Output is correct
178 Correct 463 ms 190220 KB Output is correct
179 Correct 444 ms 189436 KB Output is correct
180 Correct 405 ms 189432 KB Output is correct
181 Correct 406 ms 194044 KB Output is correct
182 Correct 458 ms 194040 KB Output is correct
183 Correct 405 ms 194040 KB Output is correct
184 Correct 466 ms 194008 KB Output is correct
185 Correct 427 ms 193912 KB Output is correct
186 Correct 427 ms 193912 KB Output is correct
187 Correct 386 ms 193944 KB Output is correct
188 Correct 413 ms 194040 KB Output is correct
189 Correct 397 ms 194044 KB Output is correct
190 Correct 425 ms 193908 KB Output is correct
191 Correct 395 ms 198520 KB Output is correct
192 Correct 396 ms 198520 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1187 ms 229496 KB Output is correct
2 Correct 1214 ms 229260 KB Output is correct
3 Correct 2209 ms 270372 KB Output is correct
4 Correct 2278 ms 270584 KB Output is correct
5 Correct 2767 ms 290936 KB Output is correct
6 Correct 2840 ms 291192 KB Output is correct
7 Correct 2895 ms 199160 KB Output is correct
8 Correct 2487 ms 196104 KB Output is correct
9 Correct 2450 ms 195868 KB Output is correct
10 Correct 3068 ms 202232 KB Output is correct
11 Correct 2480 ms 196268 KB Output is correct
12 Correct 2441 ms 195832 KB Output is correct
13 Correct 3092 ms 203788 KB Output is correct
14 Correct 2508 ms 196252 KB Output is correct
15 Correct 2432 ms 195960 KB Output is correct
16 Correct 2506 ms 196988 KB Output is correct
17 Correct 2491 ms 196856 KB Output is correct
18 Correct 2521 ms 197112 KB Output is correct
19 Correct 2511 ms 196956 KB Output is correct
20 Correct 2555 ms 196848 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 126 ms 188280 KB Output is correct
2 Correct 120 ms 188152 KB Output is correct
3 Correct 120 ms 188280 KB Output is correct
4 Correct 121 ms 188152 KB Output is correct
5 Correct 123 ms 188280 KB Output is correct
6 Correct 121 ms 188152 KB Output is correct
7 Correct 120 ms 188152 KB Output is correct
8 Correct 120 ms 188280 KB Output is correct
9 Correct 125 ms 188280 KB Output is correct
10 Correct 120 ms 188280 KB Output is correct
11 Correct 121 ms 188280 KB Output is correct
12 Correct 122 ms 188412 KB Output is correct
13 Correct 120 ms 188280 KB Output is correct
14 Correct 122 ms 188232 KB Output is correct
15 Correct 121 ms 188312 KB Output is correct
16 Correct 123 ms 188268 KB Output is correct
17 Correct 121 ms 188280 KB Output is correct
18 Correct 121 ms 188152 KB Output is correct
19 Correct 122 ms 188152 KB Output is correct
20 Correct 122 ms 188152 KB Output is correct
21 Correct 121 ms 188280 KB Output is correct
22 Correct 123 ms 188232 KB Output is correct
23 Correct 121 ms 188280 KB Output is correct
24 Correct 125 ms 188152 KB Output is correct
25 Correct 121 ms 188280 KB Output is correct
26 Correct 121 ms 188280 KB Output is correct
27 Correct 120 ms 188280 KB Output is correct
28 Correct 120 ms 188280 KB Output is correct
29 Correct 120 ms 188280 KB Output is correct
30 Correct 123 ms 188280 KB Output is correct
31 Correct 121 ms 188244 KB Output is correct
32 Correct 124 ms 188280 KB Output is correct
33 Correct 122 ms 188152 KB Output is correct
34 Correct 124 ms 188152 KB Output is correct
35 Correct 121 ms 188152 KB Output is correct
36 Correct 122 ms 188152 KB Output is correct
37 Correct 121 ms 188204 KB Output is correct
38 Correct 123 ms 188152 KB Output is correct
39 Correct 123 ms 188152 KB Output is correct
40 Correct 122 ms 188152 KB Output is correct
41 Correct 123 ms 188280 KB Output is correct
42 Correct 120 ms 188152 KB Output is correct
43 Correct 121 ms 188280 KB Output is correct
44 Correct 120 ms 188152 KB Output is correct
45 Correct 122 ms 188196 KB Output is correct
46 Correct 122 ms 188280 KB Output is correct
47 Correct 131 ms 188152 KB Output is correct
48 Correct 120 ms 188152 KB Output is correct
49 Correct 120 ms 188280 KB Output is correct
50 Correct 123 ms 188280 KB Output is correct
51 Correct 121 ms 188280 KB Output is correct
52 Correct 120 ms 188280 KB Output is correct
53 Correct 123 ms 188372 KB Output is correct
54 Correct 120 ms 188280 KB Output is correct
55 Correct 122 ms 188280 KB Output is correct
56 Correct 120 ms 188312 KB Output is correct
57 Correct 122 ms 188280 KB Output is correct
58 Correct 120 ms 188344 KB Output is correct
59 Correct 121 ms 188280 KB Output is correct
60 Correct 123 ms 188324 KB Output is correct
61 Correct 121 ms 188188 KB Output is correct
62 Correct 119 ms 188152 KB Output is correct
63 Correct 117 ms 188152 KB Output is correct
64 Correct 203 ms 189560 KB Output is correct
65 Correct 200 ms 188792 KB Output is correct
66 Correct 190 ms 188536 KB Output is correct
67 Correct 181 ms 188408 KB Output is correct
68 Correct 202 ms 189560 KB Output is correct
69 Correct 193 ms 188664 KB Output is correct
70 Correct 191 ms 188536 KB Output is correct
71 Correct 189 ms 188536 KB Output is correct
72 Correct 204 ms 190200 KB Output is correct
73 Correct 202 ms 189944 KB Output is correct
74 Correct 199 ms 189816 KB Output is correct
75 Correct 202 ms 189688 KB Output is correct
76 Correct 206 ms 190712 KB Output is correct
77 Correct 206 ms 190668 KB Output is correct
78 Correct 211 ms 190608 KB Output is correct
79 Correct 208 ms 190712 KB Output is correct
80 Correct 202 ms 189560 KB Output is correct
81 Correct 195 ms 188668 KB Output is correct
82 Correct 191 ms 188536 KB Output is correct
83 Correct 181 ms 188408 KB Output is correct
84 Correct 205 ms 189636 KB Output is correct
85 Correct 196 ms 188668 KB Output is correct
86 Correct 189 ms 188536 KB Output is correct
87 Correct 186 ms 188408 KB Output is correct
88 Correct 204 ms 190200 KB Output is correct
89 Correct 200 ms 189816 KB Output is correct
90 Correct 199 ms 189816 KB Output is correct
91 Correct 198 ms 189816 KB Output is correct
92 Correct 202 ms 190680 KB Output is correct
93 Correct 204 ms 190712 KB Output is correct
94 Correct 208 ms 190712 KB Output is correct
95 Correct 203 ms 190712 KB Output is correct
96 Correct 179 ms 188500 KB Output is correct
97 Correct 181 ms 188536 KB Output is correct
98 Correct 181 ms 188408 KB Output is correct
99 Correct 181 ms 188536 KB Output is correct
100 Correct 189 ms 188512 KB Output is correct
101 Correct 190 ms 188536 KB Output is correct
102 Correct 199 ms 188408 KB Output is correct
103 Correct 184 ms 188484 KB Output is correct
104 Correct 200 ms 189560 KB Output is correct
105 Correct 194 ms 188664 KB Output is correct
106 Correct 189 ms 188536 KB Output is correct
107 Correct 180 ms 188408 KB Output is correct
108 Correct 207 ms 189688 KB Output is correct
109 Correct 196 ms 188664 KB Output is correct
110 Correct 187 ms 188420 KB Output is correct
111 Correct 184 ms 188568 KB Output is correct
112 Correct 184 ms 189560 KB Output is correct
113 Correct 185 ms 189560 KB Output is correct
114 Correct 180 ms 189688 KB Output is correct
115 Correct 185 ms 189564 KB Output is correct
116 Correct 182 ms 189560 KB Output is correct
117 Correct 186 ms 189560 KB Output is correct
118 Correct 181 ms 189688 KB Output is correct
119 Correct 183 ms 189560 KB Output is correct
120 Correct 183 ms 189688 KB Output is correct
121 Correct 188 ms 189688 KB Output is correct
122 Correct 187 ms 190712 KB Output is correct
123 Correct 185 ms 190584 KB Output is correct
124 Correct 176 ms 188664 KB Output is correct
125 Correct 171 ms 188536 KB Output is correct
126 Correct 168 ms 188408 KB Output is correct
127 Correct 177 ms 188924 KB Output is correct
128 Correct 171 ms 188536 KB Output is correct
129 Correct 168 ms 188408 KB Output is correct
130 Correct 178 ms 188924 KB Output is correct
131 Correct 171 ms 188408 KB Output is correct
132 Correct 170 ms 188408 KB Output is correct
133 Correct 501 ms 193912 KB Output is correct
134 Correct 446 ms 190200 KB Output is correct
135 Correct 427 ms 189436 KB Output is correct
136 Correct 388 ms 189304 KB Output is correct
137 Correct 493 ms 193940 KB Output is correct
138 Correct 459 ms 190328 KB Output is correct
139 Correct 435 ms 189432 KB Output is correct
140 Correct 410 ms 189432 KB Output is correct
141 Correct 528 ms 196728 KB Output is correct
142 Correct 519 ms 195208 KB Output is correct
143 Correct 496 ms 194936 KB Output is correct
144 Correct 515 ms 194740 KB Output is correct
145 Correct 521 ms 198756 KB Output is correct
146 Correct 558 ms 198776 KB Output is correct
147 Correct 527 ms 198648 KB Output is correct
148 Correct 519 ms 198704 KB Output is correct
149 Correct 526 ms 193972 KB Output is correct
150 Correct 469 ms 190200 KB Output is correct
151 Correct 444 ms 189432 KB Output is correct
152 Correct 418 ms 189304 KB Output is correct
153 Correct 619 ms 193912 KB Output is correct
154 Correct 466 ms 190156 KB Output is correct
155 Correct 424 ms 189436 KB Output is correct
156 Correct 418 ms 189340 KB Output is correct
157 Correct 547 ms 196844 KB Output is correct
158 Correct 518 ms 195192 KB Output is correct
159 Correct 529 ms 194808 KB Output is correct
160 Correct 520 ms 194808 KB Output is correct
161 Correct 556 ms 198520 KB Output is correct
162 Correct 567 ms 198648 KB Output is correct
163 Correct 564 ms 198528 KB Output is correct
164 Correct 533 ms 198520 KB Output is correct
165 Correct 416 ms 189304 KB Output is correct
166 Correct 385 ms 189344 KB Output is correct
167 Correct 391 ms 189304 KB Output is correct
168 Correct 421 ms 189436 KB Output is correct
169 Correct 426 ms 189304 KB Output is correct
170 Correct 499 ms 189320 KB Output is correct
171 Correct 413 ms 189376 KB Output is correct
172 Correct 390 ms 189232 KB Output is correct
173 Correct 500 ms 193912 KB Output is correct
174 Correct 452 ms 190200 KB Output is correct
175 Correct 429 ms 189432 KB Output is correct
176 Correct 390 ms 189304 KB Output is correct
177 Correct 520 ms 193860 KB Output is correct
178 Correct 463 ms 190220 KB Output is correct
179 Correct 444 ms 189436 KB Output is correct
180 Correct 405 ms 189432 KB Output is correct
181 Correct 406 ms 194044 KB Output is correct
182 Correct 458 ms 194040 KB Output is correct
183 Correct 405 ms 194040 KB Output is correct
184 Correct 466 ms 194008 KB Output is correct
185 Correct 427 ms 193912 KB Output is correct
186 Correct 427 ms 193912 KB Output is correct
187 Correct 386 ms 193944 KB Output is correct
188 Correct 413 ms 194040 KB Output is correct
189 Correct 397 ms 194044 KB Output is correct
190 Correct 425 ms 193908 KB Output is correct
191 Correct 395 ms 198520 KB Output is correct
192 Correct 396 ms 198520 KB Output is correct
193 Correct 1187 ms 229496 KB Output is correct
194 Correct 1214 ms 229260 KB Output is correct
195 Correct 2209 ms 270372 KB Output is correct
196 Correct 2278 ms 270584 KB Output is correct
197 Correct 2767 ms 290936 KB Output is correct
198 Correct 2840 ms 291192 KB Output is correct
199 Correct 2895 ms 199160 KB Output is correct
200 Correct 2487 ms 196104 KB Output is correct
201 Correct 2450 ms 195868 KB Output is correct
202 Correct 3068 ms 202232 KB Output is correct
203 Correct 2480 ms 196268 KB Output is correct
204 Correct 2441 ms 195832 KB Output is correct
205 Correct 3092 ms 203788 KB Output is correct
206 Correct 2508 ms 196252 KB Output is correct
207 Correct 2432 ms 195960 KB Output is correct
208 Correct 2506 ms 196988 KB Output is correct
209 Correct 2491 ms 196856 KB Output is correct
210 Correct 2521 ms 197112 KB Output is correct
211 Correct 2511 ms 196956 KB Output is correct
212 Correct 2555 ms 196848 KB Output is correct
213 Correct 4812 ms 245220 KB Output is correct
214 Correct 4322 ms 207708 KB Output is correct
215 Correct 3679 ms 199960 KB Output is correct
216 Correct 3030 ms 199324 KB Output is correct
217 Correct 4813 ms 245088 KB Output is correct
218 Correct 4393 ms 208104 KB Output is correct
219 Correct 3787 ms 200024 KB Output is correct
220 Correct 3103 ms 199220 KB Output is correct
221 Correct 4761 ms 273240 KB Output is correct
222 Correct 4734 ms 258156 KB Output is correct
223 Correct 4917 ms 254808 KB Output is correct
224 Correct 4948 ms 254308 KB Output is correct
225 Correct 5073 ms 291916 KB Output is correct
226 Correct 4966 ms 292040 KB Output is correct
227 Correct 4907 ms 291960 KB Output is correct
228 Correct 4922 ms 292088 KB Output is correct
229 Correct 4673 ms 244952 KB Output is correct
230 Correct 4240 ms 207320 KB Output is correct
231 Correct 3575 ms 199640 KB Output is correct
232 Correct 2949 ms 199012 KB Output is correct
233 Correct 4669 ms 244924 KB Output is correct
234 Correct 4161 ms 207516 KB Output is correct
235 Correct 3548 ms 199900 KB Output is correct
236 Correct 3060 ms 198968 KB Output is correct
237 Correct 4814 ms 273060 KB Output is correct
238 Correct 4728 ms 258004 KB Output is correct
239 Correct 4700 ms 255004 KB Output is correct
240 Correct 4747 ms 254256 KB Output is correct
241 Correct 4855 ms 291812 KB Output is correct
242 Correct 4875 ms 291816 KB Output is correct
243 Correct 4956 ms 291608 KB Output is correct
244 Correct 4912 ms 291464 KB Output is correct
245 Correct 2777 ms 199428 KB Output is correct
246 Correct 2764 ms 199400 KB Output is correct
247 Correct 2796 ms 199416 KB Output is correct
248 Correct 2762 ms 199320 KB Output is correct
249 Correct 3034 ms 199288 KB Output is correct
250 Correct 3073 ms 199380 KB Output is correct
251 Correct 3129 ms 199380 KB Output is correct
252 Correct 2904 ms 199532 KB Output is correct
253 Correct 4594 ms 244972 KB Output is correct
254 Correct 4067 ms 207908 KB Output is correct
255 Correct 3464 ms 200088 KB Output is correct
256 Correct 2944 ms 199440 KB Output is correct
257 Correct 4427 ms 245104 KB Output is correct
258 Correct 4014 ms 207876 KB Output is correct
259 Correct 3525 ms 200052 KB Output is correct
260 Correct 3016 ms 199356 KB Output is correct
261 Correct 3208 ms 246616 KB Output is correct
262 Correct 3844 ms 246312 KB Output is correct
263 Correct 2607 ms 245420 KB Output is correct
264 Correct 3282 ms 245252 KB Output is correct
265 Correct 3236 ms 246500 KB Output is correct
266 Correct 4016 ms 246580 KB Output is correct
267 Correct 2620 ms 245496 KB Output is correct
268 Correct 3344 ms 245300 KB Output is correct
269 Correct 2943 ms 290932 KB Output is correct
270 Correct 2984 ms 290852 KB Output is correct
271 Correct 3010 ms 199592 KB Output is correct
272 Correct 2510 ms 196080 KB Output is correct
273 Correct 3210 ms 203352 KB Output is correct
274 Correct 2568 ms 196124 KB Output is correct
275 Runtime error 1773 ms 481196 KB Execution killed with signal 11 (could be triggered by violating memory limits)