답안 #312036

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
312036 2020-10-12T08:00:11 Z wildturtle Interval Collection (CCO20_day2problem2) C++14
22 / 25
4281 ms 478284 KB
#include<bits/stdc++.h>
using namespace std;
long long a,b,t,tree[4000035],treeL[4000035],treeR[4000035];
multiset <long long> stl,str,msl[1000005],msr[1000005];
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]=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 (long long 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+5,b,0);
			update(1,1,1e6+5,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+5,b,0);
			update(1,1,1e6+5,a,1);
		}
		if(*(stl.bolo)<=*(str.tavi)) cout<<*(msr[*(stl.bolo)].tavi)-*(msl[*(str.tavi)].bolo)<<endl;
		else cout<<tree[1]<<endl;
	}
}
# 결과 실행 시간 메모리 Grader output
1 Correct 120 ms 188280 KB Output is correct
2 Correct 118 ms 188280 KB Output is correct
3 Correct 121 ms 188152 KB Output is correct
4 Correct 126 ms 188152 KB Output is correct
5 Correct 121 ms 188284 KB Output is correct
6 Correct 124 ms 188152 KB Output is correct
7 Correct 123 ms 188152 KB Output is correct
8 Correct 123 ms 188152 KB Output is correct
9 Correct 122 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 121 ms 188232 KB Output is correct
13 Correct 121 ms 188280 KB Output is correct
14 Correct 121 ms 188280 KB Output is correct
15 Correct 124 ms 188408 KB Output is correct
16 Correct 120 ms 188280 KB Output is correct
17 Correct 121 ms 188280 KB Output is correct
18 Correct 120 ms 188408 KB Output is correct
19 Correct 121 ms 188152 KB Output is correct
20 Correct 123 ms 188152 KB Output is correct
21 Correct 122 ms 188408 KB Output is correct
22 Correct 122 ms 188152 KB Output is correct
23 Correct 122 ms 188152 KB Output is correct
24 Correct 120 ms 188152 KB Output is correct
25 Correct 120 ms 188280 KB Output is correct
26 Correct 123 ms 188280 KB Output is correct
27 Correct 121 ms 188280 KB Output is correct
28 Correct 122 ms 188280 KB Output is correct
29 Correct 121 ms 188280 KB Output is correct
30 Correct 119 ms 188284 KB Output is correct
31 Correct 122 ms 188280 KB Output is correct
32 Correct 120 ms 188408 KB Output is correct
33 Correct 123 ms 188152 KB Output is correct
34 Correct 123 ms 188152 KB Output is correct
35 Correct 119 ms 188152 KB Output is correct
36 Correct 128 ms 188280 KB Output is correct
37 Correct 120 ms 188152 KB Output is correct
38 Correct 121 ms 188152 KB Output is correct
39 Correct 121 ms 188152 KB Output is correct
40 Correct 120 ms 188192 KB Output is correct
41 Correct 122 ms 188280 KB Output is correct
42 Correct 125 ms 188156 KB Output is correct
43 Correct 121 ms 188152 KB Output is correct
44 Correct 120 ms 188280 KB Output is correct
45 Correct 121 ms 188280 KB Output is correct
46 Correct 120 ms 188156 KB Output is correct
47 Correct 120 ms 188156 KB Output is correct
48 Correct 121 ms 188224 KB Output is correct
49 Correct 120 ms 188280 KB Output is correct
50 Correct 119 ms 188260 KB Output is correct
51 Correct 119 ms 188280 KB Output is correct
52 Correct 120 ms 188280 KB Output is correct
53 Correct 122 ms 188280 KB Output is correct
54 Correct 120 ms 188280 KB Output is correct
55 Correct 119 ms 188280 KB Output is correct
56 Correct 118 ms 188252 KB Output is correct
57 Correct 120 ms 188184 KB Output is correct
58 Correct 122 ms 188280 KB Output is correct
59 Correct 122 ms 188280 KB Output is correct
60 Correct 119 ms 188280 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 120 ms 188280 KB Output is correct
2 Correct 118 ms 188280 KB Output is correct
3 Correct 121 ms 188152 KB Output is correct
4 Correct 126 ms 188152 KB Output is correct
5 Correct 121 ms 188284 KB Output is correct
6 Correct 124 ms 188152 KB Output is correct
7 Correct 123 ms 188152 KB Output is correct
8 Correct 123 ms 188152 KB Output is correct
9 Correct 122 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 121 ms 188232 KB Output is correct
13 Correct 121 ms 188280 KB Output is correct
14 Correct 121 ms 188280 KB Output is correct
15 Correct 124 ms 188408 KB Output is correct
16 Correct 120 ms 188280 KB Output is correct
17 Correct 121 ms 188280 KB Output is correct
18 Correct 120 ms 188408 KB Output is correct
19 Correct 121 ms 188152 KB Output is correct
20 Correct 123 ms 188152 KB Output is correct
21 Correct 122 ms 188408 KB Output is correct
22 Correct 122 ms 188152 KB Output is correct
23 Correct 122 ms 188152 KB Output is correct
24 Correct 120 ms 188152 KB Output is correct
25 Correct 120 ms 188280 KB Output is correct
26 Correct 123 ms 188280 KB Output is correct
27 Correct 121 ms 188280 KB Output is correct
28 Correct 122 ms 188280 KB Output is correct
29 Correct 121 ms 188280 KB Output is correct
30 Correct 119 ms 188284 KB Output is correct
31 Correct 122 ms 188280 KB Output is correct
32 Correct 120 ms 188408 KB Output is correct
33 Correct 123 ms 188152 KB Output is correct
34 Correct 123 ms 188152 KB Output is correct
35 Correct 119 ms 188152 KB Output is correct
36 Correct 128 ms 188280 KB Output is correct
37 Correct 120 ms 188152 KB Output is correct
38 Correct 121 ms 188152 KB Output is correct
39 Correct 121 ms 188152 KB Output is correct
40 Correct 120 ms 188192 KB Output is correct
41 Correct 122 ms 188280 KB Output is correct
42 Correct 125 ms 188156 KB Output is correct
43 Correct 121 ms 188152 KB Output is correct
44 Correct 120 ms 188280 KB Output is correct
45 Correct 121 ms 188280 KB Output is correct
46 Correct 120 ms 188156 KB Output is correct
47 Correct 120 ms 188156 KB Output is correct
48 Correct 121 ms 188224 KB Output is correct
49 Correct 120 ms 188280 KB Output is correct
50 Correct 119 ms 188260 KB Output is correct
51 Correct 119 ms 188280 KB Output is correct
52 Correct 120 ms 188280 KB Output is correct
53 Correct 122 ms 188280 KB Output is correct
54 Correct 120 ms 188280 KB Output is correct
55 Correct 119 ms 188280 KB Output is correct
56 Correct 118 ms 188252 KB Output is correct
57 Correct 120 ms 188184 KB Output is correct
58 Correct 122 ms 188280 KB Output is correct
59 Correct 122 ms 188280 KB Output is correct
60 Correct 119 ms 188280 KB Output is correct
61 Correct 118 ms 188280 KB Output is correct
62 Correct 118 ms 188152 KB Output is correct
63 Correct 117 ms 188152 KB Output is correct
64 Correct 186 ms 189452 KB Output is correct
65 Correct 179 ms 188536 KB Output is correct
66 Correct 180 ms 188280 KB Output is correct
67 Correct 166 ms 188268 KB Output is correct
68 Correct 185 ms 189432 KB Output is correct
69 Correct 177 ms 188600 KB Output is correct
70 Correct 175 ms 188280 KB Output is correct
71 Correct 171 ms 188408 KB Output is correct
72 Correct 188 ms 190120 KB Output is correct
73 Correct 187 ms 189688 KB Output is correct
74 Correct 193 ms 189692 KB Output is correct
75 Correct 183 ms 189560 KB Output is correct
76 Correct 194 ms 190456 KB Output is correct
77 Correct 195 ms 190544 KB Output is correct
78 Correct 189 ms 190456 KB Output is correct
79 Correct 189 ms 190456 KB Output is correct
80 Correct 187 ms 189432 KB Output is correct
81 Correct 176 ms 188536 KB Output is correct
82 Correct 176 ms 188280 KB Output is correct
83 Correct 168 ms 188280 KB Output is correct
84 Correct 187 ms 189580 KB Output is correct
85 Correct 181 ms 188536 KB Output is correct
86 Correct 179 ms 188280 KB Output is correct
87 Correct 170 ms 188280 KB Output is correct
88 Correct 189 ms 190076 KB Output is correct
89 Correct 191 ms 189688 KB Output is correct
90 Correct 185 ms 189688 KB Output is correct
91 Correct 187 ms 189560 KB Output is correct
92 Correct 195 ms 190456 KB Output is correct
93 Correct 189 ms 190444 KB Output is correct
94 Correct 196 ms 190456 KB Output is correct
95 Correct 195 ms 190460 KB Output is correct
96 Correct 170 ms 188280 KB Output is correct
97 Correct 170 ms 188280 KB Output is correct
98 Correct 168 ms 188280 KB Output is correct
99 Correct 169 ms 188280 KB Output is correct
100 Correct 170 ms 188280 KB Output is correct
101 Correct 171 ms 188280 KB Output is correct
102 Correct 171 ms 188280 KB Output is correct
103 Correct 166 ms 188280 KB Output is correct
104 Correct 187 ms 189432 KB Output is correct
105 Correct 178 ms 188536 KB Output is correct
106 Correct 172 ms 188280 KB Output is correct
107 Correct 168 ms 188280 KB Output is correct
108 Correct 185 ms 189388 KB Output is correct
109 Correct 179 ms 188664 KB Output is correct
110 Correct 173 ms 188408 KB Output is correct
111 Correct 168 ms 188280 KB Output is correct
112 Correct 170 ms 189432 KB Output is correct
113 Correct 172 ms 189524 KB Output is correct
114 Correct 166 ms 189432 KB Output is correct
115 Correct 171 ms 189432 KB Output is correct
116 Correct 170 ms 189492 KB Output is correct
117 Correct 171 ms 189432 KB Output is correct
118 Correct 164 ms 189560 KB Output is correct
119 Correct 171 ms 189432 KB Output is correct
120 Correct 166 ms 189432 KB Output is correct
121 Correct 176 ms 189432 KB Output is correct
122 Correct 172 ms 190456 KB Output is correct
123 Correct 170 ms 190468 KB Output is correct
124 Correct 169 ms 188700 KB Output is correct
125 Correct 161 ms 188536 KB Output is correct
126 Correct 161 ms 188408 KB Output is correct
127 Correct 166 ms 188748 KB Output is correct
128 Correct 160 ms 188408 KB Output is correct
129 Correct 159 ms 188280 KB Output is correct
130 Correct 170 ms 188848 KB Output is correct
131 Correct 159 ms 188408 KB Output is correct
132 Correct 159 ms 188408 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 120 ms 188280 KB Output is correct
2 Correct 118 ms 188280 KB Output is correct
3 Correct 121 ms 188152 KB Output is correct
4 Correct 126 ms 188152 KB Output is correct
5 Correct 121 ms 188284 KB Output is correct
6 Correct 124 ms 188152 KB Output is correct
7 Correct 123 ms 188152 KB Output is correct
8 Correct 123 ms 188152 KB Output is correct
9 Correct 122 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 121 ms 188232 KB Output is correct
13 Correct 121 ms 188280 KB Output is correct
14 Correct 121 ms 188280 KB Output is correct
15 Correct 124 ms 188408 KB Output is correct
16 Correct 120 ms 188280 KB Output is correct
17 Correct 121 ms 188280 KB Output is correct
18 Correct 120 ms 188408 KB Output is correct
19 Correct 121 ms 188152 KB Output is correct
20 Correct 123 ms 188152 KB Output is correct
21 Correct 122 ms 188408 KB Output is correct
22 Correct 122 ms 188152 KB Output is correct
23 Correct 122 ms 188152 KB Output is correct
24 Correct 120 ms 188152 KB Output is correct
25 Correct 120 ms 188280 KB Output is correct
26 Correct 123 ms 188280 KB Output is correct
27 Correct 121 ms 188280 KB Output is correct
28 Correct 122 ms 188280 KB Output is correct
29 Correct 121 ms 188280 KB Output is correct
30 Correct 119 ms 188284 KB Output is correct
31 Correct 122 ms 188280 KB Output is correct
32 Correct 120 ms 188408 KB Output is correct
33 Correct 123 ms 188152 KB Output is correct
34 Correct 123 ms 188152 KB Output is correct
35 Correct 119 ms 188152 KB Output is correct
36 Correct 128 ms 188280 KB Output is correct
37 Correct 120 ms 188152 KB Output is correct
38 Correct 121 ms 188152 KB Output is correct
39 Correct 121 ms 188152 KB Output is correct
40 Correct 120 ms 188192 KB Output is correct
41 Correct 122 ms 188280 KB Output is correct
42 Correct 125 ms 188156 KB Output is correct
43 Correct 121 ms 188152 KB Output is correct
44 Correct 120 ms 188280 KB Output is correct
45 Correct 121 ms 188280 KB Output is correct
46 Correct 120 ms 188156 KB Output is correct
47 Correct 120 ms 188156 KB Output is correct
48 Correct 121 ms 188224 KB Output is correct
49 Correct 120 ms 188280 KB Output is correct
50 Correct 119 ms 188260 KB Output is correct
51 Correct 119 ms 188280 KB Output is correct
52 Correct 120 ms 188280 KB Output is correct
53 Correct 122 ms 188280 KB Output is correct
54 Correct 120 ms 188280 KB Output is correct
55 Correct 119 ms 188280 KB Output is correct
56 Correct 118 ms 188252 KB Output is correct
57 Correct 120 ms 188184 KB Output is correct
58 Correct 122 ms 188280 KB Output is correct
59 Correct 122 ms 188280 KB Output is correct
60 Correct 119 ms 188280 KB Output is correct
61 Correct 118 ms 188280 KB Output is correct
62 Correct 118 ms 188152 KB Output is correct
63 Correct 117 ms 188152 KB Output is correct
64 Correct 186 ms 189452 KB Output is correct
65 Correct 179 ms 188536 KB Output is correct
66 Correct 180 ms 188280 KB Output is correct
67 Correct 166 ms 188268 KB Output is correct
68 Correct 185 ms 189432 KB Output is correct
69 Correct 177 ms 188600 KB Output is correct
70 Correct 175 ms 188280 KB Output is correct
71 Correct 171 ms 188408 KB Output is correct
72 Correct 188 ms 190120 KB Output is correct
73 Correct 187 ms 189688 KB Output is correct
74 Correct 193 ms 189692 KB Output is correct
75 Correct 183 ms 189560 KB Output is correct
76 Correct 194 ms 190456 KB Output is correct
77 Correct 195 ms 190544 KB Output is correct
78 Correct 189 ms 190456 KB Output is correct
79 Correct 189 ms 190456 KB Output is correct
80 Correct 187 ms 189432 KB Output is correct
81 Correct 176 ms 188536 KB Output is correct
82 Correct 176 ms 188280 KB Output is correct
83 Correct 168 ms 188280 KB Output is correct
84 Correct 187 ms 189580 KB Output is correct
85 Correct 181 ms 188536 KB Output is correct
86 Correct 179 ms 188280 KB Output is correct
87 Correct 170 ms 188280 KB Output is correct
88 Correct 189 ms 190076 KB Output is correct
89 Correct 191 ms 189688 KB Output is correct
90 Correct 185 ms 189688 KB Output is correct
91 Correct 187 ms 189560 KB Output is correct
92 Correct 195 ms 190456 KB Output is correct
93 Correct 189 ms 190444 KB Output is correct
94 Correct 196 ms 190456 KB Output is correct
95 Correct 195 ms 190460 KB Output is correct
96 Correct 170 ms 188280 KB Output is correct
97 Correct 170 ms 188280 KB Output is correct
98 Correct 168 ms 188280 KB Output is correct
99 Correct 169 ms 188280 KB Output is correct
100 Correct 170 ms 188280 KB Output is correct
101 Correct 171 ms 188280 KB Output is correct
102 Correct 171 ms 188280 KB Output is correct
103 Correct 166 ms 188280 KB Output is correct
104 Correct 187 ms 189432 KB Output is correct
105 Correct 178 ms 188536 KB Output is correct
106 Correct 172 ms 188280 KB Output is correct
107 Correct 168 ms 188280 KB Output is correct
108 Correct 185 ms 189388 KB Output is correct
109 Correct 179 ms 188664 KB Output is correct
110 Correct 173 ms 188408 KB Output is correct
111 Correct 168 ms 188280 KB Output is correct
112 Correct 170 ms 189432 KB Output is correct
113 Correct 172 ms 189524 KB Output is correct
114 Correct 166 ms 189432 KB Output is correct
115 Correct 171 ms 189432 KB Output is correct
116 Correct 170 ms 189492 KB Output is correct
117 Correct 171 ms 189432 KB Output is correct
118 Correct 164 ms 189560 KB Output is correct
119 Correct 171 ms 189432 KB Output is correct
120 Correct 166 ms 189432 KB Output is correct
121 Correct 176 ms 189432 KB Output is correct
122 Correct 172 ms 190456 KB Output is correct
123 Correct 170 ms 190468 KB Output is correct
124 Correct 169 ms 188700 KB Output is correct
125 Correct 161 ms 188536 KB Output is correct
126 Correct 161 ms 188408 KB Output is correct
127 Correct 166 ms 188748 KB Output is correct
128 Correct 160 ms 188408 KB Output is correct
129 Correct 159 ms 188280 KB Output is correct
130 Correct 170 ms 188848 KB Output is correct
131 Correct 159 ms 188408 KB Output is correct
132 Correct 159 ms 188408 KB Output is correct
133 Correct 443 ms 193080 KB Output is correct
134 Correct 405 ms 189432 KB Output is correct
135 Correct 383 ms 188600 KB Output is correct
136 Correct 324 ms 188508 KB Output is correct
137 Correct 437 ms 193400 KB Output is correct
138 Correct 390 ms 189560 KB Output is correct
139 Correct 377 ms 188800 KB Output is correct
140 Correct 348 ms 188536 KB Output is correct
141 Correct 456 ms 195960 KB Output is correct
142 Correct 448 ms 194424 KB Output is correct
143 Correct 442 ms 194076 KB Output is correct
144 Correct 437 ms 194140 KB Output is correct
145 Correct 474 ms 198008 KB Output is correct
146 Correct 463 ms 197880 KB Output is correct
147 Correct 465 ms 197880 KB Output is correct
148 Correct 449 ms 198008 KB Output is correct
149 Correct 431 ms 193144 KB Output is correct
150 Correct 400 ms 189432 KB Output is correct
151 Correct 367 ms 188664 KB Output is correct
152 Correct 332 ms 188584 KB Output is correct
153 Correct 454 ms 193272 KB Output is correct
154 Correct 395 ms 189560 KB Output is correct
155 Correct 370 ms 188664 KB Output is correct
156 Correct 347 ms 188652 KB Output is correct
157 Correct 457 ms 195960 KB Output is correct
158 Correct 447 ms 194404 KB Output is correct
159 Correct 438 ms 194168 KB Output is correct
160 Correct 437 ms 194168 KB Output is correct
161 Correct 458 ms 197752 KB Output is correct
162 Correct 453 ms 197752 KB Output is correct
163 Correct 460 ms 198008 KB Output is correct
164 Correct 467 ms 198008 KB Output is correct
165 Correct 324 ms 188528 KB Output is correct
166 Correct 323 ms 188664 KB Output is correct
167 Correct 330 ms 188536 KB Output is correct
168 Correct 323 ms 188536 KB Output is correct
169 Correct 349 ms 188664 KB Output is correct
170 Correct 346 ms 188664 KB Output is correct
171 Correct 341 ms 188664 KB Output is correct
172 Correct 324 ms 188536 KB Output is correct
173 Correct 427 ms 193272 KB Output is correct
174 Correct 383 ms 189560 KB Output is correct
175 Correct 357 ms 188668 KB Output is correct
176 Correct 325 ms 188664 KB Output is correct
177 Correct 420 ms 193144 KB Output is correct
178 Correct 386 ms 189560 KB Output is correct
179 Correct 358 ms 188664 KB Output is correct
180 Correct 334 ms 188668 KB Output is correct
181 Correct 329 ms 193160 KB Output is correct
182 Correct 364 ms 193144 KB Output is correct
183 Correct 319 ms 193144 KB Output is correct
184 Correct 354 ms 193280 KB Output is correct
185 Correct 332 ms 193144 KB Output is correct
186 Correct 366 ms 193144 KB Output is correct
187 Correct 324 ms 193144 KB Output is correct
188 Correct 347 ms 193272 KB Output is correct
189 Correct 330 ms 193144 KB Output is correct
190 Correct 377 ms 193240 KB Output is correct
191 Correct 329 ms 197752 KB Output is correct
192 Correct 335 ms 197624 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 951 ms 226424 KB Output is correct
2 Correct 968 ms 226296 KB Output is correct
3 Correct 1778 ms 264440 KB Output is correct
4 Correct 1806 ms 264188 KB Output is correct
5 Correct 2197 ms 283384 KB Output is correct
6 Correct 2236 ms 283256 KB Output is correct
7 Correct 2349 ms 192124 KB Output is correct
8 Correct 2000 ms 190408 KB Output is correct
9 Correct 1994 ms 190328 KB Output is correct
10 Correct 2506 ms 195440 KB Output is correct
11 Correct 2019 ms 190276 KB Output is correct
12 Correct 1987 ms 190064 KB Output is correct
13 Correct 2570 ms 196860 KB Output is correct
14 Correct 2020 ms 190436 KB Output is correct
15 Correct 1981 ms 190256 KB Output is correct
16 Correct 1976 ms 190200 KB Output is correct
17 Correct 1978 ms 190328 KB Output is correct
18 Correct 1976 ms 190148 KB Output is correct
19 Correct 1981 ms 190328 KB Output is correct
20 Correct 1975 ms 190348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 120 ms 188280 KB Output is correct
2 Correct 118 ms 188280 KB Output is correct
3 Correct 121 ms 188152 KB Output is correct
4 Correct 126 ms 188152 KB Output is correct
5 Correct 121 ms 188284 KB Output is correct
6 Correct 124 ms 188152 KB Output is correct
7 Correct 123 ms 188152 KB Output is correct
8 Correct 123 ms 188152 KB Output is correct
9 Correct 122 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 121 ms 188232 KB Output is correct
13 Correct 121 ms 188280 KB Output is correct
14 Correct 121 ms 188280 KB Output is correct
15 Correct 124 ms 188408 KB Output is correct
16 Correct 120 ms 188280 KB Output is correct
17 Correct 121 ms 188280 KB Output is correct
18 Correct 120 ms 188408 KB Output is correct
19 Correct 121 ms 188152 KB Output is correct
20 Correct 123 ms 188152 KB Output is correct
21 Correct 122 ms 188408 KB Output is correct
22 Correct 122 ms 188152 KB Output is correct
23 Correct 122 ms 188152 KB Output is correct
24 Correct 120 ms 188152 KB Output is correct
25 Correct 120 ms 188280 KB Output is correct
26 Correct 123 ms 188280 KB Output is correct
27 Correct 121 ms 188280 KB Output is correct
28 Correct 122 ms 188280 KB Output is correct
29 Correct 121 ms 188280 KB Output is correct
30 Correct 119 ms 188284 KB Output is correct
31 Correct 122 ms 188280 KB Output is correct
32 Correct 120 ms 188408 KB Output is correct
33 Correct 123 ms 188152 KB Output is correct
34 Correct 123 ms 188152 KB Output is correct
35 Correct 119 ms 188152 KB Output is correct
36 Correct 128 ms 188280 KB Output is correct
37 Correct 120 ms 188152 KB Output is correct
38 Correct 121 ms 188152 KB Output is correct
39 Correct 121 ms 188152 KB Output is correct
40 Correct 120 ms 188192 KB Output is correct
41 Correct 122 ms 188280 KB Output is correct
42 Correct 125 ms 188156 KB Output is correct
43 Correct 121 ms 188152 KB Output is correct
44 Correct 120 ms 188280 KB Output is correct
45 Correct 121 ms 188280 KB Output is correct
46 Correct 120 ms 188156 KB Output is correct
47 Correct 120 ms 188156 KB Output is correct
48 Correct 121 ms 188224 KB Output is correct
49 Correct 120 ms 188280 KB Output is correct
50 Correct 119 ms 188260 KB Output is correct
51 Correct 119 ms 188280 KB Output is correct
52 Correct 120 ms 188280 KB Output is correct
53 Correct 122 ms 188280 KB Output is correct
54 Correct 120 ms 188280 KB Output is correct
55 Correct 119 ms 188280 KB Output is correct
56 Correct 118 ms 188252 KB Output is correct
57 Correct 120 ms 188184 KB Output is correct
58 Correct 122 ms 188280 KB Output is correct
59 Correct 122 ms 188280 KB Output is correct
60 Correct 119 ms 188280 KB Output is correct
61 Correct 118 ms 188280 KB Output is correct
62 Correct 118 ms 188152 KB Output is correct
63 Correct 117 ms 188152 KB Output is correct
64 Correct 186 ms 189452 KB Output is correct
65 Correct 179 ms 188536 KB Output is correct
66 Correct 180 ms 188280 KB Output is correct
67 Correct 166 ms 188268 KB Output is correct
68 Correct 185 ms 189432 KB Output is correct
69 Correct 177 ms 188600 KB Output is correct
70 Correct 175 ms 188280 KB Output is correct
71 Correct 171 ms 188408 KB Output is correct
72 Correct 188 ms 190120 KB Output is correct
73 Correct 187 ms 189688 KB Output is correct
74 Correct 193 ms 189692 KB Output is correct
75 Correct 183 ms 189560 KB Output is correct
76 Correct 194 ms 190456 KB Output is correct
77 Correct 195 ms 190544 KB Output is correct
78 Correct 189 ms 190456 KB Output is correct
79 Correct 189 ms 190456 KB Output is correct
80 Correct 187 ms 189432 KB Output is correct
81 Correct 176 ms 188536 KB Output is correct
82 Correct 176 ms 188280 KB Output is correct
83 Correct 168 ms 188280 KB Output is correct
84 Correct 187 ms 189580 KB Output is correct
85 Correct 181 ms 188536 KB Output is correct
86 Correct 179 ms 188280 KB Output is correct
87 Correct 170 ms 188280 KB Output is correct
88 Correct 189 ms 190076 KB Output is correct
89 Correct 191 ms 189688 KB Output is correct
90 Correct 185 ms 189688 KB Output is correct
91 Correct 187 ms 189560 KB Output is correct
92 Correct 195 ms 190456 KB Output is correct
93 Correct 189 ms 190444 KB Output is correct
94 Correct 196 ms 190456 KB Output is correct
95 Correct 195 ms 190460 KB Output is correct
96 Correct 170 ms 188280 KB Output is correct
97 Correct 170 ms 188280 KB Output is correct
98 Correct 168 ms 188280 KB Output is correct
99 Correct 169 ms 188280 KB Output is correct
100 Correct 170 ms 188280 KB Output is correct
101 Correct 171 ms 188280 KB Output is correct
102 Correct 171 ms 188280 KB Output is correct
103 Correct 166 ms 188280 KB Output is correct
104 Correct 187 ms 189432 KB Output is correct
105 Correct 178 ms 188536 KB Output is correct
106 Correct 172 ms 188280 KB Output is correct
107 Correct 168 ms 188280 KB Output is correct
108 Correct 185 ms 189388 KB Output is correct
109 Correct 179 ms 188664 KB Output is correct
110 Correct 173 ms 188408 KB Output is correct
111 Correct 168 ms 188280 KB Output is correct
112 Correct 170 ms 189432 KB Output is correct
113 Correct 172 ms 189524 KB Output is correct
114 Correct 166 ms 189432 KB Output is correct
115 Correct 171 ms 189432 KB Output is correct
116 Correct 170 ms 189492 KB Output is correct
117 Correct 171 ms 189432 KB Output is correct
118 Correct 164 ms 189560 KB Output is correct
119 Correct 171 ms 189432 KB Output is correct
120 Correct 166 ms 189432 KB Output is correct
121 Correct 176 ms 189432 KB Output is correct
122 Correct 172 ms 190456 KB Output is correct
123 Correct 170 ms 190468 KB Output is correct
124 Correct 169 ms 188700 KB Output is correct
125 Correct 161 ms 188536 KB Output is correct
126 Correct 161 ms 188408 KB Output is correct
127 Correct 166 ms 188748 KB Output is correct
128 Correct 160 ms 188408 KB Output is correct
129 Correct 159 ms 188280 KB Output is correct
130 Correct 170 ms 188848 KB Output is correct
131 Correct 159 ms 188408 KB Output is correct
132 Correct 159 ms 188408 KB Output is correct
133 Correct 443 ms 193080 KB Output is correct
134 Correct 405 ms 189432 KB Output is correct
135 Correct 383 ms 188600 KB Output is correct
136 Correct 324 ms 188508 KB Output is correct
137 Correct 437 ms 193400 KB Output is correct
138 Correct 390 ms 189560 KB Output is correct
139 Correct 377 ms 188800 KB Output is correct
140 Correct 348 ms 188536 KB Output is correct
141 Correct 456 ms 195960 KB Output is correct
142 Correct 448 ms 194424 KB Output is correct
143 Correct 442 ms 194076 KB Output is correct
144 Correct 437 ms 194140 KB Output is correct
145 Correct 474 ms 198008 KB Output is correct
146 Correct 463 ms 197880 KB Output is correct
147 Correct 465 ms 197880 KB Output is correct
148 Correct 449 ms 198008 KB Output is correct
149 Correct 431 ms 193144 KB Output is correct
150 Correct 400 ms 189432 KB Output is correct
151 Correct 367 ms 188664 KB Output is correct
152 Correct 332 ms 188584 KB Output is correct
153 Correct 454 ms 193272 KB Output is correct
154 Correct 395 ms 189560 KB Output is correct
155 Correct 370 ms 188664 KB Output is correct
156 Correct 347 ms 188652 KB Output is correct
157 Correct 457 ms 195960 KB Output is correct
158 Correct 447 ms 194404 KB Output is correct
159 Correct 438 ms 194168 KB Output is correct
160 Correct 437 ms 194168 KB Output is correct
161 Correct 458 ms 197752 KB Output is correct
162 Correct 453 ms 197752 KB Output is correct
163 Correct 460 ms 198008 KB Output is correct
164 Correct 467 ms 198008 KB Output is correct
165 Correct 324 ms 188528 KB Output is correct
166 Correct 323 ms 188664 KB Output is correct
167 Correct 330 ms 188536 KB Output is correct
168 Correct 323 ms 188536 KB Output is correct
169 Correct 349 ms 188664 KB Output is correct
170 Correct 346 ms 188664 KB Output is correct
171 Correct 341 ms 188664 KB Output is correct
172 Correct 324 ms 188536 KB Output is correct
173 Correct 427 ms 193272 KB Output is correct
174 Correct 383 ms 189560 KB Output is correct
175 Correct 357 ms 188668 KB Output is correct
176 Correct 325 ms 188664 KB Output is correct
177 Correct 420 ms 193144 KB Output is correct
178 Correct 386 ms 189560 KB Output is correct
179 Correct 358 ms 188664 KB Output is correct
180 Correct 334 ms 188668 KB Output is correct
181 Correct 329 ms 193160 KB Output is correct
182 Correct 364 ms 193144 KB Output is correct
183 Correct 319 ms 193144 KB Output is correct
184 Correct 354 ms 193280 KB Output is correct
185 Correct 332 ms 193144 KB Output is correct
186 Correct 366 ms 193144 KB Output is correct
187 Correct 324 ms 193144 KB Output is correct
188 Correct 347 ms 193272 KB Output is correct
189 Correct 330 ms 193144 KB Output is correct
190 Correct 377 ms 193240 KB Output is correct
191 Correct 329 ms 197752 KB Output is correct
192 Correct 335 ms 197624 KB Output is correct
193 Correct 951 ms 226424 KB Output is correct
194 Correct 968 ms 226296 KB Output is correct
195 Correct 1778 ms 264440 KB Output is correct
196 Correct 1806 ms 264188 KB Output is correct
197 Correct 2197 ms 283384 KB Output is correct
198 Correct 2236 ms 283256 KB Output is correct
199 Correct 2349 ms 192124 KB Output is correct
200 Correct 2000 ms 190408 KB Output is correct
201 Correct 1994 ms 190328 KB Output is correct
202 Correct 2506 ms 195440 KB Output is correct
203 Correct 2019 ms 190276 KB Output is correct
204 Correct 1987 ms 190064 KB Output is correct
205 Correct 2570 ms 196860 KB Output is correct
206 Correct 2020 ms 190436 KB Output is correct
207 Correct 1981 ms 190256 KB Output is correct
208 Correct 1976 ms 190200 KB Output is correct
209 Correct 1978 ms 190328 KB Output is correct
210 Correct 1976 ms 190148 KB Output is correct
211 Correct 1981 ms 190328 KB Output is correct
212 Correct 1975 ms 190348 KB Output is correct
213 Correct 4100 ms 237600 KB Output is correct
214 Correct 3665 ms 200272 KB Output is correct
215 Correct 2973 ms 192268 KB Output is correct
216 Correct 2392 ms 191888 KB Output is correct
217 Correct 4075 ms 237460 KB Output is correct
218 Correct 3630 ms 200412 KB Output is correct
219 Correct 2979 ms 192376 KB Output is correct
220 Correct 2495 ms 191856 KB Output is correct
221 Correct 4202 ms 265720 KB Output is correct
222 Correct 4116 ms 250724 KB Output is correct
223 Correct 4120 ms 247180 KB Output is correct
224 Correct 4086 ms 246832 KB Output is correct
225 Correct 4248 ms 284332 KB Output is correct
226 Correct 4239 ms 284488 KB Output is correct
227 Correct 4223 ms 284420 KB Output is correct
228 Correct 4249 ms 284404 KB Output is correct
229 Correct 4054 ms 237440 KB Output is correct
230 Correct 3621 ms 199820 KB Output is correct
231 Correct 2949 ms 192224 KB Output is correct
232 Correct 2350 ms 191660 KB Output is correct
233 Correct 4121 ms 237540 KB Output is correct
234 Correct 3624 ms 199904 KB Output is correct
235 Correct 2960 ms 192380 KB Output is correct
236 Correct 2478 ms 191516 KB Output is correct
237 Correct 4186 ms 265572 KB Output is correct
238 Correct 4149 ms 250572 KB Output is correct
239 Correct 4119 ms 247364 KB Output is correct
240 Correct 4146 ms 246600 KB Output is correct
241 Correct 4240 ms 284428 KB Output is correct
242 Correct 4243 ms 284280 KB Output is correct
243 Correct 4240 ms 284408 KB Output is correct
244 Correct 4281 ms 284212 KB Output is correct
245 Correct 2163 ms 191780 KB Output is correct
246 Correct 2155 ms 191864 KB Output is correct
247 Correct 2184 ms 191988 KB Output is correct
248 Correct 2162 ms 191704 KB Output is correct
249 Correct 2453 ms 191716 KB Output is correct
250 Correct 2511 ms 191516 KB Output is correct
251 Correct 2500 ms 191576 KB Output is correct
252 Correct 2305 ms 191940 KB Output is correct
253 Correct 4010 ms 237304 KB Output is correct
254 Correct 3479 ms 200312 KB Output is correct
255 Correct 2839 ms 192412 KB Output is correct
256 Correct 2343 ms 191640 KB Output is correct
257 Correct 3846 ms 237480 KB Output is correct
258 Correct 3437 ms 200196 KB Output is correct
259 Correct 2892 ms 192456 KB Output is correct
260 Correct 2359 ms 191636 KB Output is correct
261 Correct 2602 ms 239040 KB Output is correct
262 Correct 3205 ms 238792 KB Output is correct
263 Correct 2060 ms 238840 KB Output is correct
264 Correct 2701 ms 238768 KB Output is correct
265 Correct 2671 ms 239044 KB Output is correct
266 Correct 3373 ms 238992 KB Output is correct
267 Correct 2047 ms 239096 KB Output is correct
268 Correct 2681 ms 239252 KB Output is correct
269 Correct 2202 ms 283256 KB Output is correct
270 Correct 2231 ms 283384 KB Output is correct
271 Correct 2423 ms 193144 KB Output is correct
272 Correct 2015 ms 190200 KB Output is correct
273 Correct 2559 ms 196860 KB Output is correct
274 Correct 2028 ms 190584 KB Output is correct
275 Runtime error 1507 ms 478284 KB Execution killed with signal 11 (could be triggered by violating memory limits)