Submission #312031

# Submission time Handle Problem Language Result Execution time Memory
312031 2020-10-12T07:41:58 Z wildturtle Interval Collection (CCO20_day2problem2) C++14
22 / 25
4267 ms 383224 KB
#include<bits/stdc++.h>
using namespace std;
int a,b,t,tree[4000035],treeL[4000035],treeR[4000035];
multiset <int> stl,str,msl[1000006],msr[1000006];
char ch;
#define tavi begin()
#define bolo rbegin()
void update(int node,int L,int R,int idx,int mxare) {
	if(idx<L || R<idx) return;
	if(L==R) {
		if(mxare) { if(msr[idx].empty()) treeR[node]=1e9; else treeR[node]=*msr[idx].tavi; }
		else { if(msl[idx].empty()) treeL[node]=-1e9; 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() {
	std::ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0);
    for (int i=1;i<=4000020;i++) {
        tree[i]=2*1e9; treeL[i]=-1e9; treeR[i]=1e9;
    }
	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)) cout<<*(msr[*(stl.bolo)].tavi)-*(msl[*(str.tavi)].bolo)<<endl;
		else cout<<tree[1]<<endl;
	}
}
# Verdict Execution time Memory Grader output
1 Correct 97 ms 141304 KB Output is correct
2 Correct 96 ms 141176 KB Output is correct
3 Correct 96 ms 141180 KB Output is correct
4 Correct 96 ms 141176 KB Output is correct
5 Correct 97 ms 141304 KB Output is correct
6 Correct 97 ms 141180 KB Output is correct
7 Correct 96 ms 141176 KB Output is correct
8 Correct 95 ms 141176 KB Output is correct
9 Correct 97 ms 141304 KB Output is correct
10 Correct 97 ms 141304 KB Output is correct
11 Correct 97 ms 141304 KB Output is correct
12 Correct 96 ms 141304 KB Output is correct
13 Correct 99 ms 141304 KB Output is correct
14 Correct 96 ms 141304 KB Output is correct
15 Correct 97 ms 141304 KB Output is correct
16 Correct 97 ms 141304 KB Output is correct
17 Correct 95 ms 141260 KB Output is correct
18 Correct 95 ms 141176 KB Output is correct
19 Correct 95 ms 141176 KB Output is correct
20 Correct 94 ms 141180 KB Output is correct
21 Correct 96 ms 141304 KB Output is correct
22 Correct 97 ms 141176 KB Output is correct
23 Correct 95 ms 141304 KB Output is correct
24 Correct 96 ms 141176 KB Output is correct
25 Correct 97 ms 141304 KB Output is correct
26 Correct 97 ms 141304 KB Output is correct
27 Correct 97 ms 141308 KB Output is correct
28 Correct 96 ms 141304 KB Output is correct
29 Correct 96 ms 141356 KB Output is correct
30 Correct 100 ms 141304 KB Output is correct
31 Correct 96 ms 141304 KB Output is correct
32 Correct 95 ms 141304 KB Output is correct
33 Correct 96 ms 141176 KB Output is correct
34 Correct 97 ms 141280 KB Output is correct
35 Correct 94 ms 141176 KB Output is correct
36 Correct 95 ms 141304 KB Output is correct
37 Correct 95 ms 141176 KB Output is correct
38 Correct 98 ms 141236 KB Output is correct
39 Correct 95 ms 141176 KB Output is correct
40 Correct 95 ms 141176 KB Output is correct
41 Correct 96 ms 141304 KB Output is correct
42 Correct 97 ms 141176 KB Output is correct
43 Correct 98 ms 141304 KB Output is correct
44 Correct 95 ms 141264 KB Output is correct
45 Correct 95 ms 141304 KB Output is correct
46 Correct 98 ms 141304 KB Output is correct
47 Correct 96 ms 141176 KB Output is correct
48 Correct 96 ms 141228 KB Output is correct
49 Correct 98 ms 141304 KB Output is correct
50 Correct 98 ms 141304 KB Output is correct
51 Correct 97 ms 141304 KB Output is correct
52 Correct 95 ms 141304 KB Output is correct
53 Correct 96 ms 141304 KB Output is correct
54 Correct 97 ms 141304 KB Output is correct
55 Correct 97 ms 141324 KB Output is correct
56 Correct 96 ms 141304 KB Output is correct
57 Correct 97 ms 141304 KB Output is correct
58 Correct 94 ms 141304 KB Output is correct
59 Correct 96 ms 141328 KB Output is correct
60 Correct 96 ms 141304 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 97 ms 141304 KB Output is correct
2 Correct 96 ms 141176 KB Output is correct
3 Correct 96 ms 141180 KB Output is correct
4 Correct 96 ms 141176 KB Output is correct
5 Correct 97 ms 141304 KB Output is correct
6 Correct 97 ms 141180 KB Output is correct
7 Correct 96 ms 141176 KB Output is correct
8 Correct 95 ms 141176 KB Output is correct
9 Correct 97 ms 141304 KB Output is correct
10 Correct 97 ms 141304 KB Output is correct
11 Correct 97 ms 141304 KB Output is correct
12 Correct 96 ms 141304 KB Output is correct
13 Correct 99 ms 141304 KB Output is correct
14 Correct 96 ms 141304 KB Output is correct
15 Correct 97 ms 141304 KB Output is correct
16 Correct 97 ms 141304 KB Output is correct
17 Correct 95 ms 141260 KB Output is correct
18 Correct 95 ms 141176 KB Output is correct
19 Correct 95 ms 141176 KB Output is correct
20 Correct 94 ms 141180 KB Output is correct
21 Correct 96 ms 141304 KB Output is correct
22 Correct 97 ms 141176 KB Output is correct
23 Correct 95 ms 141304 KB Output is correct
24 Correct 96 ms 141176 KB Output is correct
25 Correct 97 ms 141304 KB Output is correct
26 Correct 97 ms 141304 KB Output is correct
27 Correct 97 ms 141308 KB Output is correct
28 Correct 96 ms 141304 KB Output is correct
29 Correct 96 ms 141356 KB Output is correct
30 Correct 100 ms 141304 KB Output is correct
31 Correct 96 ms 141304 KB Output is correct
32 Correct 95 ms 141304 KB Output is correct
33 Correct 96 ms 141176 KB Output is correct
34 Correct 97 ms 141280 KB Output is correct
35 Correct 94 ms 141176 KB Output is correct
36 Correct 95 ms 141304 KB Output is correct
37 Correct 95 ms 141176 KB Output is correct
38 Correct 98 ms 141236 KB Output is correct
39 Correct 95 ms 141176 KB Output is correct
40 Correct 95 ms 141176 KB Output is correct
41 Correct 96 ms 141304 KB Output is correct
42 Correct 97 ms 141176 KB Output is correct
43 Correct 98 ms 141304 KB Output is correct
44 Correct 95 ms 141264 KB Output is correct
45 Correct 95 ms 141304 KB Output is correct
46 Correct 98 ms 141304 KB Output is correct
47 Correct 96 ms 141176 KB Output is correct
48 Correct 96 ms 141228 KB Output is correct
49 Correct 98 ms 141304 KB Output is correct
50 Correct 98 ms 141304 KB Output is correct
51 Correct 97 ms 141304 KB Output is correct
52 Correct 95 ms 141304 KB Output is correct
53 Correct 96 ms 141304 KB Output is correct
54 Correct 97 ms 141304 KB Output is correct
55 Correct 97 ms 141324 KB Output is correct
56 Correct 96 ms 141304 KB Output is correct
57 Correct 97 ms 141304 KB Output is correct
58 Correct 94 ms 141304 KB Output is correct
59 Correct 96 ms 141328 KB Output is correct
60 Correct 96 ms 141304 KB Output is correct
61 Correct 93 ms 141176 KB Output is correct
62 Correct 95 ms 141176 KB Output is correct
63 Correct 93 ms 141176 KB Output is correct
64 Correct 163 ms 142456 KB Output is correct
65 Correct 153 ms 141560 KB Output is correct
66 Correct 150 ms 141304 KB Output is correct
67 Correct 142 ms 141432 KB Output is correct
68 Correct 159 ms 142456 KB Output is correct
69 Correct 153 ms 141552 KB Output is correct
70 Correct 153 ms 141432 KB Output is correct
71 Correct 146 ms 141304 KB Output is correct
72 Correct 163 ms 143096 KB Output is correct
73 Correct 163 ms 142716 KB Output is correct
74 Correct 159 ms 142712 KB Output is correct
75 Correct 161 ms 142656 KB Output is correct
76 Correct 164 ms 143484 KB Output is correct
77 Correct 169 ms 143492 KB Output is correct
78 Correct 166 ms 143608 KB Output is correct
79 Correct 166 ms 143480 KB Output is correct
80 Correct 163 ms 142456 KB Output is correct
81 Correct 151 ms 141560 KB Output is correct
82 Correct 149 ms 141348 KB Output is correct
83 Correct 142 ms 141304 KB Output is correct
84 Correct 161 ms 142496 KB Output is correct
85 Correct 155 ms 141560 KB Output is correct
86 Correct 150 ms 141304 KB Output is correct
87 Correct 149 ms 141432 KB Output is correct
88 Correct 164 ms 143096 KB Output is correct
89 Correct 161 ms 142716 KB Output is correct
90 Correct 162 ms 142584 KB Output is correct
91 Correct 162 ms 142584 KB Output is correct
92 Correct 164 ms 143480 KB Output is correct
93 Correct 167 ms 143548 KB Output is correct
94 Correct 164 ms 143480 KB Output is correct
95 Correct 167 ms 143508 KB Output is correct
96 Correct 145 ms 141304 KB Output is correct
97 Correct 142 ms 141304 KB Output is correct
98 Correct 141 ms 141304 KB Output is correct
99 Correct 142 ms 141304 KB Output is correct
100 Correct 149 ms 141292 KB Output is correct
101 Correct 148 ms 141304 KB Output is correct
102 Correct 145 ms 141272 KB Output is correct
103 Correct 142 ms 141432 KB Output is correct
104 Correct 159 ms 142456 KB Output is correct
105 Correct 154 ms 141560 KB Output is correct
106 Correct 147 ms 141304 KB Output is correct
107 Correct 142 ms 141304 KB Output is correct
108 Correct 159 ms 142456 KB Output is correct
109 Correct 150 ms 141560 KB Output is correct
110 Correct 149 ms 141304 KB Output is correct
111 Correct 143 ms 141304 KB Output is correct
112 Correct 141 ms 142456 KB Output is correct
113 Correct 143 ms 142452 KB Output is correct
114 Correct 141 ms 142428 KB Output is correct
115 Correct 143 ms 142456 KB Output is correct
116 Correct 143 ms 142584 KB Output is correct
117 Correct 147 ms 142584 KB Output is correct
118 Correct 141 ms 142456 KB Output is correct
119 Correct 146 ms 142456 KB Output is correct
120 Correct 144 ms 142456 KB Output is correct
121 Correct 145 ms 142460 KB Output is correct
122 Correct 144 ms 143580 KB Output is correct
123 Correct 144 ms 143612 KB Output is correct
124 Correct 140 ms 141560 KB Output is correct
125 Correct 137 ms 141424 KB Output is correct
126 Correct 134 ms 141304 KB Output is correct
127 Correct 139 ms 141816 KB Output is correct
128 Correct 135 ms 141432 KB Output is correct
129 Correct 136 ms 141432 KB Output is correct
130 Correct 139 ms 141816 KB Output is correct
131 Correct 139 ms 141432 KB Output is correct
132 Correct 136 ms 141308 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 97 ms 141304 KB Output is correct
2 Correct 96 ms 141176 KB Output is correct
3 Correct 96 ms 141180 KB Output is correct
4 Correct 96 ms 141176 KB Output is correct
5 Correct 97 ms 141304 KB Output is correct
6 Correct 97 ms 141180 KB Output is correct
7 Correct 96 ms 141176 KB Output is correct
8 Correct 95 ms 141176 KB Output is correct
9 Correct 97 ms 141304 KB Output is correct
10 Correct 97 ms 141304 KB Output is correct
11 Correct 97 ms 141304 KB Output is correct
12 Correct 96 ms 141304 KB Output is correct
13 Correct 99 ms 141304 KB Output is correct
14 Correct 96 ms 141304 KB Output is correct
15 Correct 97 ms 141304 KB Output is correct
16 Correct 97 ms 141304 KB Output is correct
17 Correct 95 ms 141260 KB Output is correct
18 Correct 95 ms 141176 KB Output is correct
19 Correct 95 ms 141176 KB Output is correct
20 Correct 94 ms 141180 KB Output is correct
21 Correct 96 ms 141304 KB Output is correct
22 Correct 97 ms 141176 KB Output is correct
23 Correct 95 ms 141304 KB Output is correct
24 Correct 96 ms 141176 KB Output is correct
25 Correct 97 ms 141304 KB Output is correct
26 Correct 97 ms 141304 KB Output is correct
27 Correct 97 ms 141308 KB Output is correct
28 Correct 96 ms 141304 KB Output is correct
29 Correct 96 ms 141356 KB Output is correct
30 Correct 100 ms 141304 KB Output is correct
31 Correct 96 ms 141304 KB Output is correct
32 Correct 95 ms 141304 KB Output is correct
33 Correct 96 ms 141176 KB Output is correct
34 Correct 97 ms 141280 KB Output is correct
35 Correct 94 ms 141176 KB Output is correct
36 Correct 95 ms 141304 KB Output is correct
37 Correct 95 ms 141176 KB Output is correct
38 Correct 98 ms 141236 KB Output is correct
39 Correct 95 ms 141176 KB Output is correct
40 Correct 95 ms 141176 KB Output is correct
41 Correct 96 ms 141304 KB Output is correct
42 Correct 97 ms 141176 KB Output is correct
43 Correct 98 ms 141304 KB Output is correct
44 Correct 95 ms 141264 KB Output is correct
45 Correct 95 ms 141304 KB Output is correct
46 Correct 98 ms 141304 KB Output is correct
47 Correct 96 ms 141176 KB Output is correct
48 Correct 96 ms 141228 KB Output is correct
49 Correct 98 ms 141304 KB Output is correct
50 Correct 98 ms 141304 KB Output is correct
51 Correct 97 ms 141304 KB Output is correct
52 Correct 95 ms 141304 KB Output is correct
53 Correct 96 ms 141304 KB Output is correct
54 Correct 97 ms 141304 KB Output is correct
55 Correct 97 ms 141324 KB Output is correct
56 Correct 96 ms 141304 KB Output is correct
57 Correct 97 ms 141304 KB Output is correct
58 Correct 94 ms 141304 KB Output is correct
59 Correct 96 ms 141328 KB Output is correct
60 Correct 96 ms 141304 KB Output is correct
61 Correct 93 ms 141176 KB Output is correct
62 Correct 95 ms 141176 KB Output is correct
63 Correct 93 ms 141176 KB Output is correct
64 Correct 163 ms 142456 KB Output is correct
65 Correct 153 ms 141560 KB Output is correct
66 Correct 150 ms 141304 KB Output is correct
67 Correct 142 ms 141432 KB Output is correct
68 Correct 159 ms 142456 KB Output is correct
69 Correct 153 ms 141552 KB Output is correct
70 Correct 153 ms 141432 KB Output is correct
71 Correct 146 ms 141304 KB Output is correct
72 Correct 163 ms 143096 KB Output is correct
73 Correct 163 ms 142716 KB Output is correct
74 Correct 159 ms 142712 KB Output is correct
75 Correct 161 ms 142656 KB Output is correct
76 Correct 164 ms 143484 KB Output is correct
77 Correct 169 ms 143492 KB Output is correct
78 Correct 166 ms 143608 KB Output is correct
79 Correct 166 ms 143480 KB Output is correct
80 Correct 163 ms 142456 KB Output is correct
81 Correct 151 ms 141560 KB Output is correct
82 Correct 149 ms 141348 KB Output is correct
83 Correct 142 ms 141304 KB Output is correct
84 Correct 161 ms 142496 KB Output is correct
85 Correct 155 ms 141560 KB Output is correct
86 Correct 150 ms 141304 KB Output is correct
87 Correct 149 ms 141432 KB Output is correct
88 Correct 164 ms 143096 KB Output is correct
89 Correct 161 ms 142716 KB Output is correct
90 Correct 162 ms 142584 KB Output is correct
91 Correct 162 ms 142584 KB Output is correct
92 Correct 164 ms 143480 KB Output is correct
93 Correct 167 ms 143548 KB Output is correct
94 Correct 164 ms 143480 KB Output is correct
95 Correct 167 ms 143508 KB Output is correct
96 Correct 145 ms 141304 KB Output is correct
97 Correct 142 ms 141304 KB Output is correct
98 Correct 141 ms 141304 KB Output is correct
99 Correct 142 ms 141304 KB Output is correct
100 Correct 149 ms 141292 KB Output is correct
101 Correct 148 ms 141304 KB Output is correct
102 Correct 145 ms 141272 KB Output is correct
103 Correct 142 ms 141432 KB Output is correct
104 Correct 159 ms 142456 KB Output is correct
105 Correct 154 ms 141560 KB Output is correct
106 Correct 147 ms 141304 KB Output is correct
107 Correct 142 ms 141304 KB Output is correct
108 Correct 159 ms 142456 KB Output is correct
109 Correct 150 ms 141560 KB Output is correct
110 Correct 149 ms 141304 KB Output is correct
111 Correct 143 ms 141304 KB Output is correct
112 Correct 141 ms 142456 KB Output is correct
113 Correct 143 ms 142452 KB Output is correct
114 Correct 141 ms 142428 KB Output is correct
115 Correct 143 ms 142456 KB Output is correct
116 Correct 143 ms 142584 KB Output is correct
117 Correct 147 ms 142584 KB Output is correct
118 Correct 141 ms 142456 KB Output is correct
119 Correct 146 ms 142456 KB Output is correct
120 Correct 144 ms 142456 KB Output is correct
121 Correct 145 ms 142460 KB Output is correct
122 Correct 144 ms 143580 KB Output is correct
123 Correct 144 ms 143612 KB Output is correct
124 Correct 140 ms 141560 KB Output is correct
125 Correct 137 ms 141424 KB Output is correct
126 Correct 134 ms 141304 KB Output is correct
127 Correct 139 ms 141816 KB Output is correct
128 Correct 135 ms 141432 KB Output is correct
129 Correct 136 ms 141432 KB Output is correct
130 Correct 139 ms 141816 KB Output is correct
131 Correct 139 ms 141432 KB Output is correct
132 Correct 136 ms 141308 KB Output is correct
133 Correct 404 ms 146168 KB Output is correct
134 Correct 365 ms 142456 KB Output is correct
135 Correct 338 ms 141816 KB Output is correct
136 Correct 303 ms 141560 KB Output is correct
137 Correct 416 ms 146424 KB Output is correct
138 Correct 367 ms 142456 KB Output is correct
139 Correct 338 ms 141688 KB Output is correct
140 Correct 323 ms 141560 KB Output is correct
141 Correct 426 ms 148984 KB Output is correct
142 Correct 417 ms 147448 KB Output is correct
143 Correct 411 ms 147192 KB Output is correct
144 Correct 407 ms 147064 KB Output is correct
145 Correct 433 ms 150904 KB Output is correct
146 Correct 430 ms 150904 KB Output is correct
147 Correct 432 ms 150904 KB Output is correct
148 Correct 437 ms 150908 KB Output is correct
149 Correct 412 ms 146168 KB Output is correct
150 Correct 362 ms 142456 KB Output is correct
151 Correct 336 ms 141688 KB Output is correct
152 Correct 301 ms 141636 KB Output is correct
153 Correct 409 ms 146168 KB Output is correct
154 Correct 370 ms 142584 KB Output is correct
155 Correct 339 ms 141688 KB Output is correct
156 Correct 324 ms 141816 KB Output is correct
157 Correct 424 ms 148988 KB Output is correct
158 Correct 409 ms 147508 KB Output is correct
159 Correct 409 ms 147192 KB Output is correct
160 Correct 411 ms 147064 KB Output is correct
161 Correct 430 ms 150904 KB Output is correct
162 Correct 427 ms 150776 KB Output is correct
163 Correct 426 ms 150904 KB Output is correct
164 Correct 433 ms 151032 KB Output is correct
165 Correct 298 ms 141688 KB Output is correct
166 Correct 298 ms 141740 KB Output is correct
167 Correct 299 ms 141600 KB Output is correct
168 Correct 305 ms 141688 KB Output is correct
169 Correct 323 ms 141688 KB Output is correct
170 Correct 325 ms 141560 KB Output is correct
171 Correct 317 ms 141688 KB Output is correct
172 Correct 301 ms 141688 KB Output is correct
173 Correct 405 ms 146272 KB Output is correct
174 Correct 361 ms 142456 KB Output is correct
175 Correct 335 ms 141688 KB Output is correct
176 Correct 303 ms 141688 KB Output is correct
177 Correct 401 ms 146168 KB Output is correct
178 Correct 353 ms 142512 KB Output is correct
179 Correct 351 ms 141688 KB Output is correct
180 Correct 301 ms 141560 KB Output is correct
181 Correct 306 ms 146296 KB Output is correct
182 Correct 337 ms 146296 KB Output is correct
183 Correct 297 ms 146296 KB Output is correct
184 Correct 317 ms 146172 KB Output is correct
185 Correct 310 ms 146296 KB Output is correct
186 Correct 338 ms 146424 KB Output is correct
187 Correct 296 ms 146424 KB Output is correct
188 Correct 324 ms 146424 KB Output is correct
189 Correct 306 ms 146296 KB Output is correct
190 Correct 335 ms 146384 KB Output is correct
191 Correct 312 ms 150776 KB Output is correct
192 Correct 312 ms 150776 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 936 ms 179280 KB Output is correct
2 Correct 946 ms 179576 KB Output is correct
3 Correct 1750 ms 217464 KB Output is correct
4 Correct 1778 ms 217340 KB Output is correct
5 Correct 2182 ms 236536 KB Output is correct
6 Correct 2220 ms 236280 KB Output is correct
7 Correct 2322 ms 145360 KB Output is correct
8 Correct 2028 ms 143340 KB Output is correct
9 Correct 1978 ms 143108 KB Output is correct
10 Correct 2478 ms 148728 KB Output is correct
11 Correct 2011 ms 143500 KB Output is correct
12 Correct 1987 ms 143380 KB Output is correct
13 Correct 2546 ms 149924 KB Output is correct
14 Correct 2025 ms 143204 KB Output is correct
15 Correct 1980 ms 143096 KB Output is correct
16 Correct 1968 ms 143116 KB Output is correct
17 Correct 1945 ms 143480 KB Output is correct
18 Correct 1949 ms 143224 KB Output is correct
19 Correct 1956 ms 143480 KB Output is correct
20 Correct 1950 ms 143452 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 97 ms 141304 KB Output is correct
2 Correct 96 ms 141176 KB Output is correct
3 Correct 96 ms 141180 KB Output is correct
4 Correct 96 ms 141176 KB Output is correct
5 Correct 97 ms 141304 KB Output is correct
6 Correct 97 ms 141180 KB Output is correct
7 Correct 96 ms 141176 KB Output is correct
8 Correct 95 ms 141176 KB Output is correct
9 Correct 97 ms 141304 KB Output is correct
10 Correct 97 ms 141304 KB Output is correct
11 Correct 97 ms 141304 KB Output is correct
12 Correct 96 ms 141304 KB Output is correct
13 Correct 99 ms 141304 KB Output is correct
14 Correct 96 ms 141304 KB Output is correct
15 Correct 97 ms 141304 KB Output is correct
16 Correct 97 ms 141304 KB Output is correct
17 Correct 95 ms 141260 KB Output is correct
18 Correct 95 ms 141176 KB Output is correct
19 Correct 95 ms 141176 KB Output is correct
20 Correct 94 ms 141180 KB Output is correct
21 Correct 96 ms 141304 KB Output is correct
22 Correct 97 ms 141176 KB Output is correct
23 Correct 95 ms 141304 KB Output is correct
24 Correct 96 ms 141176 KB Output is correct
25 Correct 97 ms 141304 KB Output is correct
26 Correct 97 ms 141304 KB Output is correct
27 Correct 97 ms 141308 KB Output is correct
28 Correct 96 ms 141304 KB Output is correct
29 Correct 96 ms 141356 KB Output is correct
30 Correct 100 ms 141304 KB Output is correct
31 Correct 96 ms 141304 KB Output is correct
32 Correct 95 ms 141304 KB Output is correct
33 Correct 96 ms 141176 KB Output is correct
34 Correct 97 ms 141280 KB Output is correct
35 Correct 94 ms 141176 KB Output is correct
36 Correct 95 ms 141304 KB Output is correct
37 Correct 95 ms 141176 KB Output is correct
38 Correct 98 ms 141236 KB Output is correct
39 Correct 95 ms 141176 KB Output is correct
40 Correct 95 ms 141176 KB Output is correct
41 Correct 96 ms 141304 KB Output is correct
42 Correct 97 ms 141176 KB Output is correct
43 Correct 98 ms 141304 KB Output is correct
44 Correct 95 ms 141264 KB Output is correct
45 Correct 95 ms 141304 KB Output is correct
46 Correct 98 ms 141304 KB Output is correct
47 Correct 96 ms 141176 KB Output is correct
48 Correct 96 ms 141228 KB Output is correct
49 Correct 98 ms 141304 KB Output is correct
50 Correct 98 ms 141304 KB Output is correct
51 Correct 97 ms 141304 KB Output is correct
52 Correct 95 ms 141304 KB Output is correct
53 Correct 96 ms 141304 KB Output is correct
54 Correct 97 ms 141304 KB Output is correct
55 Correct 97 ms 141324 KB Output is correct
56 Correct 96 ms 141304 KB Output is correct
57 Correct 97 ms 141304 KB Output is correct
58 Correct 94 ms 141304 KB Output is correct
59 Correct 96 ms 141328 KB Output is correct
60 Correct 96 ms 141304 KB Output is correct
61 Correct 93 ms 141176 KB Output is correct
62 Correct 95 ms 141176 KB Output is correct
63 Correct 93 ms 141176 KB Output is correct
64 Correct 163 ms 142456 KB Output is correct
65 Correct 153 ms 141560 KB Output is correct
66 Correct 150 ms 141304 KB Output is correct
67 Correct 142 ms 141432 KB Output is correct
68 Correct 159 ms 142456 KB Output is correct
69 Correct 153 ms 141552 KB Output is correct
70 Correct 153 ms 141432 KB Output is correct
71 Correct 146 ms 141304 KB Output is correct
72 Correct 163 ms 143096 KB Output is correct
73 Correct 163 ms 142716 KB Output is correct
74 Correct 159 ms 142712 KB Output is correct
75 Correct 161 ms 142656 KB Output is correct
76 Correct 164 ms 143484 KB Output is correct
77 Correct 169 ms 143492 KB Output is correct
78 Correct 166 ms 143608 KB Output is correct
79 Correct 166 ms 143480 KB Output is correct
80 Correct 163 ms 142456 KB Output is correct
81 Correct 151 ms 141560 KB Output is correct
82 Correct 149 ms 141348 KB Output is correct
83 Correct 142 ms 141304 KB Output is correct
84 Correct 161 ms 142496 KB Output is correct
85 Correct 155 ms 141560 KB Output is correct
86 Correct 150 ms 141304 KB Output is correct
87 Correct 149 ms 141432 KB Output is correct
88 Correct 164 ms 143096 KB Output is correct
89 Correct 161 ms 142716 KB Output is correct
90 Correct 162 ms 142584 KB Output is correct
91 Correct 162 ms 142584 KB Output is correct
92 Correct 164 ms 143480 KB Output is correct
93 Correct 167 ms 143548 KB Output is correct
94 Correct 164 ms 143480 KB Output is correct
95 Correct 167 ms 143508 KB Output is correct
96 Correct 145 ms 141304 KB Output is correct
97 Correct 142 ms 141304 KB Output is correct
98 Correct 141 ms 141304 KB Output is correct
99 Correct 142 ms 141304 KB Output is correct
100 Correct 149 ms 141292 KB Output is correct
101 Correct 148 ms 141304 KB Output is correct
102 Correct 145 ms 141272 KB Output is correct
103 Correct 142 ms 141432 KB Output is correct
104 Correct 159 ms 142456 KB Output is correct
105 Correct 154 ms 141560 KB Output is correct
106 Correct 147 ms 141304 KB Output is correct
107 Correct 142 ms 141304 KB Output is correct
108 Correct 159 ms 142456 KB Output is correct
109 Correct 150 ms 141560 KB Output is correct
110 Correct 149 ms 141304 KB Output is correct
111 Correct 143 ms 141304 KB Output is correct
112 Correct 141 ms 142456 KB Output is correct
113 Correct 143 ms 142452 KB Output is correct
114 Correct 141 ms 142428 KB Output is correct
115 Correct 143 ms 142456 KB Output is correct
116 Correct 143 ms 142584 KB Output is correct
117 Correct 147 ms 142584 KB Output is correct
118 Correct 141 ms 142456 KB Output is correct
119 Correct 146 ms 142456 KB Output is correct
120 Correct 144 ms 142456 KB Output is correct
121 Correct 145 ms 142460 KB Output is correct
122 Correct 144 ms 143580 KB Output is correct
123 Correct 144 ms 143612 KB Output is correct
124 Correct 140 ms 141560 KB Output is correct
125 Correct 137 ms 141424 KB Output is correct
126 Correct 134 ms 141304 KB Output is correct
127 Correct 139 ms 141816 KB Output is correct
128 Correct 135 ms 141432 KB Output is correct
129 Correct 136 ms 141432 KB Output is correct
130 Correct 139 ms 141816 KB Output is correct
131 Correct 139 ms 141432 KB Output is correct
132 Correct 136 ms 141308 KB Output is correct
133 Correct 404 ms 146168 KB Output is correct
134 Correct 365 ms 142456 KB Output is correct
135 Correct 338 ms 141816 KB Output is correct
136 Correct 303 ms 141560 KB Output is correct
137 Correct 416 ms 146424 KB Output is correct
138 Correct 367 ms 142456 KB Output is correct
139 Correct 338 ms 141688 KB Output is correct
140 Correct 323 ms 141560 KB Output is correct
141 Correct 426 ms 148984 KB Output is correct
142 Correct 417 ms 147448 KB Output is correct
143 Correct 411 ms 147192 KB Output is correct
144 Correct 407 ms 147064 KB Output is correct
145 Correct 433 ms 150904 KB Output is correct
146 Correct 430 ms 150904 KB Output is correct
147 Correct 432 ms 150904 KB Output is correct
148 Correct 437 ms 150908 KB Output is correct
149 Correct 412 ms 146168 KB Output is correct
150 Correct 362 ms 142456 KB Output is correct
151 Correct 336 ms 141688 KB Output is correct
152 Correct 301 ms 141636 KB Output is correct
153 Correct 409 ms 146168 KB Output is correct
154 Correct 370 ms 142584 KB Output is correct
155 Correct 339 ms 141688 KB Output is correct
156 Correct 324 ms 141816 KB Output is correct
157 Correct 424 ms 148988 KB Output is correct
158 Correct 409 ms 147508 KB Output is correct
159 Correct 409 ms 147192 KB Output is correct
160 Correct 411 ms 147064 KB Output is correct
161 Correct 430 ms 150904 KB Output is correct
162 Correct 427 ms 150776 KB Output is correct
163 Correct 426 ms 150904 KB Output is correct
164 Correct 433 ms 151032 KB Output is correct
165 Correct 298 ms 141688 KB Output is correct
166 Correct 298 ms 141740 KB Output is correct
167 Correct 299 ms 141600 KB Output is correct
168 Correct 305 ms 141688 KB Output is correct
169 Correct 323 ms 141688 KB Output is correct
170 Correct 325 ms 141560 KB Output is correct
171 Correct 317 ms 141688 KB Output is correct
172 Correct 301 ms 141688 KB Output is correct
173 Correct 405 ms 146272 KB Output is correct
174 Correct 361 ms 142456 KB Output is correct
175 Correct 335 ms 141688 KB Output is correct
176 Correct 303 ms 141688 KB Output is correct
177 Correct 401 ms 146168 KB Output is correct
178 Correct 353 ms 142512 KB Output is correct
179 Correct 351 ms 141688 KB Output is correct
180 Correct 301 ms 141560 KB Output is correct
181 Correct 306 ms 146296 KB Output is correct
182 Correct 337 ms 146296 KB Output is correct
183 Correct 297 ms 146296 KB Output is correct
184 Correct 317 ms 146172 KB Output is correct
185 Correct 310 ms 146296 KB Output is correct
186 Correct 338 ms 146424 KB Output is correct
187 Correct 296 ms 146424 KB Output is correct
188 Correct 324 ms 146424 KB Output is correct
189 Correct 306 ms 146296 KB Output is correct
190 Correct 335 ms 146384 KB Output is correct
191 Correct 312 ms 150776 KB Output is correct
192 Correct 312 ms 150776 KB Output is correct
193 Correct 936 ms 179280 KB Output is correct
194 Correct 946 ms 179576 KB Output is correct
195 Correct 1750 ms 217464 KB Output is correct
196 Correct 1778 ms 217340 KB Output is correct
197 Correct 2182 ms 236536 KB Output is correct
198 Correct 2220 ms 236280 KB Output is correct
199 Correct 2322 ms 145360 KB Output is correct
200 Correct 2028 ms 143340 KB Output is correct
201 Correct 1978 ms 143108 KB Output is correct
202 Correct 2478 ms 148728 KB Output is correct
203 Correct 2011 ms 143500 KB Output is correct
204 Correct 1987 ms 143380 KB Output is correct
205 Correct 2546 ms 149924 KB Output is correct
206 Correct 2025 ms 143204 KB Output is correct
207 Correct 1980 ms 143096 KB Output is correct
208 Correct 1968 ms 143116 KB Output is correct
209 Correct 1945 ms 143480 KB Output is correct
210 Correct 1949 ms 143224 KB Output is correct
211 Correct 1956 ms 143480 KB Output is correct
212 Correct 1950 ms 143452 KB Output is correct
213 Correct 3995 ms 190592 KB Output is correct
214 Correct 3594 ms 153124 KB Output is correct
215 Correct 2942 ms 145344 KB Output is correct
216 Correct 2330 ms 144908 KB Output is correct
217 Correct 4030 ms 190616 KB Output is correct
218 Correct 3544 ms 153264 KB Output is correct
219 Correct 2919 ms 145504 KB Output is correct
220 Correct 2462 ms 144760 KB Output is correct
221 Correct 4137 ms 218740 KB Output is correct
222 Correct 4066 ms 203780 KB Output is correct
223 Correct 4067 ms 200588 KB Output is correct
224 Correct 4026 ms 199920 KB Output is correct
225 Correct 4208 ms 237696 KB Output is correct
226 Correct 4175 ms 237776 KB Output is correct
227 Correct 4217 ms 237508 KB Output is correct
228 Correct 4204 ms 237648 KB Output is correct
229 Correct 4102 ms 190432 KB Output is correct
230 Correct 3588 ms 152908 KB Output is correct
231 Correct 2885 ms 145400 KB Output is correct
232 Correct 2337 ms 144700 KB Output is correct
233 Correct 4109 ms 190564 KB Output is correct
234 Correct 3602 ms 153264 KB Output is correct
235 Correct 2932 ms 145640 KB Output is correct
236 Correct 2476 ms 144644 KB Output is correct
237 Correct 4214 ms 218792 KB Output is correct
238 Correct 4157 ms 203428 KB Output is correct
239 Correct 4155 ms 200444 KB Output is correct
240 Correct 4144 ms 199632 KB Output is correct
241 Correct 4224 ms 237300 KB Output is correct
242 Correct 4267 ms 237536 KB Output is correct
243 Correct 4240 ms 237224 KB Output is correct
244 Correct 4205 ms 237032 KB Output is correct
245 Correct 2209 ms 144724 KB Output is correct
246 Correct 2152 ms 145148 KB Output is correct
247 Correct 2147 ms 144812 KB Output is correct
248 Correct 2154 ms 145016 KB Output is correct
249 Correct 2390 ms 144624 KB Output is correct
250 Correct 2450 ms 144708 KB Output is correct
251 Correct 2438 ms 144656 KB Output is correct
252 Correct 2234 ms 144888 KB Output is correct
253 Correct 3938 ms 190332 KB Output is correct
254 Correct 3378 ms 153212 KB Output is correct
255 Correct 2778 ms 145392 KB Output is correct
256 Correct 2322 ms 144760 KB Output is correct
257 Correct 3847 ms 190548 KB Output is correct
258 Correct 3415 ms 153240 KB Output is correct
259 Correct 2817 ms 145408 KB Output is correct
260 Correct 2316 ms 145040 KB Output is correct
261 Correct 2556 ms 191916 KB Output is correct
262 Correct 3140 ms 191928 KB Output is correct
263 Correct 2066 ms 191932 KB Output is correct
264 Correct 2627 ms 191916 KB Output is correct
265 Correct 2549 ms 191852 KB Output is correct
266 Correct 3186 ms 191844 KB Output is correct
267 Correct 2045 ms 191864 KB Output is correct
268 Correct 2643 ms 191864 KB Output is correct
269 Correct 2188 ms 236336 KB Output is correct
270 Correct 2229 ms 236268 KB Output is correct
271 Correct 2356 ms 146168 KB Output is correct
272 Correct 2001 ms 143480 KB Output is correct
273 Correct 2510 ms 149956 KB Output is correct
274 Correct 2023 ms 143528 KB Output is correct
275 Runtime error 1402 ms 383224 KB Execution killed with signal 11 (could be triggered by violating memory limits)