답안 #312021

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
312021 2020-10-12T06:51:09 Z wildturtle Interval Collection (CCO20_day2problem2) C++14
22 / 25
4237 ms 383000 KB
#include<bits/stdc++.h>
using namespace std;
int a,b,t,n,tree[4000006],treeL[4000006],treeR[4000006];
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<=4000000;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*/
# 결과 실행 시간 메모리 Grader output
1 Correct 97 ms 141304 KB Output is correct
2 Correct 96 ms 141176 KB Output is correct
3 Correct 98 ms 141304 KB Output is correct
4 Correct 95 ms 141176 KB Output is correct
5 Correct 98 ms 141304 KB Output is correct
6 Correct 94 ms 141192 KB Output is correct
7 Correct 94 ms 141176 KB Output is correct
8 Correct 97 ms 141176 KB Output is correct
9 Correct 95 ms 141304 KB Output is correct
10 Correct 94 ms 141304 KB Output is correct
11 Correct 97 ms 141304 KB Output is correct
12 Correct 97 ms 141304 KB Output is correct
13 Correct 97 ms 141304 KB Output is correct
14 Correct 98 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 96 ms 141304 KB Output is correct
18 Correct 95 ms 141192 KB Output is correct
19 Correct 94 ms 141176 KB Output is correct
20 Correct 96 ms 141304 KB Output is correct
21 Correct 97 ms 141304 KB Output is correct
22 Correct 97 ms 141176 KB Output is correct
23 Correct 97 ms 141176 KB Output is correct
24 Correct 95 ms 141176 KB Output is correct
25 Correct 96 ms 141308 KB Output is correct
26 Correct 96 ms 141304 KB Output is correct
27 Correct 95 ms 141304 KB Output is correct
28 Correct 96 ms 141304 KB Output is correct
29 Correct 96 ms 141304 KB Output is correct
30 Correct 95 ms 141304 KB Output is correct
31 Correct 97 ms 141320 KB Output is correct
32 Correct 98 ms 141304 KB Output is correct
33 Correct 95 ms 141304 KB Output is correct
34 Correct 95 ms 141176 KB Output is correct
35 Correct 94 ms 141176 KB Output is correct
36 Correct 96 ms 141392 KB Output is correct
37 Correct 95 ms 141396 KB Output is correct
38 Correct 95 ms 141176 KB Output is correct
39 Correct 96 ms 141308 KB Output is correct
40 Correct 95 ms 141176 KB Output is correct
41 Correct 95 ms 141304 KB Output is correct
42 Correct 95 ms 141304 KB Output is correct
43 Correct 96 ms 141176 KB Output is correct
44 Correct 95 ms 141176 KB Output is correct
45 Correct 95 ms 141304 KB Output is correct
46 Correct 95 ms 141220 KB Output is correct
47 Correct 96 ms 141176 KB Output is correct
48 Correct 96 ms 141176 KB Output is correct
49 Correct 96 ms 141304 KB Output is correct
50 Correct 98 ms 141304 KB Output is correct
51 Correct 96 ms 141304 KB Output is correct
52 Correct 94 ms 141244 KB Output is correct
53 Correct 94 ms 141304 KB Output is correct
54 Correct 94 ms 141304 KB Output is correct
55 Correct 94 ms 141432 KB Output is correct
56 Correct 95 ms 141304 KB Output is correct
57 Correct 95 ms 141304 KB Output is correct
58 Correct 94 ms 141304 KB Output is correct
59 Correct 96 ms 141308 KB Output is correct
60 Correct 100 ms 141408 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 97 ms 141304 KB Output is correct
2 Correct 96 ms 141176 KB Output is correct
3 Correct 98 ms 141304 KB Output is correct
4 Correct 95 ms 141176 KB Output is correct
5 Correct 98 ms 141304 KB Output is correct
6 Correct 94 ms 141192 KB Output is correct
7 Correct 94 ms 141176 KB Output is correct
8 Correct 97 ms 141176 KB Output is correct
9 Correct 95 ms 141304 KB Output is correct
10 Correct 94 ms 141304 KB Output is correct
11 Correct 97 ms 141304 KB Output is correct
12 Correct 97 ms 141304 KB Output is correct
13 Correct 97 ms 141304 KB Output is correct
14 Correct 98 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 96 ms 141304 KB Output is correct
18 Correct 95 ms 141192 KB Output is correct
19 Correct 94 ms 141176 KB Output is correct
20 Correct 96 ms 141304 KB Output is correct
21 Correct 97 ms 141304 KB Output is correct
22 Correct 97 ms 141176 KB Output is correct
23 Correct 97 ms 141176 KB Output is correct
24 Correct 95 ms 141176 KB Output is correct
25 Correct 96 ms 141308 KB Output is correct
26 Correct 96 ms 141304 KB Output is correct
27 Correct 95 ms 141304 KB Output is correct
28 Correct 96 ms 141304 KB Output is correct
29 Correct 96 ms 141304 KB Output is correct
30 Correct 95 ms 141304 KB Output is correct
31 Correct 97 ms 141320 KB Output is correct
32 Correct 98 ms 141304 KB Output is correct
33 Correct 95 ms 141304 KB Output is correct
34 Correct 95 ms 141176 KB Output is correct
35 Correct 94 ms 141176 KB Output is correct
36 Correct 96 ms 141392 KB Output is correct
37 Correct 95 ms 141396 KB Output is correct
38 Correct 95 ms 141176 KB Output is correct
39 Correct 96 ms 141308 KB Output is correct
40 Correct 95 ms 141176 KB Output is correct
41 Correct 95 ms 141304 KB Output is correct
42 Correct 95 ms 141304 KB Output is correct
43 Correct 96 ms 141176 KB Output is correct
44 Correct 95 ms 141176 KB Output is correct
45 Correct 95 ms 141304 KB Output is correct
46 Correct 95 ms 141220 KB Output is correct
47 Correct 96 ms 141176 KB Output is correct
48 Correct 96 ms 141176 KB Output is correct
49 Correct 96 ms 141304 KB Output is correct
50 Correct 98 ms 141304 KB Output is correct
51 Correct 96 ms 141304 KB Output is correct
52 Correct 94 ms 141244 KB Output is correct
53 Correct 94 ms 141304 KB Output is correct
54 Correct 94 ms 141304 KB Output is correct
55 Correct 94 ms 141432 KB Output is correct
56 Correct 95 ms 141304 KB Output is correct
57 Correct 95 ms 141304 KB Output is correct
58 Correct 94 ms 141304 KB Output is correct
59 Correct 96 ms 141308 KB Output is correct
60 Correct 100 ms 141408 KB Output is correct
61 Correct 93 ms 141304 KB Output is correct
62 Correct 94 ms 141176 KB Output is correct
63 Correct 94 ms 141304 KB Output is correct
64 Correct 164 ms 142468 KB Output is correct
65 Correct 152 ms 141560 KB Output is correct
66 Correct 148 ms 141304 KB Output is correct
67 Correct 145 ms 141304 KB Output is correct
68 Correct 160 ms 142456 KB Output is correct
69 Correct 152 ms 141560 KB Output is correct
70 Correct 151 ms 141304 KB Output is correct
71 Correct 147 ms 141432 KB Output is correct
72 Correct 161 ms 143096 KB Output is correct
73 Correct 162 ms 142780 KB Output is correct
74 Correct 163 ms 142712 KB Output is correct
75 Correct 160 ms 142712 KB Output is correct
76 Correct 163 ms 143480 KB Output is correct
77 Correct 167 ms 143708 KB Output is correct
78 Correct 166 ms 143484 KB Output is correct
79 Correct 164 ms 143516 KB Output is correct
80 Correct 162 ms 142456 KB Output is correct
81 Correct 155 ms 141536 KB Output is correct
82 Correct 149 ms 141292 KB Output is correct
83 Correct 141 ms 141304 KB Output is correct
84 Correct 160 ms 142456 KB Output is correct
85 Correct 153 ms 141560 KB Output is correct
86 Correct 149 ms 141304 KB Output is correct
87 Correct 146 ms 141304 KB Output is correct
88 Correct 165 ms 143080 KB Output is correct
89 Correct 162 ms 142712 KB Output is correct
90 Correct 164 ms 142584 KB Output is correct
91 Correct 158 ms 142712 KB Output is correct
92 Correct 165 ms 143608 KB Output is correct
93 Correct 163 ms 143480 KB Output is correct
94 Correct 165 ms 143480 KB Output is correct
95 Correct 165 ms 143480 KB Output is correct
96 Correct 144 ms 141304 KB Output is correct
97 Correct 142 ms 141304 KB Output is correct
98 Correct 142 ms 141304 KB Output is correct
99 Correct 140 ms 141304 KB Output is correct
100 Correct 148 ms 141432 KB Output is correct
101 Correct 147 ms 141432 KB Output is correct
102 Correct 147 ms 141304 KB Output is correct
103 Correct 141 ms 141304 KB Output is correct
104 Correct 160 ms 142456 KB Output is correct
105 Correct 152 ms 141820 KB Output is correct
106 Correct 147 ms 141304 KB Output is correct
107 Correct 143 ms 141264 KB Output is correct
108 Correct 158 ms 142456 KB Output is correct
109 Correct 155 ms 141560 KB Output is correct
110 Correct 148 ms 141308 KB Output is correct
111 Correct 144 ms 141304 KB Output is correct
112 Correct 144 ms 142456 KB Output is correct
113 Correct 145 ms 142456 KB Output is correct
114 Correct 139 ms 142584 KB Output is correct
115 Correct 146 ms 142456 KB Output is correct
116 Correct 144 ms 142456 KB Output is correct
117 Correct 144 ms 142456 KB Output is correct
118 Correct 140 ms 142584 KB Output is correct
119 Correct 147 ms 142456 KB Output is correct
120 Correct 143 ms 142456 KB Output is correct
121 Correct 147 ms 142456 KB Output is correct
122 Correct 146 ms 143480 KB Output is correct
123 Correct 148 ms 143484 KB Output is correct
124 Correct 139 ms 141652 KB Output is correct
125 Correct 135 ms 141432 KB Output is correct
126 Correct 136 ms 141432 KB Output is correct
127 Correct 142 ms 141816 KB Output is correct
128 Correct 137 ms 141420 KB Output is correct
129 Correct 135 ms 141304 KB Output is correct
130 Correct 141 ms 141948 KB Output is correct
131 Correct 135 ms 141432 KB Output is correct
132 Correct 138 ms 141432 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 97 ms 141304 KB Output is correct
2 Correct 96 ms 141176 KB Output is correct
3 Correct 98 ms 141304 KB Output is correct
4 Correct 95 ms 141176 KB Output is correct
5 Correct 98 ms 141304 KB Output is correct
6 Correct 94 ms 141192 KB Output is correct
7 Correct 94 ms 141176 KB Output is correct
8 Correct 97 ms 141176 KB Output is correct
9 Correct 95 ms 141304 KB Output is correct
10 Correct 94 ms 141304 KB Output is correct
11 Correct 97 ms 141304 KB Output is correct
12 Correct 97 ms 141304 KB Output is correct
13 Correct 97 ms 141304 KB Output is correct
14 Correct 98 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 96 ms 141304 KB Output is correct
18 Correct 95 ms 141192 KB Output is correct
19 Correct 94 ms 141176 KB Output is correct
20 Correct 96 ms 141304 KB Output is correct
21 Correct 97 ms 141304 KB Output is correct
22 Correct 97 ms 141176 KB Output is correct
23 Correct 97 ms 141176 KB Output is correct
24 Correct 95 ms 141176 KB Output is correct
25 Correct 96 ms 141308 KB Output is correct
26 Correct 96 ms 141304 KB Output is correct
27 Correct 95 ms 141304 KB Output is correct
28 Correct 96 ms 141304 KB Output is correct
29 Correct 96 ms 141304 KB Output is correct
30 Correct 95 ms 141304 KB Output is correct
31 Correct 97 ms 141320 KB Output is correct
32 Correct 98 ms 141304 KB Output is correct
33 Correct 95 ms 141304 KB Output is correct
34 Correct 95 ms 141176 KB Output is correct
35 Correct 94 ms 141176 KB Output is correct
36 Correct 96 ms 141392 KB Output is correct
37 Correct 95 ms 141396 KB Output is correct
38 Correct 95 ms 141176 KB Output is correct
39 Correct 96 ms 141308 KB Output is correct
40 Correct 95 ms 141176 KB Output is correct
41 Correct 95 ms 141304 KB Output is correct
42 Correct 95 ms 141304 KB Output is correct
43 Correct 96 ms 141176 KB Output is correct
44 Correct 95 ms 141176 KB Output is correct
45 Correct 95 ms 141304 KB Output is correct
46 Correct 95 ms 141220 KB Output is correct
47 Correct 96 ms 141176 KB Output is correct
48 Correct 96 ms 141176 KB Output is correct
49 Correct 96 ms 141304 KB Output is correct
50 Correct 98 ms 141304 KB Output is correct
51 Correct 96 ms 141304 KB Output is correct
52 Correct 94 ms 141244 KB Output is correct
53 Correct 94 ms 141304 KB Output is correct
54 Correct 94 ms 141304 KB Output is correct
55 Correct 94 ms 141432 KB Output is correct
56 Correct 95 ms 141304 KB Output is correct
57 Correct 95 ms 141304 KB Output is correct
58 Correct 94 ms 141304 KB Output is correct
59 Correct 96 ms 141308 KB Output is correct
60 Correct 100 ms 141408 KB Output is correct
61 Correct 93 ms 141304 KB Output is correct
62 Correct 94 ms 141176 KB Output is correct
63 Correct 94 ms 141304 KB Output is correct
64 Correct 164 ms 142468 KB Output is correct
65 Correct 152 ms 141560 KB Output is correct
66 Correct 148 ms 141304 KB Output is correct
67 Correct 145 ms 141304 KB Output is correct
68 Correct 160 ms 142456 KB Output is correct
69 Correct 152 ms 141560 KB Output is correct
70 Correct 151 ms 141304 KB Output is correct
71 Correct 147 ms 141432 KB Output is correct
72 Correct 161 ms 143096 KB Output is correct
73 Correct 162 ms 142780 KB Output is correct
74 Correct 163 ms 142712 KB Output is correct
75 Correct 160 ms 142712 KB Output is correct
76 Correct 163 ms 143480 KB Output is correct
77 Correct 167 ms 143708 KB Output is correct
78 Correct 166 ms 143484 KB Output is correct
79 Correct 164 ms 143516 KB Output is correct
80 Correct 162 ms 142456 KB Output is correct
81 Correct 155 ms 141536 KB Output is correct
82 Correct 149 ms 141292 KB Output is correct
83 Correct 141 ms 141304 KB Output is correct
84 Correct 160 ms 142456 KB Output is correct
85 Correct 153 ms 141560 KB Output is correct
86 Correct 149 ms 141304 KB Output is correct
87 Correct 146 ms 141304 KB Output is correct
88 Correct 165 ms 143080 KB Output is correct
89 Correct 162 ms 142712 KB Output is correct
90 Correct 164 ms 142584 KB Output is correct
91 Correct 158 ms 142712 KB Output is correct
92 Correct 165 ms 143608 KB Output is correct
93 Correct 163 ms 143480 KB Output is correct
94 Correct 165 ms 143480 KB Output is correct
95 Correct 165 ms 143480 KB Output is correct
96 Correct 144 ms 141304 KB Output is correct
97 Correct 142 ms 141304 KB Output is correct
98 Correct 142 ms 141304 KB Output is correct
99 Correct 140 ms 141304 KB Output is correct
100 Correct 148 ms 141432 KB Output is correct
101 Correct 147 ms 141432 KB Output is correct
102 Correct 147 ms 141304 KB Output is correct
103 Correct 141 ms 141304 KB Output is correct
104 Correct 160 ms 142456 KB Output is correct
105 Correct 152 ms 141820 KB Output is correct
106 Correct 147 ms 141304 KB Output is correct
107 Correct 143 ms 141264 KB Output is correct
108 Correct 158 ms 142456 KB Output is correct
109 Correct 155 ms 141560 KB Output is correct
110 Correct 148 ms 141308 KB Output is correct
111 Correct 144 ms 141304 KB Output is correct
112 Correct 144 ms 142456 KB Output is correct
113 Correct 145 ms 142456 KB Output is correct
114 Correct 139 ms 142584 KB Output is correct
115 Correct 146 ms 142456 KB Output is correct
116 Correct 144 ms 142456 KB Output is correct
117 Correct 144 ms 142456 KB Output is correct
118 Correct 140 ms 142584 KB Output is correct
119 Correct 147 ms 142456 KB Output is correct
120 Correct 143 ms 142456 KB Output is correct
121 Correct 147 ms 142456 KB Output is correct
122 Correct 146 ms 143480 KB Output is correct
123 Correct 148 ms 143484 KB Output is correct
124 Correct 139 ms 141652 KB Output is correct
125 Correct 135 ms 141432 KB Output is correct
126 Correct 136 ms 141432 KB Output is correct
127 Correct 142 ms 141816 KB Output is correct
128 Correct 137 ms 141420 KB Output is correct
129 Correct 135 ms 141304 KB Output is correct
130 Correct 141 ms 141948 KB Output is correct
131 Correct 135 ms 141432 KB Output is correct
132 Correct 138 ms 141432 KB Output is correct
133 Correct 412 ms 146168 KB Output is correct
134 Correct 367 ms 142456 KB Output is correct
135 Correct 339 ms 141688 KB Output is correct
136 Correct 305 ms 141560 KB Output is correct
137 Correct 419 ms 146252 KB Output is correct
138 Correct 366 ms 142456 KB Output is correct
139 Correct 340 ms 141952 KB Output is correct
140 Correct 330 ms 141688 KB Output is correct
141 Correct 423 ms 148984 KB Output is correct
142 Correct 437 ms 147448 KB Output is correct
143 Correct 415 ms 147236 KB Output is correct
144 Correct 412 ms 147192 KB Output is correct
145 Correct 431 ms 150904 KB Output is correct
146 Correct 439 ms 150904 KB Output is correct
147 Correct 431 ms 150904 KB Output is correct
148 Correct 437 ms 150968 KB Output is correct
149 Correct 407 ms 146168 KB Output is correct
150 Correct 361 ms 142456 KB Output is correct
151 Correct 334 ms 141688 KB Output is correct
152 Correct 299 ms 141560 KB Output is correct
153 Correct 406 ms 146296 KB Output is correct
154 Correct 364 ms 142584 KB Output is correct
155 Correct 333 ms 141816 KB Output is correct
156 Correct 324 ms 141688 KB Output is correct
157 Correct 420 ms 149024 KB Output is correct
158 Correct 410 ms 147576 KB Output is correct
159 Correct 408 ms 147192 KB Output is correct
160 Correct 409 ms 147192 KB Output is correct
161 Correct 443 ms 150904 KB Output is correct
162 Correct 440 ms 150904 KB Output is correct
163 Correct 427 ms 151064 KB Output is correct
164 Correct 436 ms 151000 KB Output is correct
165 Correct 296 ms 141560 KB Output is correct
166 Correct 299 ms 141688 KB Output is correct
167 Correct 296 ms 141664 KB Output is correct
168 Correct 299 ms 141688 KB Output is correct
169 Correct 322 ms 141688 KB Output is correct
170 Correct 320 ms 141612 KB Output is correct
171 Correct 314 ms 141688 KB Output is correct
172 Correct 314 ms 141564 KB Output is correct
173 Correct 404 ms 146296 KB Output is correct
174 Correct 354 ms 142456 KB Output is correct
175 Correct 332 ms 141688 KB Output is correct
176 Correct 301 ms 141560 KB Output is correct
177 Correct 401 ms 146252 KB Output is correct
178 Correct 354 ms 142456 KB Output is correct
179 Correct 330 ms 141816 KB Output is correct
180 Correct 301 ms 141588 KB Output is correct
181 Correct 307 ms 146296 KB Output is correct
182 Correct 334 ms 146296 KB Output is correct
183 Correct 293 ms 146296 KB Output is correct
184 Correct 322 ms 146296 KB Output is correct
185 Correct 310 ms 146300 KB Output is correct
186 Correct 331 ms 146296 KB Output is correct
187 Correct 295 ms 146296 KB Output is correct
188 Correct 327 ms 146168 KB Output is correct
189 Correct 312 ms 146296 KB Output is correct
190 Correct 340 ms 146296 KB Output is correct
191 Correct 308 ms 150816 KB Output is correct
192 Correct 310 ms 150776 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 916 ms 179320 KB Output is correct
2 Correct 939 ms 179192 KB Output is correct
3 Correct 1745 ms 217336 KB Output is correct
4 Correct 1810 ms 217464 KB Output is correct
5 Correct 2181 ms 236316 KB Output is correct
6 Correct 2228 ms 236376 KB Output is correct
7 Correct 2309 ms 145348 KB Output is correct
8 Correct 2007 ms 143608 KB Output is correct
9 Correct 1974 ms 143084 KB Output is correct
10 Correct 2463 ms 148596 KB Output is correct
11 Correct 2041 ms 143352 KB Output is correct
12 Correct 1971 ms 143096 KB Output is correct
13 Correct 2490 ms 149880 KB Output is correct
14 Correct 1999 ms 143480 KB Output is correct
15 Correct 1975 ms 143096 KB Output is correct
16 Correct 1967 ms 143340 KB Output is correct
17 Correct 1962 ms 143260 KB Output is correct
18 Correct 1967 ms 143472 KB Output is correct
19 Correct 1960 ms 143352 KB Output is correct
20 Correct 1951 ms 143356 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 97 ms 141304 KB Output is correct
2 Correct 96 ms 141176 KB Output is correct
3 Correct 98 ms 141304 KB Output is correct
4 Correct 95 ms 141176 KB Output is correct
5 Correct 98 ms 141304 KB Output is correct
6 Correct 94 ms 141192 KB Output is correct
7 Correct 94 ms 141176 KB Output is correct
8 Correct 97 ms 141176 KB Output is correct
9 Correct 95 ms 141304 KB Output is correct
10 Correct 94 ms 141304 KB Output is correct
11 Correct 97 ms 141304 KB Output is correct
12 Correct 97 ms 141304 KB Output is correct
13 Correct 97 ms 141304 KB Output is correct
14 Correct 98 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 96 ms 141304 KB Output is correct
18 Correct 95 ms 141192 KB Output is correct
19 Correct 94 ms 141176 KB Output is correct
20 Correct 96 ms 141304 KB Output is correct
21 Correct 97 ms 141304 KB Output is correct
22 Correct 97 ms 141176 KB Output is correct
23 Correct 97 ms 141176 KB Output is correct
24 Correct 95 ms 141176 KB Output is correct
25 Correct 96 ms 141308 KB Output is correct
26 Correct 96 ms 141304 KB Output is correct
27 Correct 95 ms 141304 KB Output is correct
28 Correct 96 ms 141304 KB Output is correct
29 Correct 96 ms 141304 KB Output is correct
30 Correct 95 ms 141304 KB Output is correct
31 Correct 97 ms 141320 KB Output is correct
32 Correct 98 ms 141304 KB Output is correct
33 Correct 95 ms 141304 KB Output is correct
34 Correct 95 ms 141176 KB Output is correct
35 Correct 94 ms 141176 KB Output is correct
36 Correct 96 ms 141392 KB Output is correct
37 Correct 95 ms 141396 KB Output is correct
38 Correct 95 ms 141176 KB Output is correct
39 Correct 96 ms 141308 KB Output is correct
40 Correct 95 ms 141176 KB Output is correct
41 Correct 95 ms 141304 KB Output is correct
42 Correct 95 ms 141304 KB Output is correct
43 Correct 96 ms 141176 KB Output is correct
44 Correct 95 ms 141176 KB Output is correct
45 Correct 95 ms 141304 KB Output is correct
46 Correct 95 ms 141220 KB Output is correct
47 Correct 96 ms 141176 KB Output is correct
48 Correct 96 ms 141176 KB Output is correct
49 Correct 96 ms 141304 KB Output is correct
50 Correct 98 ms 141304 KB Output is correct
51 Correct 96 ms 141304 KB Output is correct
52 Correct 94 ms 141244 KB Output is correct
53 Correct 94 ms 141304 KB Output is correct
54 Correct 94 ms 141304 KB Output is correct
55 Correct 94 ms 141432 KB Output is correct
56 Correct 95 ms 141304 KB Output is correct
57 Correct 95 ms 141304 KB Output is correct
58 Correct 94 ms 141304 KB Output is correct
59 Correct 96 ms 141308 KB Output is correct
60 Correct 100 ms 141408 KB Output is correct
61 Correct 93 ms 141304 KB Output is correct
62 Correct 94 ms 141176 KB Output is correct
63 Correct 94 ms 141304 KB Output is correct
64 Correct 164 ms 142468 KB Output is correct
65 Correct 152 ms 141560 KB Output is correct
66 Correct 148 ms 141304 KB Output is correct
67 Correct 145 ms 141304 KB Output is correct
68 Correct 160 ms 142456 KB Output is correct
69 Correct 152 ms 141560 KB Output is correct
70 Correct 151 ms 141304 KB Output is correct
71 Correct 147 ms 141432 KB Output is correct
72 Correct 161 ms 143096 KB Output is correct
73 Correct 162 ms 142780 KB Output is correct
74 Correct 163 ms 142712 KB Output is correct
75 Correct 160 ms 142712 KB Output is correct
76 Correct 163 ms 143480 KB Output is correct
77 Correct 167 ms 143708 KB Output is correct
78 Correct 166 ms 143484 KB Output is correct
79 Correct 164 ms 143516 KB Output is correct
80 Correct 162 ms 142456 KB Output is correct
81 Correct 155 ms 141536 KB Output is correct
82 Correct 149 ms 141292 KB Output is correct
83 Correct 141 ms 141304 KB Output is correct
84 Correct 160 ms 142456 KB Output is correct
85 Correct 153 ms 141560 KB Output is correct
86 Correct 149 ms 141304 KB Output is correct
87 Correct 146 ms 141304 KB Output is correct
88 Correct 165 ms 143080 KB Output is correct
89 Correct 162 ms 142712 KB Output is correct
90 Correct 164 ms 142584 KB Output is correct
91 Correct 158 ms 142712 KB Output is correct
92 Correct 165 ms 143608 KB Output is correct
93 Correct 163 ms 143480 KB Output is correct
94 Correct 165 ms 143480 KB Output is correct
95 Correct 165 ms 143480 KB Output is correct
96 Correct 144 ms 141304 KB Output is correct
97 Correct 142 ms 141304 KB Output is correct
98 Correct 142 ms 141304 KB Output is correct
99 Correct 140 ms 141304 KB Output is correct
100 Correct 148 ms 141432 KB Output is correct
101 Correct 147 ms 141432 KB Output is correct
102 Correct 147 ms 141304 KB Output is correct
103 Correct 141 ms 141304 KB Output is correct
104 Correct 160 ms 142456 KB Output is correct
105 Correct 152 ms 141820 KB Output is correct
106 Correct 147 ms 141304 KB Output is correct
107 Correct 143 ms 141264 KB Output is correct
108 Correct 158 ms 142456 KB Output is correct
109 Correct 155 ms 141560 KB Output is correct
110 Correct 148 ms 141308 KB Output is correct
111 Correct 144 ms 141304 KB Output is correct
112 Correct 144 ms 142456 KB Output is correct
113 Correct 145 ms 142456 KB Output is correct
114 Correct 139 ms 142584 KB Output is correct
115 Correct 146 ms 142456 KB Output is correct
116 Correct 144 ms 142456 KB Output is correct
117 Correct 144 ms 142456 KB Output is correct
118 Correct 140 ms 142584 KB Output is correct
119 Correct 147 ms 142456 KB Output is correct
120 Correct 143 ms 142456 KB Output is correct
121 Correct 147 ms 142456 KB Output is correct
122 Correct 146 ms 143480 KB Output is correct
123 Correct 148 ms 143484 KB Output is correct
124 Correct 139 ms 141652 KB Output is correct
125 Correct 135 ms 141432 KB Output is correct
126 Correct 136 ms 141432 KB Output is correct
127 Correct 142 ms 141816 KB Output is correct
128 Correct 137 ms 141420 KB Output is correct
129 Correct 135 ms 141304 KB Output is correct
130 Correct 141 ms 141948 KB Output is correct
131 Correct 135 ms 141432 KB Output is correct
132 Correct 138 ms 141432 KB Output is correct
133 Correct 412 ms 146168 KB Output is correct
134 Correct 367 ms 142456 KB Output is correct
135 Correct 339 ms 141688 KB Output is correct
136 Correct 305 ms 141560 KB Output is correct
137 Correct 419 ms 146252 KB Output is correct
138 Correct 366 ms 142456 KB Output is correct
139 Correct 340 ms 141952 KB Output is correct
140 Correct 330 ms 141688 KB Output is correct
141 Correct 423 ms 148984 KB Output is correct
142 Correct 437 ms 147448 KB Output is correct
143 Correct 415 ms 147236 KB Output is correct
144 Correct 412 ms 147192 KB Output is correct
145 Correct 431 ms 150904 KB Output is correct
146 Correct 439 ms 150904 KB Output is correct
147 Correct 431 ms 150904 KB Output is correct
148 Correct 437 ms 150968 KB Output is correct
149 Correct 407 ms 146168 KB Output is correct
150 Correct 361 ms 142456 KB Output is correct
151 Correct 334 ms 141688 KB Output is correct
152 Correct 299 ms 141560 KB Output is correct
153 Correct 406 ms 146296 KB Output is correct
154 Correct 364 ms 142584 KB Output is correct
155 Correct 333 ms 141816 KB Output is correct
156 Correct 324 ms 141688 KB Output is correct
157 Correct 420 ms 149024 KB Output is correct
158 Correct 410 ms 147576 KB Output is correct
159 Correct 408 ms 147192 KB Output is correct
160 Correct 409 ms 147192 KB Output is correct
161 Correct 443 ms 150904 KB Output is correct
162 Correct 440 ms 150904 KB Output is correct
163 Correct 427 ms 151064 KB Output is correct
164 Correct 436 ms 151000 KB Output is correct
165 Correct 296 ms 141560 KB Output is correct
166 Correct 299 ms 141688 KB Output is correct
167 Correct 296 ms 141664 KB Output is correct
168 Correct 299 ms 141688 KB Output is correct
169 Correct 322 ms 141688 KB Output is correct
170 Correct 320 ms 141612 KB Output is correct
171 Correct 314 ms 141688 KB Output is correct
172 Correct 314 ms 141564 KB Output is correct
173 Correct 404 ms 146296 KB Output is correct
174 Correct 354 ms 142456 KB Output is correct
175 Correct 332 ms 141688 KB Output is correct
176 Correct 301 ms 141560 KB Output is correct
177 Correct 401 ms 146252 KB Output is correct
178 Correct 354 ms 142456 KB Output is correct
179 Correct 330 ms 141816 KB Output is correct
180 Correct 301 ms 141588 KB Output is correct
181 Correct 307 ms 146296 KB Output is correct
182 Correct 334 ms 146296 KB Output is correct
183 Correct 293 ms 146296 KB Output is correct
184 Correct 322 ms 146296 KB Output is correct
185 Correct 310 ms 146300 KB Output is correct
186 Correct 331 ms 146296 KB Output is correct
187 Correct 295 ms 146296 KB Output is correct
188 Correct 327 ms 146168 KB Output is correct
189 Correct 312 ms 146296 KB Output is correct
190 Correct 340 ms 146296 KB Output is correct
191 Correct 308 ms 150816 KB Output is correct
192 Correct 310 ms 150776 KB Output is correct
193 Correct 916 ms 179320 KB Output is correct
194 Correct 939 ms 179192 KB Output is correct
195 Correct 1745 ms 217336 KB Output is correct
196 Correct 1810 ms 217464 KB Output is correct
197 Correct 2181 ms 236316 KB Output is correct
198 Correct 2228 ms 236376 KB Output is correct
199 Correct 2309 ms 145348 KB Output is correct
200 Correct 2007 ms 143608 KB Output is correct
201 Correct 1974 ms 143084 KB Output is correct
202 Correct 2463 ms 148596 KB Output is correct
203 Correct 2041 ms 143352 KB Output is correct
204 Correct 1971 ms 143096 KB Output is correct
205 Correct 2490 ms 149880 KB Output is correct
206 Correct 1999 ms 143480 KB Output is correct
207 Correct 1975 ms 143096 KB Output is correct
208 Correct 1967 ms 143340 KB Output is correct
209 Correct 1962 ms 143260 KB Output is correct
210 Correct 1967 ms 143472 KB Output is correct
211 Correct 1960 ms 143352 KB Output is correct
212 Correct 1951 ms 143356 KB Output is correct
213 Correct 3986 ms 190524 KB Output is correct
214 Correct 3530 ms 153368 KB Output is correct
215 Correct 2875 ms 145272 KB Output is correct
216 Correct 2318 ms 144888 KB Output is correct
217 Correct 4006 ms 190496 KB Output is correct
218 Correct 3536 ms 153528 KB Output is correct
219 Correct 2963 ms 145280 KB Output is correct
220 Correct 2456 ms 144692 KB Output is correct
221 Correct 4237 ms 218632 KB Output is correct
222 Correct 4057 ms 203804 KB Output is correct
223 Correct 4005 ms 200160 KB Output is correct
224 Correct 4000 ms 199928 KB Output is correct
225 Correct 4202 ms 237672 KB Output is correct
226 Correct 4202 ms 237312 KB Output is correct
227 Correct 4158 ms 237312 KB Output is correct
228 Correct 4232 ms 237324 KB Output is correct
229 Correct 3994 ms 190328 KB Output is correct
230 Correct 3555 ms 152700 KB Output is correct
231 Correct 2899 ms 145072 KB Output is correct
232 Correct 2300 ms 144760 KB Output is correct
233 Correct 4035 ms 190640 KB Output is correct
234 Correct 3554 ms 153088 KB Output is correct
235 Correct 2886 ms 145280 KB Output is correct
236 Correct 2431 ms 144424 KB Output is correct
237 Correct 4219 ms 218540 KB Output is correct
238 Correct 4164 ms 203508 KB Output is correct
239 Correct 4116 ms 200352 KB Output is correct
240 Correct 4085 ms 199692 KB Output is correct
241 Correct 4230 ms 237300 KB Output is correct
242 Correct 4193 ms 237156 KB Output is correct
243 Correct 4228 ms 237300 KB Output is correct
244 Correct 4234 ms 237048 KB Output is correct
245 Correct 2158 ms 144692 KB Output is correct
246 Correct 2136 ms 144836 KB Output is correct
247 Correct 2139 ms 144936 KB Output is correct
248 Correct 2129 ms 144768 KB Output is correct
249 Correct 2404 ms 144720 KB Output is correct
250 Correct 2397 ms 144548 KB Output is correct
251 Correct 2455 ms 144524 KB Output is correct
252 Correct 2259 ms 144932 KB Output is correct
253 Correct 3954 ms 190356 KB Output is correct
254 Correct 3385 ms 153224 KB Output is correct
255 Correct 2816 ms 145504 KB Output is correct
256 Correct 2312 ms 144928 KB Output is correct
257 Correct 3833 ms 190460 KB Output is correct
258 Correct 3330 ms 153332 KB Output is correct
259 Correct 2813 ms 145780 KB Output is correct
260 Correct 2337 ms 144888 KB Output is correct
261 Correct 2542 ms 191736 KB Output is correct
262 Correct 3146 ms 191808 KB Output is correct
263 Correct 2058 ms 191864 KB Output is correct
264 Correct 2622 ms 191864 KB Output is correct
265 Correct 2544 ms 191948 KB Output is correct
266 Correct 3140 ms 191736 KB Output is correct
267 Correct 2045 ms 191980 KB Output is correct
268 Correct 2682 ms 191992 KB Output is correct
269 Correct 2231 ms 236180 KB Output is correct
270 Correct 2262 ms 236256 KB Output is correct
271 Correct 2386 ms 146168 KB Output is correct
272 Correct 2033 ms 143520 KB Output is correct
273 Correct 2535 ms 149736 KB Output is correct
274 Correct 2031 ms 143392 KB Output is correct
275 Runtime error 1413 ms 383000 KB Execution killed with signal 11 (could be triggered by violating memory limits)