Submission #312022

# Submission time Handle Problem Language Result Execution time Memory
312022 2020-10-12T07:00:54 Z wildturtle Interval Collection (CCO20_day2problem2) C++14
22 / 25
4305 ms 359124 KB
#include<bits/stdc++.h>
using namespace std;
int a,b,t,n,tree[3000006],treeL[3000006],treeR[3000006];
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<=3000000;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)) {
			//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 88 ms 129656 KB Output is correct
2 Correct 90 ms 129528 KB Output is correct
3 Correct 91 ms 129528 KB Output is correct
4 Correct 89 ms 129452 KB Output is correct
5 Correct 89 ms 129584 KB Output is correct
6 Correct 94 ms 129528 KB Output is correct
7 Correct 91 ms 129528 KB Output is correct
8 Correct 90 ms 129528 KB Output is correct
9 Correct 89 ms 129528 KB Output is correct
10 Correct 88 ms 129532 KB Output is correct
11 Correct 90 ms 129528 KB Output is correct
12 Correct 91 ms 129656 KB Output is correct
13 Correct 90 ms 129688 KB Output is correct
14 Correct 88 ms 129528 KB Output is correct
15 Correct 90 ms 129624 KB Output is correct
16 Correct 90 ms 129656 KB Output is correct
17 Correct 87 ms 129528 KB Output is correct
18 Correct 102 ms 129532 KB Output is correct
19 Correct 89 ms 129528 KB Output is correct
20 Correct 90 ms 129528 KB Output is correct
21 Correct 92 ms 129528 KB Output is correct
22 Correct 89 ms 129520 KB Output is correct
23 Correct 88 ms 129508 KB Output is correct
24 Correct 88 ms 129448 KB Output is correct
25 Correct 90 ms 129528 KB Output is correct
26 Correct 92 ms 129528 KB Output is correct
27 Correct 88 ms 129528 KB Output is correct
28 Correct 91 ms 129528 KB Output is correct
29 Correct 90 ms 129532 KB Output is correct
30 Correct 90 ms 129528 KB Output is correct
31 Correct 115 ms 129528 KB Output is correct
32 Correct 90 ms 129528 KB Output is correct
33 Correct 90 ms 129528 KB Output is correct
34 Correct 88 ms 129528 KB Output is correct
35 Correct 88 ms 129528 KB Output is correct
36 Correct 89 ms 129528 KB Output is correct
37 Correct 88 ms 129528 KB Output is correct
38 Correct 88 ms 129532 KB Output is correct
39 Correct 89 ms 129528 KB Output is correct
40 Correct 89 ms 129528 KB Output is correct
41 Correct 91 ms 129528 KB Output is correct
42 Correct 87 ms 129528 KB Output is correct
43 Correct 89 ms 129528 KB Output is correct
44 Correct 89 ms 129528 KB Output is correct
45 Correct 88 ms 129528 KB Output is correct
46 Correct 87 ms 129528 KB Output is correct
47 Correct 87 ms 129528 KB Output is correct
48 Correct 87 ms 129528 KB Output is correct
49 Correct 87 ms 129528 KB Output is correct
50 Correct 87 ms 129528 KB Output is correct
51 Correct 87 ms 129528 KB Output is correct
52 Correct 101 ms 129528 KB Output is correct
53 Correct 98 ms 129528 KB Output is correct
54 Correct 89 ms 129656 KB Output is correct
55 Correct 88 ms 129528 KB Output is correct
56 Correct 89 ms 129528 KB Output is correct
57 Correct 86 ms 129568 KB Output is correct
58 Correct 87 ms 129528 KB Output is correct
59 Correct 88 ms 129528 KB Output is correct
60 Correct 88 ms 129528 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 88 ms 129656 KB Output is correct
2 Correct 90 ms 129528 KB Output is correct
3 Correct 91 ms 129528 KB Output is correct
4 Correct 89 ms 129452 KB Output is correct
5 Correct 89 ms 129584 KB Output is correct
6 Correct 94 ms 129528 KB Output is correct
7 Correct 91 ms 129528 KB Output is correct
8 Correct 90 ms 129528 KB Output is correct
9 Correct 89 ms 129528 KB Output is correct
10 Correct 88 ms 129532 KB Output is correct
11 Correct 90 ms 129528 KB Output is correct
12 Correct 91 ms 129656 KB Output is correct
13 Correct 90 ms 129688 KB Output is correct
14 Correct 88 ms 129528 KB Output is correct
15 Correct 90 ms 129624 KB Output is correct
16 Correct 90 ms 129656 KB Output is correct
17 Correct 87 ms 129528 KB Output is correct
18 Correct 102 ms 129532 KB Output is correct
19 Correct 89 ms 129528 KB Output is correct
20 Correct 90 ms 129528 KB Output is correct
21 Correct 92 ms 129528 KB Output is correct
22 Correct 89 ms 129520 KB Output is correct
23 Correct 88 ms 129508 KB Output is correct
24 Correct 88 ms 129448 KB Output is correct
25 Correct 90 ms 129528 KB Output is correct
26 Correct 92 ms 129528 KB Output is correct
27 Correct 88 ms 129528 KB Output is correct
28 Correct 91 ms 129528 KB Output is correct
29 Correct 90 ms 129532 KB Output is correct
30 Correct 90 ms 129528 KB Output is correct
31 Correct 115 ms 129528 KB Output is correct
32 Correct 90 ms 129528 KB Output is correct
33 Correct 90 ms 129528 KB Output is correct
34 Correct 88 ms 129528 KB Output is correct
35 Correct 88 ms 129528 KB Output is correct
36 Correct 89 ms 129528 KB Output is correct
37 Correct 88 ms 129528 KB Output is correct
38 Correct 88 ms 129532 KB Output is correct
39 Correct 89 ms 129528 KB Output is correct
40 Correct 89 ms 129528 KB Output is correct
41 Correct 91 ms 129528 KB Output is correct
42 Correct 87 ms 129528 KB Output is correct
43 Correct 89 ms 129528 KB Output is correct
44 Correct 89 ms 129528 KB Output is correct
45 Correct 88 ms 129528 KB Output is correct
46 Correct 87 ms 129528 KB Output is correct
47 Correct 87 ms 129528 KB Output is correct
48 Correct 87 ms 129528 KB Output is correct
49 Correct 87 ms 129528 KB Output is correct
50 Correct 87 ms 129528 KB Output is correct
51 Correct 87 ms 129528 KB Output is correct
52 Correct 101 ms 129528 KB Output is correct
53 Correct 98 ms 129528 KB Output is correct
54 Correct 89 ms 129656 KB Output is correct
55 Correct 88 ms 129528 KB Output is correct
56 Correct 89 ms 129528 KB Output is correct
57 Correct 86 ms 129568 KB Output is correct
58 Correct 87 ms 129528 KB Output is correct
59 Correct 88 ms 129528 KB Output is correct
60 Correct 88 ms 129528 KB Output is correct
61 Correct 87 ms 129528 KB Output is correct
62 Correct 87 ms 129528 KB Output is correct
63 Correct 86 ms 129528 KB Output is correct
64 Correct 161 ms 130680 KB Output is correct
65 Correct 144 ms 129784 KB Output is correct
66 Correct 142 ms 129592 KB Output is correct
67 Correct 133 ms 129528 KB Output is correct
68 Correct 157 ms 130680 KB Output is correct
69 Correct 148 ms 129912 KB Output is correct
70 Correct 145 ms 129656 KB Output is correct
71 Correct 142 ms 129656 KB Output is correct
72 Correct 161 ms 131320 KB Output is correct
73 Correct 161 ms 130936 KB Output is correct
74 Correct 164 ms 131056 KB Output is correct
75 Correct 155 ms 130936 KB Output is correct
76 Correct 157 ms 131832 KB Output is correct
77 Correct 158 ms 131848 KB Output is correct
78 Correct 160 ms 131832 KB Output is correct
79 Correct 157 ms 131832 KB Output is correct
80 Correct 174 ms 130680 KB Output is correct
81 Correct 149 ms 129912 KB Output is correct
82 Correct 145 ms 129660 KB Output is correct
83 Correct 134 ms 129720 KB Output is correct
84 Correct 157 ms 130680 KB Output is correct
85 Correct 144 ms 129784 KB Output is correct
86 Correct 142 ms 129656 KB Output is correct
87 Correct 139 ms 129528 KB Output is correct
88 Correct 155 ms 131448 KB Output is correct
89 Correct 160 ms 131192 KB Output is correct
90 Correct 159 ms 130936 KB Output is correct
91 Correct 152 ms 130840 KB Output is correct
92 Correct 159 ms 131832 KB Output is correct
93 Correct 161 ms 131904 KB Output is correct
94 Correct 156 ms 131832 KB Output is correct
95 Correct 164 ms 131832 KB Output is correct
96 Correct 135 ms 129528 KB Output is correct
97 Correct 136 ms 129528 KB Output is correct
98 Correct 134 ms 129528 KB Output is correct
99 Correct 149 ms 129584 KB Output is correct
100 Correct 143 ms 129656 KB Output is correct
101 Correct 138 ms 129528 KB Output is correct
102 Correct 142 ms 129528 KB Output is correct
103 Correct 135 ms 129528 KB Output is correct
104 Correct 152 ms 130680 KB Output is correct
105 Correct 145 ms 129912 KB Output is correct
106 Correct 140 ms 129592 KB Output is correct
107 Correct 135 ms 129784 KB Output is correct
108 Correct 153 ms 130680 KB Output is correct
109 Correct 148 ms 129784 KB Output is correct
110 Correct 141 ms 129656 KB Output is correct
111 Correct 137 ms 129596 KB Output is correct
112 Correct 139 ms 130680 KB Output is correct
113 Correct 146 ms 130680 KB Output is correct
114 Correct 135 ms 130640 KB Output is correct
115 Correct 140 ms 130684 KB Output is correct
116 Correct 137 ms 130680 KB Output is correct
117 Correct 138 ms 130680 KB Output is correct
118 Correct 133 ms 130824 KB Output is correct
119 Correct 136 ms 130680 KB Output is correct
120 Correct 134 ms 130680 KB Output is correct
121 Correct 140 ms 130680 KB Output is correct
122 Correct 137 ms 131832 KB Output is correct
123 Correct 138 ms 131704 KB Output is correct
124 Correct 135 ms 129784 KB Output is correct
125 Correct 134 ms 129676 KB Output is correct
126 Correct 127 ms 129656 KB Output is correct
127 Correct 134 ms 130040 KB Output is correct
128 Correct 133 ms 129656 KB Output is correct
129 Correct 130 ms 129676 KB Output is correct
130 Correct 135 ms 130168 KB Output is correct
131 Correct 127 ms 129852 KB Output is correct
132 Correct 129 ms 129656 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 88 ms 129656 KB Output is correct
2 Correct 90 ms 129528 KB Output is correct
3 Correct 91 ms 129528 KB Output is correct
4 Correct 89 ms 129452 KB Output is correct
5 Correct 89 ms 129584 KB Output is correct
6 Correct 94 ms 129528 KB Output is correct
7 Correct 91 ms 129528 KB Output is correct
8 Correct 90 ms 129528 KB Output is correct
9 Correct 89 ms 129528 KB Output is correct
10 Correct 88 ms 129532 KB Output is correct
11 Correct 90 ms 129528 KB Output is correct
12 Correct 91 ms 129656 KB Output is correct
13 Correct 90 ms 129688 KB Output is correct
14 Correct 88 ms 129528 KB Output is correct
15 Correct 90 ms 129624 KB Output is correct
16 Correct 90 ms 129656 KB Output is correct
17 Correct 87 ms 129528 KB Output is correct
18 Correct 102 ms 129532 KB Output is correct
19 Correct 89 ms 129528 KB Output is correct
20 Correct 90 ms 129528 KB Output is correct
21 Correct 92 ms 129528 KB Output is correct
22 Correct 89 ms 129520 KB Output is correct
23 Correct 88 ms 129508 KB Output is correct
24 Correct 88 ms 129448 KB Output is correct
25 Correct 90 ms 129528 KB Output is correct
26 Correct 92 ms 129528 KB Output is correct
27 Correct 88 ms 129528 KB Output is correct
28 Correct 91 ms 129528 KB Output is correct
29 Correct 90 ms 129532 KB Output is correct
30 Correct 90 ms 129528 KB Output is correct
31 Correct 115 ms 129528 KB Output is correct
32 Correct 90 ms 129528 KB Output is correct
33 Correct 90 ms 129528 KB Output is correct
34 Correct 88 ms 129528 KB Output is correct
35 Correct 88 ms 129528 KB Output is correct
36 Correct 89 ms 129528 KB Output is correct
37 Correct 88 ms 129528 KB Output is correct
38 Correct 88 ms 129532 KB Output is correct
39 Correct 89 ms 129528 KB Output is correct
40 Correct 89 ms 129528 KB Output is correct
41 Correct 91 ms 129528 KB Output is correct
42 Correct 87 ms 129528 KB Output is correct
43 Correct 89 ms 129528 KB Output is correct
44 Correct 89 ms 129528 KB Output is correct
45 Correct 88 ms 129528 KB Output is correct
46 Correct 87 ms 129528 KB Output is correct
47 Correct 87 ms 129528 KB Output is correct
48 Correct 87 ms 129528 KB Output is correct
49 Correct 87 ms 129528 KB Output is correct
50 Correct 87 ms 129528 KB Output is correct
51 Correct 87 ms 129528 KB Output is correct
52 Correct 101 ms 129528 KB Output is correct
53 Correct 98 ms 129528 KB Output is correct
54 Correct 89 ms 129656 KB Output is correct
55 Correct 88 ms 129528 KB Output is correct
56 Correct 89 ms 129528 KB Output is correct
57 Correct 86 ms 129568 KB Output is correct
58 Correct 87 ms 129528 KB Output is correct
59 Correct 88 ms 129528 KB Output is correct
60 Correct 88 ms 129528 KB Output is correct
61 Correct 87 ms 129528 KB Output is correct
62 Correct 87 ms 129528 KB Output is correct
63 Correct 86 ms 129528 KB Output is correct
64 Correct 161 ms 130680 KB Output is correct
65 Correct 144 ms 129784 KB Output is correct
66 Correct 142 ms 129592 KB Output is correct
67 Correct 133 ms 129528 KB Output is correct
68 Correct 157 ms 130680 KB Output is correct
69 Correct 148 ms 129912 KB Output is correct
70 Correct 145 ms 129656 KB Output is correct
71 Correct 142 ms 129656 KB Output is correct
72 Correct 161 ms 131320 KB Output is correct
73 Correct 161 ms 130936 KB Output is correct
74 Correct 164 ms 131056 KB Output is correct
75 Correct 155 ms 130936 KB Output is correct
76 Correct 157 ms 131832 KB Output is correct
77 Correct 158 ms 131848 KB Output is correct
78 Correct 160 ms 131832 KB Output is correct
79 Correct 157 ms 131832 KB Output is correct
80 Correct 174 ms 130680 KB Output is correct
81 Correct 149 ms 129912 KB Output is correct
82 Correct 145 ms 129660 KB Output is correct
83 Correct 134 ms 129720 KB Output is correct
84 Correct 157 ms 130680 KB Output is correct
85 Correct 144 ms 129784 KB Output is correct
86 Correct 142 ms 129656 KB Output is correct
87 Correct 139 ms 129528 KB Output is correct
88 Correct 155 ms 131448 KB Output is correct
89 Correct 160 ms 131192 KB Output is correct
90 Correct 159 ms 130936 KB Output is correct
91 Correct 152 ms 130840 KB Output is correct
92 Correct 159 ms 131832 KB Output is correct
93 Correct 161 ms 131904 KB Output is correct
94 Correct 156 ms 131832 KB Output is correct
95 Correct 164 ms 131832 KB Output is correct
96 Correct 135 ms 129528 KB Output is correct
97 Correct 136 ms 129528 KB Output is correct
98 Correct 134 ms 129528 KB Output is correct
99 Correct 149 ms 129584 KB Output is correct
100 Correct 143 ms 129656 KB Output is correct
101 Correct 138 ms 129528 KB Output is correct
102 Correct 142 ms 129528 KB Output is correct
103 Correct 135 ms 129528 KB Output is correct
104 Correct 152 ms 130680 KB Output is correct
105 Correct 145 ms 129912 KB Output is correct
106 Correct 140 ms 129592 KB Output is correct
107 Correct 135 ms 129784 KB Output is correct
108 Correct 153 ms 130680 KB Output is correct
109 Correct 148 ms 129784 KB Output is correct
110 Correct 141 ms 129656 KB Output is correct
111 Correct 137 ms 129596 KB Output is correct
112 Correct 139 ms 130680 KB Output is correct
113 Correct 146 ms 130680 KB Output is correct
114 Correct 135 ms 130640 KB Output is correct
115 Correct 140 ms 130684 KB Output is correct
116 Correct 137 ms 130680 KB Output is correct
117 Correct 138 ms 130680 KB Output is correct
118 Correct 133 ms 130824 KB Output is correct
119 Correct 136 ms 130680 KB Output is correct
120 Correct 134 ms 130680 KB Output is correct
121 Correct 140 ms 130680 KB Output is correct
122 Correct 137 ms 131832 KB Output is correct
123 Correct 138 ms 131704 KB Output is correct
124 Correct 135 ms 129784 KB Output is correct
125 Correct 134 ms 129676 KB Output is correct
126 Correct 127 ms 129656 KB Output is correct
127 Correct 134 ms 130040 KB Output is correct
128 Correct 133 ms 129656 KB Output is correct
129 Correct 130 ms 129676 KB Output is correct
130 Correct 135 ms 130168 KB Output is correct
131 Correct 127 ms 129852 KB Output is correct
132 Correct 129 ms 129656 KB Output is correct
133 Correct 406 ms 134648 KB Output is correct
134 Correct 366 ms 130808 KB Output is correct
135 Correct 331 ms 130040 KB Output is correct
136 Correct 296 ms 129952 KB Output is correct
137 Correct 410 ms 134520 KB Output is correct
138 Correct 365 ms 130808 KB Output is correct
139 Correct 330 ms 130172 KB Output is correct
140 Correct 326 ms 129912 KB Output is correct
141 Correct 455 ms 137468 KB Output is correct
142 Correct 419 ms 135800 KB Output is correct
143 Correct 415 ms 135344 KB Output is correct
144 Correct 416 ms 135288 KB Output is correct
145 Correct 427 ms 139128 KB Output is correct
146 Correct 426 ms 139128 KB Output is correct
147 Correct 432 ms 139128 KB Output is correct
148 Correct 445 ms 139256 KB Output is correct
149 Correct 406 ms 134424 KB Output is correct
150 Correct 360 ms 130680 KB Output is correct
151 Correct 339 ms 130040 KB Output is correct
152 Correct 292 ms 129912 KB Output is correct
153 Correct 413 ms 134376 KB Output is correct
154 Correct 369 ms 130680 KB Output is correct
155 Correct 336 ms 129912 KB Output is correct
156 Correct 321 ms 129912 KB Output is correct
157 Correct 423 ms 137208 KB Output is correct
158 Correct 407 ms 135800 KB Output is correct
159 Correct 404 ms 135544 KB Output is correct
160 Correct 437 ms 135416 KB Output is correct
161 Correct 433 ms 139128 KB Output is correct
162 Correct 427 ms 139128 KB Output is correct
163 Correct 427 ms 139128 KB Output is correct
164 Correct 426 ms 139188 KB Output is correct
165 Correct 295 ms 129784 KB Output is correct
166 Correct 293 ms 129912 KB Output is correct
167 Correct 294 ms 129828 KB Output is correct
168 Correct 300 ms 129784 KB Output is correct
169 Correct 318 ms 129912 KB Output is correct
170 Correct 315 ms 129912 KB Output is correct
171 Correct 313 ms 129912 KB Output is correct
172 Correct 293 ms 129784 KB Output is correct
173 Correct 396 ms 134520 KB Output is correct
174 Correct 368 ms 130680 KB Output is correct
175 Correct 337 ms 129912 KB Output is correct
176 Correct 323 ms 129912 KB Output is correct
177 Correct 397 ms 134392 KB Output is correct
178 Correct 356 ms 130680 KB Output is correct
179 Correct 347 ms 129984 KB Output is correct
180 Correct 294 ms 129912 KB Output is correct
181 Correct 298 ms 134472 KB Output is correct
182 Correct 334 ms 134776 KB Output is correct
183 Correct 291 ms 134520 KB Output is correct
184 Correct 321 ms 134568 KB Output is correct
185 Correct 301 ms 134648 KB Output is correct
186 Correct 328 ms 134524 KB Output is correct
187 Correct 288 ms 134520 KB Output is correct
188 Correct 316 ms 134520 KB Output is correct
189 Correct 302 ms 134520 KB Output is correct
190 Correct 334 ms 134648 KB Output is correct
191 Correct 301 ms 139128 KB Output is correct
192 Correct 318 ms 139128 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 936 ms 167556 KB Output is correct
2 Correct 928 ms 167648 KB Output is correct
3 Correct 1762 ms 205560 KB Output is correct
4 Correct 1761 ms 205688 KB Output is correct
5 Correct 2174 ms 224768 KB Output is correct
6 Correct 2231 ms 224676 KB Output is correct
7 Correct 2311 ms 133380 KB Output is correct
8 Correct 2041 ms 131448 KB Output is correct
9 Correct 1957 ms 131412 KB Output is correct
10 Correct 2467 ms 136756 KB Output is correct
11 Correct 2007 ms 131492 KB Output is correct
12 Correct 1983 ms 131428 KB Output is correct
13 Correct 2535 ms 138060 KB Output is correct
14 Correct 2016 ms 131736 KB Output is correct
15 Correct 1986 ms 131528 KB Output is correct
16 Correct 2017 ms 131524 KB Output is correct
17 Correct 1945 ms 131576 KB Output is correct
18 Correct 1965 ms 131448 KB Output is correct
19 Correct 1968 ms 131704 KB Output is correct
20 Correct 1973 ms 131576 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 88 ms 129656 KB Output is correct
2 Correct 90 ms 129528 KB Output is correct
3 Correct 91 ms 129528 KB Output is correct
4 Correct 89 ms 129452 KB Output is correct
5 Correct 89 ms 129584 KB Output is correct
6 Correct 94 ms 129528 KB Output is correct
7 Correct 91 ms 129528 KB Output is correct
8 Correct 90 ms 129528 KB Output is correct
9 Correct 89 ms 129528 KB Output is correct
10 Correct 88 ms 129532 KB Output is correct
11 Correct 90 ms 129528 KB Output is correct
12 Correct 91 ms 129656 KB Output is correct
13 Correct 90 ms 129688 KB Output is correct
14 Correct 88 ms 129528 KB Output is correct
15 Correct 90 ms 129624 KB Output is correct
16 Correct 90 ms 129656 KB Output is correct
17 Correct 87 ms 129528 KB Output is correct
18 Correct 102 ms 129532 KB Output is correct
19 Correct 89 ms 129528 KB Output is correct
20 Correct 90 ms 129528 KB Output is correct
21 Correct 92 ms 129528 KB Output is correct
22 Correct 89 ms 129520 KB Output is correct
23 Correct 88 ms 129508 KB Output is correct
24 Correct 88 ms 129448 KB Output is correct
25 Correct 90 ms 129528 KB Output is correct
26 Correct 92 ms 129528 KB Output is correct
27 Correct 88 ms 129528 KB Output is correct
28 Correct 91 ms 129528 KB Output is correct
29 Correct 90 ms 129532 KB Output is correct
30 Correct 90 ms 129528 KB Output is correct
31 Correct 115 ms 129528 KB Output is correct
32 Correct 90 ms 129528 KB Output is correct
33 Correct 90 ms 129528 KB Output is correct
34 Correct 88 ms 129528 KB Output is correct
35 Correct 88 ms 129528 KB Output is correct
36 Correct 89 ms 129528 KB Output is correct
37 Correct 88 ms 129528 KB Output is correct
38 Correct 88 ms 129532 KB Output is correct
39 Correct 89 ms 129528 KB Output is correct
40 Correct 89 ms 129528 KB Output is correct
41 Correct 91 ms 129528 KB Output is correct
42 Correct 87 ms 129528 KB Output is correct
43 Correct 89 ms 129528 KB Output is correct
44 Correct 89 ms 129528 KB Output is correct
45 Correct 88 ms 129528 KB Output is correct
46 Correct 87 ms 129528 KB Output is correct
47 Correct 87 ms 129528 KB Output is correct
48 Correct 87 ms 129528 KB Output is correct
49 Correct 87 ms 129528 KB Output is correct
50 Correct 87 ms 129528 KB Output is correct
51 Correct 87 ms 129528 KB Output is correct
52 Correct 101 ms 129528 KB Output is correct
53 Correct 98 ms 129528 KB Output is correct
54 Correct 89 ms 129656 KB Output is correct
55 Correct 88 ms 129528 KB Output is correct
56 Correct 89 ms 129528 KB Output is correct
57 Correct 86 ms 129568 KB Output is correct
58 Correct 87 ms 129528 KB Output is correct
59 Correct 88 ms 129528 KB Output is correct
60 Correct 88 ms 129528 KB Output is correct
61 Correct 87 ms 129528 KB Output is correct
62 Correct 87 ms 129528 KB Output is correct
63 Correct 86 ms 129528 KB Output is correct
64 Correct 161 ms 130680 KB Output is correct
65 Correct 144 ms 129784 KB Output is correct
66 Correct 142 ms 129592 KB Output is correct
67 Correct 133 ms 129528 KB Output is correct
68 Correct 157 ms 130680 KB Output is correct
69 Correct 148 ms 129912 KB Output is correct
70 Correct 145 ms 129656 KB Output is correct
71 Correct 142 ms 129656 KB Output is correct
72 Correct 161 ms 131320 KB Output is correct
73 Correct 161 ms 130936 KB Output is correct
74 Correct 164 ms 131056 KB Output is correct
75 Correct 155 ms 130936 KB Output is correct
76 Correct 157 ms 131832 KB Output is correct
77 Correct 158 ms 131848 KB Output is correct
78 Correct 160 ms 131832 KB Output is correct
79 Correct 157 ms 131832 KB Output is correct
80 Correct 174 ms 130680 KB Output is correct
81 Correct 149 ms 129912 KB Output is correct
82 Correct 145 ms 129660 KB Output is correct
83 Correct 134 ms 129720 KB Output is correct
84 Correct 157 ms 130680 KB Output is correct
85 Correct 144 ms 129784 KB Output is correct
86 Correct 142 ms 129656 KB Output is correct
87 Correct 139 ms 129528 KB Output is correct
88 Correct 155 ms 131448 KB Output is correct
89 Correct 160 ms 131192 KB Output is correct
90 Correct 159 ms 130936 KB Output is correct
91 Correct 152 ms 130840 KB Output is correct
92 Correct 159 ms 131832 KB Output is correct
93 Correct 161 ms 131904 KB Output is correct
94 Correct 156 ms 131832 KB Output is correct
95 Correct 164 ms 131832 KB Output is correct
96 Correct 135 ms 129528 KB Output is correct
97 Correct 136 ms 129528 KB Output is correct
98 Correct 134 ms 129528 KB Output is correct
99 Correct 149 ms 129584 KB Output is correct
100 Correct 143 ms 129656 KB Output is correct
101 Correct 138 ms 129528 KB Output is correct
102 Correct 142 ms 129528 KB Output is correct
103 Correct 135 ms 129528 KB Output is correct
104 Correct 152 ms 130680 KB Output is correct
105 Correct 145 ms 129912 KB Output is correct
106 Correct 140 ms 129592 KB Output is correct
107 Correct 135 ms 129784 KB Output is correct
108 Correct 153 ms 130680 KB Output is correct
109 Correct 148 ms 129784 KB Output is correct
110 Correct 141 ms 129656 KB Output is correct
111 Correct 137 ms 129596 KB Output is correct
112 Correct 139 ms 130680 KB Output is correct
113 Correct 146 ms 130680 KB Output is correct
114 Correct 135 ms 130640 KB Output is correct
115 Correct 140 ms 130684 KB Output is correct
116 Correct 137 ms 130680 KB Output is correct
117 Correct 138 ms 130680 KB Output is correct
118 Correct 133 ms 130824 KB Output is correct
119 Correct 136 ms 130680 KB Output is correct
120 Correct 134 ms 130680 KB Output is correct
121 Correct 140 ms 130680 KB Output is correct
122 Correct 137 ms 131832 KB Output is correct
123 Correct 138 ms 131704 KB Output is correct
124 Correct 135 ms 129784 KB Output is correct
125 Correct 134 ms 129676 KB Output is correct
126 Correct 127 ms 129656 KB Output is correct
127 Correct 134 ms 130040 KB Output is correct
128 Correct 133 ms 129656 KB Output is correct
129 Correct 130 ms 129676 KB Output is correct
130 Correct 135 ms 130168 KB Output is correct
131 Correct 127 ms 129852 KB Output is correct
132 Correct 129 ms 129656 KB Output is correct
133 Correct 406 ms 134648 KB Output is correct
134 Correct 366 ms 130808 KB Output is correct
135 Correct 331 ms 130040 KB Output is correct
136 Correct 296 ms 129952 KB Output is correct
137 Correct 410 ms 134520 KB Output is correct
138 Correct 365 ms 130808 KB Output is correct
139 Correct 330 ms 130172 KB Output is correct
140 Correct 326 ms 129912 KB Output is correct
141 Correct 455 ms 137468 KB Output is correct
142 Correct 419 ms 135800 KB Output is correct
143 Correct 415 ms 135344 KB Output is correct
144 Correct 416 ms 135288 KB Output is correct
145 Correct 427 ms 139128 KB Output is correct
146 Correct 426 ms 139128 KB Output is correct
147 Correct 432 ms 139128 KB Output is correct
148 Correct 445 ms 139256 KB Output is correct
149 Correct 406 ms 134424 KB Output is correct
150 Correct 360 ms 130680 KB Output is correct
151 Correct 339 ms 130040 KB Output is correct
152 Correct 292 ms 129912 KB Output is correct
153 Correct 413 ms 134376 KB Output is correct
154 Correct 369 ms 130680 KB Output is correct
155 Correct 336 ms 129912 KB Output is correct
156 Correct 321 ms 129912 KB Output is correct
157 Correct 423 ms 137208 KB Output is correct
158 Correct 407 ms 135800 KB Output is correct
159 Correct 404 ms 135544 KB Output is correct
160 Correct 437 ms 135416 KB Output is correct
161 Correct 433 ms 139128 KB Output is correct
162 Correct 427 ms 139128 KB Output is correct
163 Correct 427 ms 139128 KB Output is correct
164 Correct 426 ms 139188 KB Output is correct
165 Correct 295 ms 129784 KB Output is correct
166 Correct 293 ms 129912 KB Output is correct
167 Correct 294 ms 129828 KB Output is correct
168 Correct 300 ms 129784 KB Output is correct
169 Correct 318 ms 129912 KB Output is correct
170 Correct 315 ms 129912 KB Output is correct
171 Correct 313 ms 129912 KB Output is correct
172 Correct 293 ms 129784 KB Output is correct
173 Correct 396 ms 134520 KB Output is correct
174 Correct 368 ms 130680 KB Output is correct
175 Correct 337 ms 129912 KB Output is correct
176 Correct 323 ms 129912 KB Output is correct
177 Correct 397 ms 134392 KB Output is correct
178 Correct 356 ms 130680 KB Output is correct
179 Correct 347 ms 129984 KB Output is correct
180 Correct 294 ms 129912 KB Output is correct
181 Correct 298 ms 134472 KB Output is correct
182 Correct 334 ms 134776 KB Output is correct
183 Correct 291 ms 134520 KB Output is correct
184 Correct 321 ms 134568 KB Output is correct
185 Correct 301 ms 134648 KB Output is correct
186 Correct 328 ms 134524 KB Output is correct
187 Correct 288 ms 134520 KB Output is correct
188 Correct 316 ms 134520 KB Output is correct
189 Correct 302 ms 134520 KB Output is correct
190 Correct 334 ms 134648 KB Output is correct
191 Correct 301 ms 139128 KB Output is correct
192 Correct 318 ms 139128 KB Output is correct
193 Correct 936 ms 167556 KB Output is correct
194 Correct 928 ms 167648 KB Output is correct
195 Correct 1762 ms 205560 KB Output is correct
196 Correct 1761 ms 205688 KB Output is correct
197 Correct 2174 ms 224768 KB Output is correct
198 Correct 2231 ms 224676 KB Output is correct
199 Correct 2311 ms 133380 KB Output is correct
200 Correct 2041 ms 131448 KB Output is correct
201 Correct 1957 ms 131412 KB Output is correct
202 Correct 2467 ms 136756 KB Output is correct
203 Correct 2007 ms 131492 KB Output is correct
204 Correct 1983 ms 131428 KB Output is correct
205 Correct 2535 ms 138060 KB Output is correct
206 Correct 2016 ms 131736 KB Output is correct
207 Correct 1986 ms 131528 KB Output is correct
208 Correct 2017 ms 131524 KB Output is correct
209 Correct 1945 ms 131576 KB Output is correct
210 Correct 1965 ms 131448 KB Output is correct
211 Correct 1968 ms 131704 KB Output is correct
212 Correct 1973 ms 131576 KB Output is correct
213 Correct 4123 ms 178824 KB Output is correct
214 Correct 3544 ms 141572 KB Output is correct
215 Correct 2897 ms 133752 KB Output is correct
216 Correct 2341 ms 133244 KB Output is correct
217 Correct 4113 ms 178796 KB Output is correct
218 Correct 3657 ms 141644 KB Output is correct
219 Correct 2923 ms 133472 KB Output is correct
220 Correct 2450 ms 132728 KB Output is correct
221 Correct 4173 ms 206836 KB Output is correct
222 Correct 4114 ms 191812 KB Output is correct
223 Correct 4043 ms 188416 KB Output is correct
224 Correct 4067 ms 187976 KB Output is correct
225 Correct 4205 ms 225536 KB Output is correct
226 Correct 4251 ms 225636 KB Output is correct
227 Correct 4227 ms 225528 KB Output is correct
228 Correct 4272 ms 225528 KB Output is correct
229 Correct 4086 ms 178424 KB Output is correct
230 Correct 3650 ms 140920 KB Output is correct
231 Correct 2887 ms 133368 KB Output is correct
232 Correct 2326 ms 132728 KB Output is correct
233 Correct 4096 ms 178552 KB Output is correct
234 Correct 3603 ms 141048 KB Output is correct
235 Correct 2933 ms 133768 KB Output is correct
236 Correct 2490 ms 132632 KB Output is correct
237 Correct 4180 ms 206620 KB Output is correct
238 Correct 4114 ms 191736 KB Output is correct
239 Correct 4124 ms 188736 KB Output is correct
240 Correct 4148 ms 188004 KB Output is correct
241 Correct 4290 ms 225660 KB Output is correct
242 Correct 4305 ms 225440 KB Output is correct
243 Correct 4295 ms 225376 KB Output is correct
244 Correct 4237 ms 225280 KB Output is correct
245 Correct 2137 ms 133112 KB Output is correct
246 Correct 2156 ms 133112 KB Output is correct
247 Correct 2176 ms 133372 KB Output is correct
248 Correct 2141 ms 133004 KB Output is correct
249 Correct 2396 ms 132984 KB Output is correct
250 Correct 2451 ms 132728 KB Output is correct
251 Correct 2448 ms 132764 KB Output is correct
252 Correct 2276 ms 133040 KB Output is correct
253 Correct 4038 ms 178420 KB Output is correct
254 Correct 3408 ms 141284 KB Output is correct
255 Correct 2835 ms 133476 KB Output is correct
256 Correct 2308 ms 132956 KB Output is correct
257 Correct 3864 ms 178576 KB Output is correct
258 Correct 3332 ms 141480 KB Output is correct
259 Correct 2833 ms 133644 KB Output is correct
260 Correct 2391 ms 133056 KB Output is correct
261 Correct 2615 ms 180184 KB Output is correct
262 Correct 3190 ms 180320 KB Output is correct
263 Correct 2055 ms 180012 KB Output is correct
264 Correct 2636 ms 180232 KB Output is correct
265 Correct 2550 ms 180192 KB Output is correct
266 Correct 3203 ms 179916 KB Output is correct
267 Correct 2062 ms 180032 KB Output is correct
268 Correct 2648 ms 180044 KB Output is correct
269 Correct 2183 ms 224496 KB Output is correct
270 Correct 2217 ms 224520 KB Output is correct
271 Correct 2398 ms 134520 KB Output is correct
272 Correct 2001 ms 131552 KB Output is correct
273 Correct 2538 ms 137772 KB Output is correct
274 Correct 2013 ms 131448 KB Output is correct
275 Runtime error 1389 ms 359124 KB Execution killed with signal 11 (could be triggered by violating memory limits)