# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1010324 |
2024-06-28T17:56:19 Z |
ttamx |
Tiles (BOI24_tiles) |
C++17 |
|
193 ms |
55908 KB |
#include<bits/stdc++.h>
using namespace std;
const int N=2e5+5;
const int M=4*N;
int n,m;
int x[N],y[N];
vector<int> vx,vy;
void compress_point(){
for(int i=1;i<=n;i++){
if(x[i]&1)for(int j=-1;j<=2;j++)vx.emplace_back(x[i]+j);
else for(int j=-2;j<=1;j++)vx.emplace_back(x[i]+j);
vy.emplace_back(y[i]);
vy.emplace_back(y[i]^1);
}
sort(vx.begin(),vx.end());
sort(vy.begin(),vy.end());
vx.erase(unique(vx.begin(),vx.end()),vx.end());
vy.erase(unique(vy.begin(),vy.end()),vy.end());
for(int i=1;i<=n;i++){
x[i]=lower_bound(vx.begin(),vx.end(),x[i])-vx.begin()+1;
y[i]=lower_bound(vy.begin(),vy.end(),y[i])-vy.begin()+1;
}
}
vector<pair<int,int>> add[M],del[M];
void compress_range(vector<pair<int,int>> &v){
sort(v.begin(),v.end());
vector<pair<int,int>> res;
for(auto [l,r]:v){
if(!res.empty()&&res.back().second==l)res.back().second=r;
else res.emplace_back(l,r);
}
swap(res,v);
}
void classify(){
x[0]=x[n],y[0]=y[n];
x[n+1]=x[1],y[n+1]=y[1];
int st=1;
for(int i=2;i<=n;i++)if(x[i]<x[st]||(x[i]==x[st]&&y[i]<y[st]))st=i;
if(y[st+1]==y[st]){
reverse(x,x+n+2);
reverse(y,y+n+2);
}
for(int i=1;i<=n;i++)if(x[i]==x[i+1]){
if(y[i+1]>y[i])add[x[i]].emplace_back(y[i],y[i+1]);
else del[x[i]].emplace_back(y[i+1],y[i]);
}
for(int i=1;i<=4*n;i++){
compress_range(add[i]);
compress_range(del[i]);
// cerr << "ADD " << i << ":\n";
// for(auto [l,r]:add[i])cerr << "(" << l << "," << r << ") ";
// cerr << "\n";
// cerr << "DEL " << i << ":\n";
// for(auto [l,r]:del[i])cerr << "(" << l << "," << r << ") ";
// cerr << "\n";
}
}
int ans;
multiset<pair<int,int>> fil[2];
void answer(){
cout << (ans<vx.size()?vx[ans-1]:m);
exit(0);
}
void insert(multiset<pair<int,int>> &f,int l,int r){
if((r-l)%2)answer();
f.emplace(l,r);
}
void process(){
for(int i=1;i<=4*n+1;i++){
auto &pre=fil[i&1];
auto &cur=fil[i&1^1];
if(pre.empty())ans=i;
// for(auto [l,r]:cur)cerr<< "(" << l << "," << r << ") ";
// if(!add[i].empty()||!del[i].empty())cerr << "\n";
vector<pair<int,int>> to_add,to_add2;
for(auto [l,r]:del[i]){
auto it=cur.lower_bound(make_pair(l+1,0));
if(it==cur.begin()||(--it)->second<r)answer();
}
for(auto [l,r]:del[i]){
auto it=cur.lower_bound(make_pair(l+1,0));
if(it!=cur.begin()&&(--it)->second>=r){
if(it->first<l)to_add.emplace_back(it->first,l);
if(it->second>r)to_add.emplace_back(r,it->second);
cur.erase(it);
}else{
assert(!to_add.empty());
auto [l2,r2]=to_add.back();
to_add.pop_back();
if(l2<l)to_add.emplace_back(l2,l);
if(r2>r)to_add.emplace_back(r,r2);
}
}
// for(auto [l,r]:to_add){
// cerr << "ADD*" << " : " << vy[l-1] << " " << vy[r-1] << " AT " << vx[i-1] << "\n";
// }
for(auto [l,r]:add[i]){
auto it=cur.lower_bound(make_pair(l+1,0));
if(it!=cur.begin()&&(--it)->second==l){
l=it->first;
cur.erase(it);
}
it=cur.lower_bound(make_pair(r,0));
if(it!=cur.end()&&it->first==r){
r=it->second;
cur.erase(it);
}
if(!to_add2.empty()&&to_add2.back().second==l)to_add2.back().second=r;
else to_add2.emplace_back(l,r);
}
// for(auto [l,r]:to_add2){
// cerr << "ADD" << " : " << vy[l-1] << " " << vy[r-1] << " AT " << vx[i-1] << "\n";
// }
for(auto e:to_add2)to_add.emplace_back(e);
compress_range(to_add);
for(auto [l,r]:to_add){
// cerr << "ADD#" << " : " << vy[l-1] << " " << vy[r-1] << " AT " << vx[i-1] << "\n";
insert(cur,l,r);
}
}
}
int main(){
cin.tie(nullptr)->sync_with_stdio(false);
cin >> n >> m;
for(int i=1;i<=n;i++)cin >> x[i] >> y[i];
compress_point();
classify();
process();
cout << m;
}
Compilation message
Main.cpp: In function 'void answer()':
Main.cpp:70:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | cout << (ans<vx.size()?vx[ans-1]:m);
| ~~~^~~~~~~~~~
Main.cpp: In function 'void process()':
Main.cpp:82:24: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
82 | auto &cur=fil[i&1^1];
| ~^~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
39516 KB |
Output is correct |
2 |
Correct |
6 ms |
39516 KB |
Output is correct |
3 |
Correct |
5 ms |
39516 KB |
Output is correct |
4 |
Correct |
6 ms |
39516 KB |
Output is correct |
5 |
Correct |
6 ms |
39544 KB |
Output is correct |
6 |
Correct |
6 ms |
39544 KB |
Output is correct |
7 |
Correct |
5 ms |
39516 KB |
Output is correct |
8 |
Correct |
6 ms |
39516 KB |
Output is correct |
9 |
Correct |
5 ms |
39516 KB |
Output is correct |
10 |
Correct |
6 ms |
39516 KB |
Output is correct |
11 |
Correct |
6 ms |
39352 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
39516 KB |
Output is correct |
2 |
Correct |
6 ms |
39516 KB |
Output is correct |
3 |
Correct |
5 ms |
39516 KB |
Output is correct |
4 |
Correct |
6 ms |
39516 KB |
Output is correct |
5 |
Correct |
6 ms |
39544 KB |
Output is correct |
6 |
Correct |
6 ms |
39544 KB |
Output is correct |
7 |
Correct |
5 ms |
39516 KB |
Output is correct |
8 |
Correct |
6 ms |
39516 KB |
Output is correct |
9 |
Correct |
5 ms |
39516 KB |
Output is correct |
10 |
Correct |
6 ms |
39516 KB |
Output is correct |
11 |
Correct |
6 ms |
39352 KB |
Output is correct |
12 |
Correct |
6 ms |
39516 KB |
Output is correct |
13 |
Correct |
8 ms |
39368 KB |
Output is correct |
14 |
Correct |
6 ms |
39516 KB |
Output is correct |
15 |
Correct |
6 ms |
39516 KB |
Output is correct |
16 |
Correct |
5 ms |
39516 KB |
Output is correct |
17 |
Correct |
6 ms |
39516 KB |
Output is correct |
18 |
Correct |
8 ms |
39516 KB |
Output is correct |
19 |
Correct |
6 ms |
39516 KB |
Output is correct |
20 |
Correct |
6 ms |
39516 KB |
Output is correct |
21 |
Correct |
8 ms |
39516 KB |
Output is correct |
22 |
Correct |
5 ms |
39516 KB |
Output is correct |
23 |
Correct |
6 ms |
39516 KB |
Output is correct |
24 |
Correct |
6 ms |
39516 KB |
Output is correct |
25 |
Correct |
6 ms |
39544 KB |
Output is correct |
26 |
Correct |
6 ms |
39516 KB |
Output is correct |
27 |
Correct |
6 ms |
39512 KB |
Output is correct |
28 |
Correct |
6 ms |
39516 KB |
Output is correct |
29 |
Correct |
6 ms |
39512 KB |
Output is correct |
30 |
Correct |
6 ms |
39516 KB |
Output is correct |
31 |
Correct |
5 ms |
39516 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
7 ms |
39516 KB |
Output is correct |
2 |
Correct |
25 ms |
41048 KB |
Output is correct |
3 |
Correct |
108 ms |
46908 KB |
Output is correct |
4 |
Correct |
67 ms |
43336 KB |
Output is correct |
5 |
Correct |
57 ms |
43328 KB |
Output is correct |
6 |
Correct |
8 ms |
39772 KB |
Output is correct |
7 |
Correct |
6 ms |
39516 KB |
Output is correct |
8 |
Correct |
118 ms |
48272 KB |
Output is correct |
9 |
Correct |
69 ms |
44084 KB |
Output is correct |
10 |
Correct |
112 ms |
47164 KB |
Output is correct |
11 |
Correct |
74 ms |
43092 KB |
Output is correct |
12 |
Correct |
6 ms |
39512 KB |
Output is correct |
13 |
Correct |
125 ms |
48700 KB |
Output is correct |
14 |
Correct |
6 ms |
39516 KB |
Output is correct |
15 |
Correct |
6 ms |
39568 KB |
Output is correct |
16 |
Correct |
7 ms |
39516 KB |
Output is correct |
17 |
Correct |
7 ms |
39532 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
8 ms |
39600 KB |
Output is correct |
2 |
Correct |
7 ms |
39544 KB |
Output is correct |
3 |
Correct |
7 ms |
39516 KB |
Output is correct |
4 |
Correct |
7 ms |
39516 KB |
Output is correct |
5 |
Correct |
73 ms |
46128 KB |
Output is correct |
6 |
Correct |
77 ms |
47440 KB |
Output is correct |
7 |
Correct |
6 ms |
39512 KB |
Output is correct |
8 |
Correct |
6 ms |
39516 KB |
Output is correct |
9 |
Correct |
6 ms |
39516 KB |
Output is correct |
10 |
Correct |
10 ms |
39792 KB |
Output is correct |
11 |
Correct |
7 ms |
39768 KB |
Output is correct |
12 |
Correct |
7 ms |
39516 KB |
Output is correct |
13 |
Correct |
7 ms |
39516 KB |
Output is correct |
14 |
Correct |
8 ms |
39604 KB |
Output is correct |
15 |
Correct |
7 ms |
39516 KB |
Output is correct |
16 |
Correct |
7 ms |
39592 KB |
Output is correct |
17 |
Correct |
90 ms |
46244 KB |
Output is correct |
18 |
Correct |
101 ms |
47440 KB |
Output is correct |
19 |
Correct |
9 ms |
39768 KB |
Output is correct |
20 |
Correct |
7 ms |
39516 KB |
Output is correct |
21 |
Correct |
10 ms |
39512 KB |
Output is correct |
22 |
Correct |
8 ms |
39512 KB |
Output is correct |
23 |
Correct |
9 ms |
39516 KB |
Output is correct |
24 |
Correct |
6 ms |
39548 KB |
Output is correct |
25 |
Correct |
6 ms |
39512 KB |
Output is correct |
26 |
Correct |
8 ms |
39512 KB |
Output is correct |
27 |
Correct |
7 ms |
39360 KB |
Output is correct |
28 |
Correct |
7 ms |
39516 KB |
Output is correct |
29 |
Correct |
6 ms |
39516 KB |
Output is correct |
30 |
Correct |
6 ms |
39512 KB |
Output is correct |
31 |
Correct |
6 ms |
39516 KB |
Output is correct |
32 |
Correct |
7 ms |
39516 KB |
Output is correct |
33 |
Correct |
6 ms |
39516 KB |
Output is correct |
34 |
Correct |
6 ms |
39516 KB |
Output is correct |
35 |
Correct |
6 ms |
39516 KB |
Output is correct |
36 |
Correct |
7 ms |
39516 KB |
Output is correct |
37 |
Correct |
6 ms |
39516 KB |
Output is correct |
38 |
Correct |
7 ms |
39512 KB |
Output is correct |
39 |
Correct |
7 ms |
39596 KB |
Output is correct |
40 |
Correct |
7 ms |
39516 KB |
Output is correct |
41 |
Correct |
6 ms |
39564 KB |
Output is correct |
42 |
Correct |
7 ms |
39516 KB |
Output is correct |
43 |
Correct |
7 ms |
39604 KB |
Output is correct |
44 |
Correct |
6 ms |
39516 KB |
Output is correct |
45 |
Correct |
8 ms |
39608 KB |
Output is correct |
46 |
Correct |
7 ms |
39516 KB |
Output is correct |
47 |
Correct |
7 ms |
39516 KB |
Output is correct |
48 |
Correct |
8 ms |
39516 KB |
Output is correct |
49 |
Correct |
83 ms |
49232 KB |
Output is correct |
50 |
Correct |
97 ms |
47948 KB |
Output is correct |
51 |
Correct |
89 ms |
47680 KB |
Output is correct |
52 |
Correct |
85 ms |
48712 KB |
Output is correct |
53 |
Correct |
6 ms |
39512 KB |
Output is correct |
54 |
Correct |
6 ms |
39596 KB |
Output is correct |
55 |
Correct |
10 ms |
39868 KB |
Output is correct |
56 |
Correct |
10 ms |
40068 KB |
Output is correct |
57 |
Correct |
7 ms |
39516 KB |
Output is correct |
58 |
Correct |
6 ms |
39516 KB |
Output is correct |
59 |
Correct |
6 ms |
39516 KB |
Output is correct |
60 |
Correct |
6 ms |
39512 KB |
Output is correct |
61 |
Correct |
6 ms |
39516 KB |
Output is correct |
62 |
Correct |
6 ms |
39516 KB |
Output is correct |
63 |
Correct |
12 ms |
40116 KB |
Output is correct |
64 |
Correct |
10 ms |
40052 KB |
Output is correct |
65 |
Correct |
7 ms |
39516 KB |
Output is correct |
66 |
Correct |
7 ms |
39516 KB |
Output is correct |
67 |
Correct |
6 ms |
39516 KB |
Output is correct |
68 |
Correct |
6 ms |
39348 KB |
Output is correct |
69 |
Correct |
7 ms |
39604 KB |
Output is correct |
70 |
Correct |
6 ms |
39600 KB |
Output is correct |
71 |
Correct |
7 ms |
39696 KB |
Output is correct |
72 |
Correct |
7 ms |
39512 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
7 ms |
39516 KB |
Output is correct |
2 |
Correct |
70 ms |
45328 KB |
Output is correct |
3 |
Correct |
66 ms |
45384 KB |
Output is correct |
4 |
Correct |
86 ms |
47624 KB |
Output is correct |
5 |
Correct |
77 ms |
47944 KB |
Output is correct |
6 |
Correct |
7 ms |
39516 KB |
Output is correct |
7 |
Correct |
7 ms |
39516 KB |
Output is correct |
8 |
Correct |
85 ms |
50576 KB |
Output is correct |
9 |
Correct |
88 ms |
49988 KB |
Output is correct |
10 |
Correct |
91 ms |
49984 KB |
Output is correct |
11 |
Correct |
91 ms |
50196 KB |
Output is correct |
12 |
Correct |
115 ms |
51752 KB |
Output is correct |
13 |
Correct |
125 ms |
52056 KB |
Output is correct |
14 |
Correct |
109 ms |
51112 KB |
Output is correct |
15 |
Correct |
79 ms |
51072 KB |
Output is correct |
16 |
Correct |
152 ms |
51356 KB |
Output is correct |
17 |
Correct |
90 ms |
50248 KB |
Output is correct |
18 |
Correct |
182 ms |
52216 KB |
Output is correct |
19 |
Correct |
92 ms |
50504 KB |
Output is correct |
20 |
Correct |
87 ms |
50316 KB |
Output is correct |
21 |
Correct |
84 ms |
50600 KB |
Output is correct |
22 |
Correct |
104 ms |
50700 KB |
Output is correct |
23 |
Correct |
110 ms |
53928 KB |
Output is correct |
24 |
Correct |
106 ms |
53400 KB |
Output is correct |
25 |
Correct |
100 ms |
54076 KB |
Output is correct |
26 |
Correct |
154 ms |
54544 KB |
Output is correct |
27 |
Correct |
93 ms |
55096 KB |
Output is correct |
28 |
Correct |
93 ms |
55908 KB |
Output is correct |
29 |
Correct |
85 ms |
51024 KB |
Output is correct |
30 |
Correct |
99 ms |
50504 KB |
Output is correct |
31 |
Correct |
87 ms |
49992 KB |
Output is correct |
32 |
Correct |
78 ms |
51536 KB |
Output is correct |
33 |
Correct |
113 ms |
51240 KB |
Output is correct |
34 |
Correct |
54 ms |
44680 KB |
Output is correct |
35 |
Correct |
6 ms |
39512 KB |
Output is correct |
36 |
Correct |
6 ms |
39516 KB |
Output is correct |
37 |
Correct |
7 ms |
39516 KB |
Output is correct |
38 |
Correct |
5 ms |
39364 KB |
Output is correct |
39 |
Correct |
5 ms |
39600 KB |
Output is correct |
40 |
Correct |
6 ms |
39516 KB |
Output is correct |
41 |
Correct |
5 ms |
39516 KB |
Output is correct |
42 |
Correct |
6 ms |
39512 KB |
Output is correct |
43 |
Correct |
6 ms |
39516 KB |
Output is correct |
44 |
Correct |
6 ms |
39600 KB |
Output is correct |
45 |
Correct |
5 ms |
39516 KB |
Output is correct |
46 |
Correct |
6 ms |
39516 KB |
Output is correct |
47 |
Correct |
6 ms |
39516 KB |
Output is correct |
48 |
Correct |
6 ms |
39516 KB |
Output is correct |
49 |
Correct |
185 ms |
53636 KB |
Output is correct |
50 |
Correct |
6 ms |
39512 KB |
Output is correct |
51 |
Correct |
6 ms |
39544 KB |
Output is correct |
52 |
Correct |
155 ms |
49660 KB |
Output is correct |
53 |
Correct |
87 ms |
48968 KB |
Output is correct |
54 |
Correct |
79 ms |
48968 KB |
Output is correct |
55 |
Correct |
92 ms |
47684 KB |
Output is correct |
56 |
Correct |
74 ms |
47684 KB |
Output is correct |
57 |
Correct |
6 ms |
39512 KB |
Output is correct |
58 |
Correct |
6 ms |
39596 KB |
Output is correct |
59 |
Correct |
6 ms |
39516 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
127 ms |
51000 KB |
Output is correct |
2 |
Correct |
60 ms |
45412 KB |
Output is correct |
3 |
Correct |
6 ms |
39512 KB |
Output is correct |
4 |
Correct |
74 ms |
51252 KB |
Output is correct |
5 |
Correct |
6 ms |
39516 KB |
Output is correct |
6 |
Correct |
91 ms |
50836 KB |
Output is correct |
7 |
Correct |
7 ms |
39516 KB |
Output is correct |
8 |
Correct |
154 ms |
52028 KB |
Output is correct |
9 |
Correct |
102 ms |
50256 KB |
Output is correct |
10 |
Correct |
139 ms |
51016 KB |
Output is correct |
11 |
Correct |
86 ms |
51816 KB |
Output is correct |
12 |
Correct |
80 ms |
51256 KB |
Output is correct |
13 |
Correct |
90 ms |
51016 KB |
Output is correct |
14 |
Correct |
89 ms |
51012 KB |
Output is correct |
15 |
Correct |
92 ms |
50456 KB |
Output is correct |
16 |
Correct |
107 ms |
53496 KB |
Output is correct |
17 |
Correct |
138 ms |
54072 KB |
Output is correct |
18 |
Correct |
110 ms |
53124 KB |
Output is correct |
19 |
Correct |
73 ms |
44876 KB |
Output is correct |
20 |
Correct |
8 ms |
39512 KB |
Output is correct |
21 |
Correct |
119 ms |
51256 KB |
Output is correct |
22 |
Correct |
76 ms |
46152 KB |
Output is correct |
23 |
Correct |
6 ms |
39516 KB |
Output is correct |
24 |
Correct |
7 ms |
39596 KB |
Output is correct |
25 |
Correct |
6 ms |
39364 KB |
Output is correct |
26 |
Correct |
6 ms |
39516 KB |
Output is correct |
27 |
Correct |
7 ms |
39516 KB |
Output is correct |
28 |
Correct |
6 ms |
39516 KB |
Output is correct |
29 |
Correct |
6 ms |
39516 KB |
Output is correct |
30 |
Correct |
7 ms |
39516 KB |
Output is correct |
31 |
Correct |
6 ms |
39516 KB |
Output is correct |
32 |
Correct |
7 ms |
39516 KB |
Output is correct |
33 |
Correct |
6 ms |
39516 KB |
Output is correct |
34 |
Correct |
6 ms |
39364 KB |
Output is correct |
35 |
Correct |
7 ms |
39604 KB |
Output is correct |
36 |
Correct |
81 ms |
44880 KB |
Output is correct |
37 |
Correct |
87 ms |
48456 KB |
Output is correct |
38 |
Correct |
82 ms |
47628 KB |
Output is correct |
39 |
Correct |
89 ms |
48452 KB |
Output is correct |
40 |
Correct |
82 ms |
47704 KB |
Output is correct |
41 |
Correct |
7 ms |
39512 KB |
Output is correct |
42 |
Correct |
6 ms |
39516 KB |
Output is correct |
43 |
Correct |
7 ms |
39516 KB |
Output is correct |
44 |
Correct |
6 ms |
39516 KB |
Output is correct |
45 |
Correct |
6 ms |
39516 KB |
Output is correct |
46 |
Correct |
7 ms |
39516 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
39516 KB |
Output is correct |
2 |
Correct |
6 ms |
39516 KB |
Output is correct |
3 |
Correct |
5 ms |
39516 KB |
Output is correct |
4 |
Correct |
6 ms |
39516 KB |
Output is correct |
5 |
Correct |
6 ms |
39544 KB |
Output is correct |
6 |
Correct |
6 ms |
39544 KB |
Output is correct |
7 |
Correct |
5 ms |
39516 KB |
Output is correct |
8 |
Correct |
6 ms |
39516 KB |
Output is correct |
9 |
Correct |
5 ms |
39516 KB |
Output is correct |
10 |
Correct |
6 ms |
39516 KB |
Output is correct |
11 |
Correct |
6 ms |
39352 KB |
Output is correct |
12 |
Correct |
6 ms |
39516 KB |
Output is correct |
13 |
Correct |
8 ms |
39368 KB |
Output is correct |
14 |
Correct |
6 ms |
39516 KB |
Output is correct |
15 |
Correct |
6 ms |
39516 KB |
Output is correct |
16 |
Correct |
5 ms |
39516 KB |
Output is correct |
17 |
Correct |
6 ms |
39516 KB |
Output is correct |
18 |
Correct |
8 ms |
39516 KB |
Output is correct |
19 |
Correct |
6 ms |
39516 KB |
Output is correct |
20 |
Correct |
6 ms |
39516 KB |
Output is correct |
21 |
Correct |
8 ms |
39516 KB |
Output is correct |
22 |
Correct |
5 ms |
39516 KB |
Output is correct |
23 |
Correct |
6 ms |
39516 KB |
Output is correct |
24 |
Correct |
6 ms |
39516 KB |
Output is correct |
25 |
Correct |
6 ms |
39544 KB |
Output is correct |
26 |
Correct |
6 ms |
39516 KB |
Output is correct |
27 |
Correct |
6 ms |
39512 KB |
Output is correct |
28 |
Correct |
6 ms |
39516 KB |
Output is correct |
29 |
Correct |
6 ms |
39512 KB |
Output is correct |
30 |
Correct |
6 ms |
39516 KB |
Output is correct |
31 |
Correct |
5 ms |
39516 KB |
Output is correct |
32 |
Correct |
7 ms |
39516 KB |
Output is correct |
33 |
Correct |
25 ms |
41048 KB |
Output is correct |
34 |
Correct |
108 ms |
46908 KB |
Output is correct |
35 |
Correct |
67 ms |
43336 KB |
Output is correct |
36 |
Correct |
57 ms |
43328 KB |
Output is correct |
37 |
Correct |
8 ms |
39772 KB |
Output is correct |
38 |
Correct |
6 ms |
39516 KB |
Output is correct |
39 |
Correct |
118 ms |
48272 KB |
Output is correct |
40 |
Correct |
69 ms |
44084 KB |
Output is correct |
41 |
Correct |
112 ms |
47164 KB |
Output is correct |
42 |
Correct |
74 ms |
43092 KB |
Output is correct |
43 |
Correct |
6 ms |
39512 KB |
Output is correct |
44 |
Correct |
125 ms |
48700 KB |
Output is correct |
45 |
Correct |
6 ms |
39516 KB |
Output is correct |
46 |
Correct |
6 ms |
39568 KB |
Output is correct |
47 |
Correct |
7 ms |
39516 KB |
Output is correct |
48 |
Correct |
7 ms |
39532 KB |
Output is correct |
49 |
Correct |
8 ms |
39600 KB |
Output is correct |
50 |
Correct |
7 ms |
39544 KB |
Output is correct |
51 |
Correct |
7 ms |
39516 KB |
Output is correct |
52 |
Correct |
7 ms |
39516 KB |
Output is correct |
53 |
Correct |
73 ms |
46128 KB |
Output is correct |
54 |
Correct |
77 ms |
47440 KB |
Output is correct |
55 |
Correct |
6 ms |
39512 KB |
Output is correct |
56 |
Correct |
6 ms |
39516 KB |
Output is correct |
57 |
Correct |
6 ms |
39516 KB |
Output is correct |
58 |
Correct |
10 ms |
39792 KB |
Output is correct |
59 |
Correct |
7 ms |
39768 KB |
Output is correct |
60 |
Correct |
7 ms |
39516 KB |
Output is correct |
61 |
Correct |
7 ms |
39516 KB |
Output is correct |
62 |
Correct |
8 ms |
39604 KB |
Output is correct |
63 |
Correct |
7 ms |
39516 KB |
Output is correct |
64 |
Correct |
7 ms |
39592 KB |
Output is correct |
65 |
Correct |
90 ms |
46244 KB |
Output is correct |
66 |
Correct |
101 ms |
47440 KB |
Output is correct |
67 |
Correct |
9 ms |
39768 KB |
Output is correct |
68 |
Correct |
7 ms |
39516 KB |
Output is correct |
69 |
Correct |
10 ms |
39512 KB |
Output is correct |
70 |
Correct |
8 ms |
39512 KB |
Output is correct |
71 |
Correct |
9 ms |
39516 KB |
Output is correct |
72 |
Correct |
6 ms |
39548 KB |
Output is correct |
73 |
Correct |
6 ms |
39512 KB |
Output is correct |
74 |
Correct |
8 ms |
39512 KB |
Output is correct |
75 |
Correct |
7 ms |
39360 KB |
Output is correct |
76 |
Correct |
7 ms |
39516 KB |
Output is correct |
77 |
Correct |
6 ms |
39516 KB |
Output is correct |
78 |
Correct |
6 ms |
39512 KB |
Output is correct |
79 |
Correct |
6 ms |
39516 KB |
Output is correct |
80 |
Correct |
7 ms |
39516 KB |
Output is correct |
81 |
Correct |
6 ms |
39516 KB |
Output is correct |
82 |
Correct |
6 ms |
39516 KB |
Output is correct |
83 |
Correct |
6 ms |
39516 KB |
Output is correct |
84 |
Correct |
7 ms |
39516 KB |
Output is correct |
85 |
Correct |
6 ms |
39516 KB |
Output is correct |
86 |
Correct |
7 ms |
39512 KB |
Output is correct |
87 |
Correct |
7 ms |
39596 KB |
Output is correct |
88 |
Correct |
7 ms |
39516 KB |
Output is correct |
89 |
Correct |
6 ms |
39564 KB |
Output is correct |
90 |
Correct |
7 ms |
39516 KB |
Output is correct |
91 |
Correct |
7 ms |
39604 KB |
Output is correct |
92 |
Correct |
6 ms |
39516 KB |
Output is correct |
93 |
Correct |
8 ms |
39608 KB |
Output is correct |
94 |
Correct |
7 ms |
39516 KB |
Output is correct |
95 |
Correct |
7 ms |
39516 KB |
Output is correct |
96 |
Correct |
8 ms |
39516 KB |
Output is correct |
97 |
Correct |
83 ms |
49232 KB |
Output is correct |
98 |
Correct |
97 ms |
47948 KB |
Output is correct |
99 |
Correct |
89 ms |
47680 KB |
Output is correct |
100 |
Correct |
85 ms |
48712 KB |
Output is correct |
101 |
Correct |
6 ms |
39512 KB |
Output is correct |
102 |
Correct |
6 ms |
39596 KB |
Output is correct |
103 |
Correct |
10 ms |
39868 KB |
Output is correct |
104 |
Correct |
10 ms |
40068 KB |
Output is correct |
105 |
Correct |
7 ms |
39516 KB |
Output is correct |
106 |
Correct |
6 ms |
39516 KB |
Output is correct |
107 |
Correct |
6 ms |
39516 KB |
Output is correct |
108 |
Correct |
6 ms |
39512 KB |
Output is correct |
109 |
Correct |
6 ms |
39516 KB |
Output is correct |
110 |
Correct |
6 ms |
39516 KB |
Output is correct |
111 |
Correct |
12 ms |
40116 KB |
Output is correct |
112 |
Correct |
10 ms |
40052 KB |
Output is correct |
113 |
Correct |
7 ms |
39516 KB |
Output is correct |
114 |
Correct |
7 ms |
39516 KB |
Output is correct |
115 |
Correct |
6 ms |
39516 KB |
Output is correct |
116 |
Correct |
6 ms |
39348 KB |
Output is correct |
117 |
Correct |
7 ms |
39604 KB |
Output is correct |
118 |
Correct |
6 ms |
39600 KB |
Output is correct |
119 |
Correct |
7 ms |
39696 KB |
Output is correct |
120 |
Correct |
7 ms |
39512 KB |
Output is correct |
121 |
Correct |
7 ms |
39516 KB |
Output is correct |
122 |
Correct |
70 ms |
45328 KB |
Output is correct |
123 |
Correct |
66 ms |
45384 KB |
Output is correct |
124 |
Correct |
86 ms |
47624 KB |
Output is correct |
125 |
Correct |
77 ms |
47944 KB |
Output is correct |
126 |
Correct |
7 ms |
39516 KB |
Output is correct |
127 |
Correct |
7 ms |
39516 KB |
Output is correct |
128 |
Correct |
85 ms |
50576 KB |
Output is correct |
129 |
Correct |
88 ms |
49988 KB |
Output is correct |
130 |
Correct |
91 ms |
49984 KB |
Output is correct |
131 |
Correct |
91 ms |
50196 KB |
Output is correct |
132 |
Correct |
115 ms |
51752 KB |
Output is correct |
133 |
Correct |
125 ms |
52056 KB |
Output is correct |
134 |
Correct |
109 ms |
51112 KB |
Output is correct |
135 |
Correct |
79 ms |
51072 KB |
Output is correct |
136 |
Correct |
152 ms |
51356 KB |
Output is correct |
137 |
Correct |
90 ms |
50248 KB |
Output is correct |
138 |
Correct |
182 ms |
52216 KB |
Output is correct |
139 |
Correct |
92 ms |
50504 KB |
Output is correct |
140 |
Correct |
87 ms |
50316 KB |
Output is correct |
141 |
Correct |
84 ms |
50600 KB |
Output is correct |
142 |
Correct |
104 ms |
50700 KB |
Output is correct |
143 |
Correct |
110 ms |
53928 KB |
Output is correct |
144 |
Correct |
106 ms |
53400 KB |
Output is correct |
145 |
Correct |
100 ms |
54076 KB |
Output is correct |
146 |
Correct |
154 ms |
54544 KB |
Output is correct |
147 |
Correct |
93 ms |
55096 KB |
Output is correct |
148 |
Correct |
93 ms |
55908 KB |
Output is correct |
149 |
Correct |
85 ms |
51024 KB |
Output is correct |
150 |
Correct |
99 ms |
50504 KB |
Output is correct |
151 |
Correct |
87 ms |
49992 KB |
Output is correct |
152 |
Correct |
78 ms |
51536 KB |
Output is correct |
153 |
Correct |
113 ms |
51240 KB |
Output is correct |
154 |
Correct |
54 ms |
44680 KB |
Output is correct |
155 |
Correct |
6 ms |
39512 KB |
Output is correct |
156 |
Correct |
6 ms |
39516 KB |
Output is correct |
157 |
Correct |
7 ms |
39516 KB |
Output is correct |
158 |
Correct |
5 ms |
39364 KB |
Output is correct |
159 |
Correct |
5 ms |
39600 KB |
Output is correct |
160 |
Correct |
6 ms |
39516 KB |
Output is correct |
161 |
Correct |
5 ms |
39516 KB |
Output is correct |
162 |
Correct |
6 ms |
39512 KB |
Output is correct |
163 |
Correct |
6 ms |
39516 KB |
Output is correct |
164 |
Correct |
6 ms |
39600 KB |
Output is correct |
165 |
Correct |
5 ms |
39516 KB |
Output is correct |
166 |
Correct |
6 ms |
39516 KB |
Output is correct |
167 |
Correct |
6 ms |
39516 KB |
Output is correct |
168 |
Correct |
6 ms |
39516 KB |
Output is correct |
169 |
Correct |
185 ms |
53636 KB |
Output is correct |
170 |
Correct |
6 ms |
39512 KB |
Output is correct |
171 |
Correct |
6 ms |
39544 KB |
Output is correct |
172 |
Correct |
155 ms |
49660 KB |
Output is correct |
173 |
Correct |
87 ms |
48968 KB |
Output is correct |
174 |
Correct |
79 ms |
48968 KB |
Output is correct |
175 |
Correct |
92 ms |
47684 KB |
Output is correct |
176 |
Correct |
74 ms |
47684 KB |
Output is correct |
177 |
Correct |
6 ms |
39512 KB |
Output is correct |
178 |
Correct |
6 ms |
39596 KB |
Output is correct |
179 |
Correct |
6 ms |
39516 KB |
Output is correct |
180 |
Correct |
127 ms |
51000 KB |
Output is correct |
181 |
Correct |
60 ms |
45412 KB |
Output is correct |
182 |
Correct |
6 ms |
39512 KB |
Output is correct |
183 |
Correct |
74 ms |
51252 KB |
Output is correct |
184 |
Correct |
6 ms |
39516 KB |
Output is correct |
185 |
Correct |
91 ms |
50836 KB |
Output is correct |
186 |
Correct |
7 ms |
39516 KB |
Output is correct |
187 |
Correct |
154 ms |
52028 KB |
Output is correct |
188 |
Correct |
102 ms |
50256 KB |
Output is correct |
189 |
Correct |
139 ms |
51016 KB |
Output is correct |
190 |
Correct |
86 ms |
51816 KB |
Output is correct |
191 |
Correct |
80 ms |
51256 KB |
Output is correct |
192 |
Correct |
90 ms |
51016 KB |
Output is correct |
193 |
Correct |
89 ms |
51012 KB |
Output is correct |
194 |
Correct |
92 ms |
50456 KB |
Output is correct |
195 |
Correct |
107 ms |
53496 KB |
Output is correct |
196 |
Correct |
138 ms |
54072 KB |
Output is correct |
197 |
Correct |
110 ms |
53124 KB |
Output is correct |
198 |
Correct |
73 ms |
44876 KB |
Output is correct |
199 |
Correct |
8 ms |
39512 KB |
Output is correct |
200 |
Correct |
119 ms |
51256 KB |
Output is correct |
201 |
Correct |
76 ms |
46152 KB |
Output is correct |
202 |
Correct |
6 ms |
39516 KB |
Output is correct |
203 |
Correct |
7 ms |
39596 KB |
Output is correct |
204 |
Correct |
6 ms |
39364 KB |
Output is correct |
205 |
Correct |
6 ms |
39516 KB |
Output is correct |
206 |
Correct |
7 ms |
39516 KB |
Output is correct |
207 |
Correct |
6 ms |
39516 KB |
Output is correct |
208 |
Correct |
6 ms |
39516 KB |
Output is correct |
209 |
Correct |
7 ms |
39516 KB |
Output is correct |
210 |
Correct |
6 ms |
39516 KB |
Output is correct |
211 |
Correct |
7 ms |
39516 KB |
Output is correct |
212 |
Correct |
6 ms |
39516 KB |
Output is correct |
213 |
Correct |
6 ms |
39364 KB |
Output is correct |
214 |
Correct |
7 ms |
39604 KB |
Output is correct |
215 |
Correct |
81 ms |
44880 KB |
Output is correct |
216 |
Correct |
87 ms |
48456 KB |
Output is correct |
217 |
Correct |
82 ms |
47628 KB |
Output is correct |
218 |
Correct |
89 ms |
48452 KB |
Output is correct |
219 |
Correct |
82 ms |
47704 KB |
Output is correct |
220 |
Correct |
7 ms |
39512 KB |
Output is correct |
221 |
Correct |
6 ms |
39516 KB |
Output is correct |
222 |
Correct |
7 ms |
39516 KB |
Output is correct |
223 |
Correct |
6 ms |
39516 KB |
Output is correct |
224 |
Correct |
6 ms |
39516 KB |
Output is correct |
225 |
Correct |
7 ms |
39516 KB |
Output is correct |
226 |
Correct |
96 ms |
51084 KB |
Output is correct |
227 |
Correct |
91 ms |
51256 KB |
Output is correct |
228 |
Correct |
153 ms |
51216 KB |
Output is correct |
229 |
Correct |
82 ms |
49988 KB |
Output is correct |
230 |
Correct |
193 ms |
53052 KB |
Output is correct |
231 |
Correct |
83 ms |
51072 KB |
Output is correct |
232 |
Correct |
94 ms |
50908 KB |
Output is correct |
233 |
Correct |
61 ms |
44876 KB |
Output is correct |
234 |
Correct |
90 ms |
51768 KB |
Output is correct |
235 |
Correct |
96 ms |
52032 KB |
Output is correct |
236 |
Correct |
178 ms |
52984 KB |
Output is correct |
237 |
Correct |
83 ms |
51076 KB |
Output is correct |
238 |
Correct |
151 ms |
49976 KB |
Output is correct |
239 |
Correct |
169 ms |
52268 KB |
Output is correct |
240 |
Correct |
144 ms |
51272 KB |
Output is correct |
241 |
Correct |
122 ms |
51512 KB |
Output is correct |
242 |
Correct |
61 ms |
44812 KB |
Output is correct |