# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
801269 |
2023-08-02T05:18:16 Z |
이동현(#10092) |
IOI Fever (JOI21_fever) |
C++17 |
|
906 ms |
300108 KB |
#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#define int long long
using namespace std;
int wx[4] = {0, 1, 0, -1};
int wy[4] = {1, 0, -1, 0};
void rot(array<int, 3>&x){
(x[2] += 1) %= 4;
swap(x[0], x[1]);
x[1] *= -1;
}
void rot(array<int, 4>&x){
(x[2] += 1) %= 4;
swap(x[0], x[1]);
x[1] *= -1;
}
struct Node{
int nxt, nxtdist, ton;
Node(){
nxt = -1;
nxtdist = 0;
ton = -1;
}
};
const int NS = (int)1e5 + 4, SZ = (int)3e6 + 4;
vector<vector<int>> linecoord, lineid;
vector<array<int, 2>> toline[NS];
Node gr[(int)1e7];
int tn;
signed main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
vector<array<int, 4>> a(n);
for(int i = 0; i < n; ++i){
cin >> a[i][0] >> a[i][1];
a[i][0] *= 2;
a[i][1] *= 2;
a[i][3] = i;
}
tn = 0;
auto makeway = [&](){
for(int i = 0; i < NS; ++i) toline[i].clear();
linecoord.clear(), lineid.clear();
tn = 0;
for(int i = 0; i < SZ; ++i) gr[i] = Node();
for(int rep1 = 0; rep1 < 4; ++rep1){
for(int rep2 = 0; rep2 < 2; ++rep2){
sort(a.begin(), a.end(), [&](array<int, 4>&x, array<int, 4>&y){
return x[0] + x[1] < y[0] + y[1] || (x[0] + x[1] == y[0] + y[1] && x[0] < y[0]);
});
// cout << a[0][0] << ' ' << a[0][1] << ' ' << a[0][2] << ' ' << a[0][3] << endl;
// cout << a[1][0] << ' ' << a[1][1] << ' ' << a[1][2] << ' ' << a[1][3] << endl;
for(int i = 0; i < n;){
vector<int> ncoord, nid;
int lst = -1;
int j = i;
for(; j < n && a[i][0] + a[i][1] == a[j][0] + a[j][1]; ++j){
if(a[j][2] == 1){
++tn;
gr[tn].ton = a[j][3];
if(lst != -1){
gr[tn].nxt = lst, gr[tn].nxtdist = a[j][0] - ncoord.back();
}
ncoord.push_back(a[j][0]);
nid.push_back(tn);
lst = tn;
}
else if(a[j][2] == 0){
// cout << a[j][3] << ' ' << (int)linecoord.size() << ' ' << (int)ncoord.size() << endl;
toline[a[j][3]].push_back({(int)linecoord.size(), a[j][0]});
}
}
linecoord.push_back(ncoord);
lineid.push_back(nid);
i = j;
}
for(int i = 0; i < n; ++i){
a[i][0] *= -1;
if(a[i][2] % 2) a[i][2] = 4 - a[i][2];
}
}
for(int i = 0; i < n; ++i){
rot(a[i]);
}
}
sort(a.begin(), a.end(), [&](array<int, 4>&x, array<int, 4>&y){return x[3] < y[3];});
};
int ans = 0;
auto sol = [&](){
vector<int> chk(n, -1);
vector<int> chk2(tn + 1, -1);
priority_queue<array<int, 3>> pq;
// cout << "SOL" << endl;
pq.push({0, 0, 0});
while(!pq.empty()){
int nt = -pq.top()[0], id = pq.top()[1], type = pq.top()[2];
pq.pop();
if(!type){
if(chk[id] != -1) continue;
chk[id] = nt;
for(auto&[lid, mec]:toline[id]){
int p = lower_bound(linecoord[lid].begin(), linecoord[lid].end(), mec - nt + 1) - linecoord[lid].begin() - 1;
if(p >= 0){
pq.push({-(mec - linecoord[lid][p]), lineid[lid][p], 1});
}
}
}
else{
if(chk2[id] != -1) continue;
chk2[id] = nt;
// cout << id << ' ' << gr[id].ton << endl;
pq.push({-nt, gr[id].ton, 0});
if(gr[id].nxt != -1){
// cout << id << ' ' << gr[id].nxt << endl;
pq.push({-(nt + gr[id].nxtdist), gr[id].nxt, 1});
}
}
}
int nans = 0;
for(int i = 0; i < n; ++i){
if(chk[i] != -1){
++nans;
}
}
ans = max(ans, nans);
};
for(int rep = 0; rep < 4; ++rep){
a[0][2] = 0;
for(int i = 1; i < n; ++i){
int pi = a[i][0] + a[i][1], mi = a[i][0] - a[i][1];
int pz = a[0][0] + a[0][1], mz = a[0][0] - a[0][1];
if(pi == pz){
a[i][2] = a[i][0] > a[0][0] ? 0 : 1;
}
else if(mi == mz){
a[i][2] = a[i][0] > a[0][0] ? 3 : 0;
}
else if(pi > pz && mi < mz){
a[i][2] = 2;
}
else if(pi < pz && mi > mz){
a[i][2] = 0;
}
else{
a[i][2] = pi > pz ? 3 : 1;
}
}
makeway();
sol();
for(int i = 0; i < n; ++i){
rot(a[i]);
}
}
cout << ans << '\n';
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
106 ms |
237408 KB |
Output is correct |
2 |
Correct |
106 ms |
237480 KB |
Output is correct |
3 |
Correct |
113 ms |
237484 KB |
Output is correct |
4 |
Correct |
104 ms |
237400 KB |
Output is correct |
5 |
Correct |
104 ms |
237408 KB |
Output is correct |
6 |
Correct |
128 ms |
237468 KB |
Output is correct |
7 |
Correct |
119 ms |
237676 KB |
Output is correct |
8 |
Correct |
117 ms |
237396 KB |
Output is correct |
9 |
Correct |
114 ms |
237412 KB |
Output is correct |
10 |
Correct |
116 ms |
237468 KB |
Output is correct |
11 |
Correct |
112 ms |
237448 KB |
Output is correct |
12 |
Correct |
116 ms |
237420 KB |
Output is correct |
13 |
Correct |
112 ms |
237404 KB |
Output is correct |
14 |
Correct |
114 ms |
237484 KB |
Output is correct |
15 |
Correct |
113 ms |
237388 KB |
Output is correct |
16 |
Correct |
112 ms |
237456 KB |
Output is correct |
17 |
Correct |
112 ms |
237424 KB |
Output is correct |
18 |
Correct |
112 ms |
237488 KB |
Output is correct |
19 |
Correct |
112 ms |
237464 KB |
Output is correct |
20 |
Correct |
114 ms |
237464 KB |
Output is correct |
21 |
Correct |
117 ms |
237440 KB |
Output is correct |
22 |
Correct |
112 ms |
237384 KB |
Output is correct |
23 |
Correct |
114 ms |
237492 KB |
Output is correct |
24 |
Correct |
112 ms |
237396 KB |
Output is correct |
25 |
Correct |
116 ms |
237388 KB |
Output is correct |
26 |
Correct |
123 ms |
237540 KB |
Output is correct |
27 |
Correct |
113 ms |
237412 KB |
Output is correct |
28 |
Correct |
113 ms |
237472 KB |
Output is correct |
29 |
Correct |
112 ms |
237388 KB |
Output is correct |
30 |
Correct |
112 ms |
237420 KB |
Output is correct |
31 |
Correct |
122 ms |
237484 KB |
Output is correct |
32 |
Correct |
115 ms |
237428 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
106 ms |
237408 KB |
Output is correct |
2 |
Correct |
106 ms |
237480 KB |
Output is correct |
3 |
Correct |
113 ms |
237484 KB |
Output is correct |
4 |
Correct |
104 ms |
237400 KB |
Output is correct |
5 |
Correct |
104 ms |
237408 KB |
Output is correct |
6 |
Correct |
128 ms |
237468 KB |
Output is correct |
7 |
Correct |
119 ms |
237676 KB |
Output is correct |
8 |
Correct |
117 ms |
237396 KB |
Output is correct |
9 |
Correct |
114 ms |
237412 KB |
Output is correct |
10 |
Correct |
116 ms |
237468 KB |
Output is correct |
11 |
Correct |
112 ms |
237448 KB |
Output is correct |
12 |
Correct |
116 ms |
237420 KB |
Output is correct |
13 |
Correct |
112 ms |
237404 KB |
Output is correct |
14 |
Correct |
114 ms |
237484 KB |
Output is correct |
15 |
Correct |
113 ms |
237388 KB |
Output is correct |
16 |
Correct |
112 ms |
237456 KB |
Output is correct |
17 |
Correct |
112 ms |
237424 KB |
Output is correct |
18 |
Correct |
112 ms |
237488 KB |
Output is correct |
19 |
Correct |
112 ms |
237464 KB |
Output is correct |
20 |
Correct |
114 ms |
237464 KB |
Output is correct |
21 |
Correct |
117 ms |
237440 KB |
Output is correct |
22 |
Correct |
112 ms |
237384 KB |
Output is correct |
23 |
Correct |
114 ms |
237492 KB |
Output is correct |
24 |
Correct |
112 ms |
237396 KB |
Output is correct |
25 |
Correct |
116 ms |
237388 KB |
Output is correct |
26 |
Correct |
123 ms |
237540 KB |
Output is correct |
27 |
Correct |
113 ms |
237412 KB |
Output is correct |
28 |
Correct |
113 ms |
237472 KB |
Output is correct |
29 |
Correct |
112 ms |
237388 KB |
Output is correct |
30 |
Correct |
112 ms |
237420 KB |
Output is correct |
31 |
Correct |
122 ms |
237484 KB |
Output is correct |
32 |
Correct |
115 ms |
237428 KB |
Output is correct |
33 |
Correct |
115 ms |
237408 KB |
Output is correct |
34 |
Correct |
113 ms |
237504 KB |
Output is correct |
35 |
Correct |
116 ms |
237612 KB |
Output is correct |
36 |
Correct |
113 ms |
237408 KB |
Output is correct |
37 |
Correct |
118 ms |
237400 KB |
Output is correct |
38 |
Correct |
115 ms |
237380 KB |
Output is correct |
39 |
Correct |
115 ms |
237540 KB |
Output is correct |
40 |
Correct |
120 ms |
237496 KB |
Output is correct |
41 |
Correct |
115 ms |
237416 KB |
Output is correct |
42 |
Correct |
117 ms |
237436 KB |
Output is correct |
43 |
Correct |
114 ms |
237484 KB |
Output is correct |
44 |
Correct |
117 ms |
237496 KB |
Output is correct |
45 |
Correct |
121 ms |
237448 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
114 ms |
237444 KB |
Output is correct |
2 |
Correct |
114 ms |
237516 KB |
Output is correct |
3 |
Correct |
114 ms |
237524 KB |
Output is correct |
4 |
Correct |
117 ms |
237500 KB |
Output is correct |
5 |
Correct |
116 ms |
237560 KB |
Output is correct |
6 |
Correct |
115 ms |
237428 KB |
Output is correct |
7 |
Correct |
114 ms |
237504 KB |
Output is correct |
8 |
Correct |
123 ms |
237484 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
106 ms |
237408 KB |
Output is correct |
2 |
Correct |
106 ms |
237480 KB |
Output is correct |
3 |
Correct |
113 ms |
237484 KB |
Output is correct |
4 |
Correct |
104 ms |
237400 KB |
Output is correct |
5 |
Correct |
104 ms |
237408 KB |
Output is correct |
6 |
Correct |
128 ms |
237468 KB |
Output is correct |
7 |
Correct |
119 ms |
237676 KB |
Output is correct |
8 |
Correct |
117 ms |
237396 KB |
Output is correct |
9 |
Correct |
114 ms |
237412 KB |
Output is correct |
10 |
Correct |
116 ms |
237468 KB |
Output is correct |
11 |
Correct |
112 ms |
237448 KB |
Output is correct |
12 |
Correct |
116 ms |
237420 KB |
Output is correct |
13 |
Correct |
112 ms |
237404 KB |
Output is correct |
14 |
Correct |
114 ms |
237484 KB |
Output is correct |
15 |
Correct |
113 ms |
237388 KB |
Output is correct |
16 |
Correct |
112 ms |
237456 KB |
Output is correct |
17 |
Correct |
112 ms |
237424 KB |
Output is correct |
18 |
Correct |
112 ms |
237488 KB |
Output is correct |
19 |
Correct |
112 ms |
237464 KB |
Output is correct |
20 |
Correct |
114 ms |
237464 KB |
Output is correct |
21 |
Correct |
117 ms |
237440 KB |
Output is correct |
22 |
Correct |
112 ms |
237384 KB |
Output is correct |
23 |
Correct |
114 ms |
237492 KB |
Output is correct |
24 |
Correct |
112 ms |
237396 KB |
Output is correct |
25 |
Correct |
116 ms |
237388 KB |
Output is correct |
26 |
Correct |
123 ms |
237540 KB |
Output is correct |
27 |
Correct |
113 ms |
237412 KB |
Output is correct |
28 |
Correct |
113 ms |
237472 KB |
Output is correct |
29 |
Correct |
112 ms |
237388 KB |
Output is correct |
30 |
Correct |
112 ms |
237420 KB |
Output is correct |
31 |
Correct |
122 ms |
237484 KB |
Output is correct |
32 |
Correct |
115 ms |
237428 KB |
Output is correct |
33 |
Correct |
115 ms |
237408 KB |
Output is correct |
34 |
Correct |
113 ms |
237504 KB |
Output is correct |
35 |
Correct |
116 ms |
237612 KB |
Output is correct |
36 |
Correct |
113 ms |
237408 KB |
Output is correct |
37 |
Correct |
118 ms |
237400 KB |
Output is correct |
38 |
Correct |
115 ms |
237380 KB |
Output is correct |
39 |
Correct |
115 ms |
237540 KB |
Output is correct |
40 |
Correct |
120 ms |
237496 KB |
Output is correct |
41 |
Correct |
115 ms |
237416 KB |
Output is correct |
42 |
Correct |
117 ms |
237436 KB |
Output is correct |
43 |
Correct |
114 ms |
237484 KB |
Output is correct |
44 |
Correct |
117 ms |
237496 KB |
Output is correct |
45 |
Correct |
121 ms |
237448 KB |
Output is correct |
46 |
Correct |
114 ms |
237444 KB |
Output is correct |
47 |
Correct |
114 ms |
237516 KB |
Output is correct |
48 |
Correct |
114 ms |
237524 KB |
Output is correct |
49 |
Correct |
117 ms |
237500 KB |
Output is correct |
50 |
Correct |
116 ms |
237560 KB |
Output is correct |
51 |
Correct |
115 ms |
237428 KB |
Output is correct |
52 |
Correct |
114 ms |
237504 KB |
Output is correct |
53 |
Correct |
123 ms |
237484 KB |
Output is correct |
54 |
Correct |
117 ms |
237516 KB |
Output is correct |
55 |
Correct |
116 ms |
237460 KB |
Output is correct |
56 |
Correct |
118 ms |
237552 KB |
Output is correct |
57 |
Correct |
116 ms |
237552 KB |
Output is correct |
58 |
Correct |
116 ms |
237508 KB |
Output is correct |
59 |
Correct |
118 ms |
237572 KB |
Output is correct |
60 |
Correct |
114 ms |
237564 KB |
Output is correct |
61 |
Correct |
125 ms |
237512 KB |
Output is correct |
62 |
Correct |
115 ms |
237508 KB |
Output is correct |
63 |
Correct |
119 ms |
237604 KB |
Output is correct |
64 |
Correct |
116 ms |
237460 KB |
Output is correct |
65 |
Correct |
114 ms |
237476 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
106 ms |
237408 KB |
Output is correct |
2 |
Correct |
106 ms |
237480 KB |
Output is correct |
3 |
Correct |
113 ms |
237484 KB |
Output is correct |
4 |
Correct |
104 ms |
237400 KB |
Output is correct |
5 |
Correct |
104 ms |
237408 KB |
Output is correct |
6 |
Correct |
128 ms |
237468 KB |
Output is correct |
7 |
Correct |
119 ms |
237676 KB |
Output is correct |
8 |
Correct |
117 ms |
237396 KB |
Output is correct |
9 |
Correct |
114 ms |
237412 KB |
Output is correct |
10 |
Correct |
116 ms |
237468 KB |
Output is correct |
11 |
Correct |
112 ms |
237448 KB |
Output is correct |
12 |
Correct |
116 ms |
237420 KB |
Output is correct |
13 |
Correct |
112 ms |
237404 KB |
Output is correct |
14 |
Correct |
114 ms |
237484 KB |
Output is correct |
15 |
Correct |
113 ms |
237388 KB |
Output is correct |
16 |
Correct |
112 ms |
237456 KB |
Output is correct |
17 |
Correct |
112 ms |
237424 KB |
Output is correct |
18 |
Correct |
112 ms |
237488 KB |
Output is correct |
19 |
Correct |
112 ms |
237464 KB |
Output is correct |
20 |
Correct |
114 ms |
237464 KB |
Output is correct |
21 |
Correct |
117 ms |
237440 KB |
Output is correct |
22 |
Correct |
112 ms |
237384 KB |
Output is correct |
23 |
Correct |
114 ms |
237492 KB |
Output is correct |
24 |
Correct |
112 ms |
237396 KB |
Output is correct |
25 |
Correct |
116 ms |
237388 KB |
Output is correct |
26 |
Correct |
123 ms |
237540 KB |
Output is correct |
27 |
Correct |
113 ms |
237412 KB |
Output is correct |
28 |
Correct |
113 ms |
237472 KB |
Output is correct |
29 |
Correct |
112 ms |
237388 KB |
Output is correct |
30 |
Correct |
112 ms |
237420 KB |
Output is correct |
31 |
Correct |
122 ms |
237484 KB |
Output is correct |
32 |
Correct |
115 ms |
237428 KB |
Output is correct |
33 |
Correct |
115 ms |
237408 KB |
Output is correct |
34 |
Correct |
113 ms |
237504 KB |
Output is correct |
35 |
Correct |
116 ms |
237612 KB |
Output is correct |
36 |
Correct |
113 ms |
237408 KB |
Output is correct |
37 |
Correct |
118 ms |
237400 KB |
Output is correct |
38 |
Correct |
115 ms |
237380 KB |
Output is correct |
39 |
Correct |
115 ms |
237540 KB |
Output is correct |
40 |
Correct |
120 ms |
237496 KB |
Output is correct |
41 |
Correct |
115 ms |
237416 KB |
Output is correct |
42 |
Correct |
117 ms |
237436 KB |
Output is correct |
43 |
Correct |
114 ms |
237484 KB |
Output is correct |
44 |
Correct |
117 ms |
237496 KB |
Output is correct |
45 |
Correct |
121 ms |
237448 KB |
Output is correct |
46 |
Correct |
114 ms |
237444 KB |
Output is correct |
47 |
Correct |
114 ms |
237516 KB |
Output is correct |
48 |
Correct |
114 ms |
237524 KB |
Output is correct |
49 |
Correct |
117 ms |
237500 KB |
Output is correct |
50 |
Correct |
116 ms |
237560 KB |
Output is correct |
51 |
Correct |
115 ms |
237428 KB |
Output is correct |
52 |
Correct |
114 ms |
237504 KB |
Output is correct |
53 |
Correct |
123 ms |
237484 KB |
Output is correct |
54 |
Correct |
117 ms |
237516 KB |
Output is correct |
55 |
Correct |
116 ms |
237460 KB |
Output is correct |
56 |
Correct |
118 ms |
237552 KB |
Output is correct |
57 |
Correct |
116 ms |
237552 KB |
Output is correct |
58 |
Correct |
116 ms |
237508 KB |
Output is correct |
59 |
Correct |
118 ms |
237572 KB |
Output is correct |
60 |
Correct |
114 ms |
237564 KB |
Output is correct |
61 |
Correct |
125 ms |
237512 KB |
Output is correct |
62 |
Correct |
115 ms |
237508 KB |
Output is correct |
63 |
Correct |
119 ms |
237604 KB |
Output is correct |
64 |
Correct |
116 ms |
237460 KB |
Output is correct |
65 |
Correct |
114 ms |
237476 KB |
Output is correct |
66 |
Correct |
132 ms |
239112 KB |
Output is correct |
67 |
Correct |
131 ms |
239224 KB |
Output is correct |
68 |
Correct |
137 ms |
239416 KB |
Output is correct |
69 |
Incorrect |
139 ms |
237968 KB |
Output isn't correct |
70 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
106 ms |
237408 KB |
Output is correct |
2 |
Correct |
106 ms |
237480 KB |
Output is correct |
3 |
Correct |
113 ms |
237484 KB |
Output is correct |
4 |
Correct |
104 ms |
237400 KB |
Output is correct |
5 |
Correct |
104 ms |
237408 KB |
Output is correct |
6 |
Correct |
128 ms |
237468 KB |
Output is correct |
7 |
Correct |
119 ms |
237676 KB |
Output is correct |
8 |
Correct |
117 ms |
237396 KB |
Output is correct |
9 |
Correct |
114 ms |
237412 KB |
Output is correct |
10 |
Correct |
116 ms |
237468 KB |
Output is correct |
11 |
Correct |
112 ms |
237448 KB |
Output is correct |
12 |
Correct |
116 ms |
237420 KB |
Output is correct |
13 |
Correct |
112 ms |
237404 KB |
Output is correct |
14 |
Correct |
114 ms |
237484 KB |
Output is correct |
15 |
Correct |
113 ms |
237388 KB |
Output is correct |
16 |
Correct |
112 ms |
237456 KB |
Output is correct |
17 |
Correct |
112 ms |
237424 KB |
Output is correct |
18 |
Correct |
112 ms |
237488 KB |
Output is correct |
19 |
Correct |
112 ms |
237464 KB |
Output is correct |
20 |
Correct |
114 ms |
237464 KB |
Output is correct |
21 |
Correct |
117 ms |
237440 KB |
Output is correct |
22 |
Correct |
112 ms |
237384 KB |
Output is correct |
23 |
Correct |
114 ms |
237492 KB |
Output is correct |
24 |
Correct |
112 ms |
237396 KB |
Output is correct |
25 |
Correct |
116 ms |
237388 KB |
Output is correct |
26 |
Correct |
123 ms |
237540 KB |
Output is correct |
27 |
Correct |
113 ms |
237412 KB |
Output is correct |
28 |
Correct |
113 ms |
237472 KB |
Output is correct |
29 |
Correct |
112 ms |
237388 KB |
Output is correct |
30 |
Correct |
112 ms |
237420 KB |
Output is correct |
31 |
Correct |
122 ms |
237484 KB |
Output is correct |
32 |
Correct |
115 ms |
237428 KB |
Output is correct |
33 |
Correct |
115 ms |
237408 KB |
Output is correct |
34 |
Correct |
113 ms |
237504 KB |
Output is correct |
35 |
Correct |
116 ms |
237612 KB |
Output is correct |
36 |
Correct |
113 ms |
237408 KB |
Output is correct |
37 |
Correct |
118 ms |
237400 KB |
Output is correct |
38 |
Correct |
115 ms |
237380 KB |
Output is correct |
39 |
Correct |
115 ms |
237540 KB |
Output is correct |
40 |
Correct |
120 ms |
237496 KB |
Output is correct |
41 |
Correct |
115 ms |
237416 KB |
Output is correct |
42 |
Correct |
117 ms |
237436 KB |
Output is correct |
43 |
Correct |
114 ms |
237484 KB |
Output is correct |
44 |
Correct |
117 ms |
237496 KB |
Output is correct |
45 |
Correct |
121 ms |
237448 KB |
Output is correct |
46 |
Correct |
114 ms |
237444 KB |
Output is correct |
47 |
Correct |
114 ms |
237516 KB |
Output is correct |
48 |
Correct |
114 ms |
237524 KB |
Output is correct |
49 |
Correct |
117 ms |
237500 KB |
Output is correct |
50 |
Correct |
116 ms |
237560 KB |
Output is correct |
51 |
Correct |
115 ms |
237428 KB |
Output is correct |
52 |
Correct |
114 ms |
237504 KB |
Output is correct |
53 |
Correct |
123 ms |
237484 KB |
Output is correct |
54 |
Correct |
117 ms |
237516 KB |
Output is correct |
55 |
Correct |
116 ms |
237460 KB |
Output is correct |
56 |
Correct |
118 ms |
237552 KB |
Output is correct |
57 |
Correct |
116 ms |
237552 KB |
Output is correct |
58 |
Correct |
116 ms |
237508 KB |
Output is correct |
59 |
Correct |
118 ms |
237572 KB |
Output is correct |
60 |
Correct |
114 ms |
237564 KB |
Output is correct |
61 |
Correct |
125 ms |
237512 KB |
Output is correct |
62 |
Correct |
115 ms |
237508 KB |
Output is correct |
63 |
Correct |
119 ms |
237604 KB |
Output is correct |
64 |
Correct |
116 ms |
237460 KB |
Output is correct |
65 |
Correct |
114 ms |
237476 KB |
Output is correct |
66 |
Correct |
643 ms |
276808 KB |
Output is correct |
67 |
Correct |
772 ms |
293008 KB |
Output is correct |
68 |
Correct |
783 ms |
298544 KB |
Output is correct |
69 |
Correct |
480 ms |
277008 KB |
Output is correct |
70 |
Correct |
510 ms |
277236 KB |
Output is correct |
71 |
Correct |
807 ms |
299676 KB |
Output is correct |
72 |
Correct |
798 ms |
300108 KB |
Output is correct |
73 |
Correct |
640 ms |
277996 KB |
Output is correct |
74 |
Correct |
822 ms |
299708 KB |
Output is correct |
75 |
Correct |
790 ms |
298028 KB |
Output is correct |
76 |
Correct |
614 ms |
276300 KB |
Output is correct |
77 |
Correct |
906 ms |
299632 KB |
Output is correct |
78 |
Correct |
718 ms |
280960 KB |
Output is correct |
79 |
Correct |
684 ms |
280960 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
106 ms |
237408 KB |
Output is correct |
2 |
Correct |
106 ms |
237480 KB |
Output is correct |
3 |
Correct |
113 ms |
237484 KB |
Output is correct |
4 |
Correct |
104 ms |
237400 KB |
Output is correct |
5 |
Correct |
104 ms |
237408 KB |
Output is correct |
6 |
Correct |
128 ms |
237468 KB |
Output is correct |
7 |
Correct |
119 ms |
237676 KB |
Output is correct |
8 |
Correct |
117 ms |
237396 KB |
Output is correct |
9 |
Correct |
114 ms |
237412 KB |
Output is correct |
10 |
Correct |
116 ms |
237468 KB |
Output is correct |
11 |
Correct |
112 ms |
237448 KB |
Output is correct |
12 |
Correct |
116 ms |
237420 KB |
Output is correct |
13 |
Correct |
112 ms |
237404 KB |
Output is correct |
14 |
Correct |
114 ms |
237484 KB |
Output is correct |
15 |
Correct |
113 ms |
237388 KB |
Output is correct |
16 |
Correct |
112 ms |
237456 KB |
Output is correct |
17 |
Correct |
112 ms |
237424 KB |
Output is correct |
18 |
Correct |
112 ms |
237488 KB |
Output is correct |
19 |
Correct |
112 ms |
237464 KB |
Output is correct |
20 |
Correct |
114 ms |
237464 KB |
Output is correct |
21 |
Correct |
117 ms |
237440 KB |
Output is correct |
22 |
Correct |
112 ms |
237384 KB |
Output is correct |
23 |
Correct |
114 ms |
237492 KB |
Output is correct |
24 |
Correct |
112 ms |
237396 KB |
Output is correct |
25 |
Correct |
116 ms |
237388 KB |
Output is correct |
26 |
Correct |
123 ms |
237540 KB |
Output is correct |
27 |
Correct |
113 ms |
237412 KB |
Output is correct |
28 |
Correct |
113 ms |
237472 KB |
Output is correct |
29 |
Correct |
112 ms |
237388 KB |
Output is correct |
30 |
Correct |
112 ms |
237420 KB |
Output is correct |
31 |
Correct |
122 ms |
237484 KB |
Output is correct |
32 |
Correct |
115 ms |
237428 KB |
Output is correct |
33 |
Correct |
115 ms |
237408 KB |
Output is correct |
34 |
Correct |
113 ms |
237504 KB |
Output is correct |
35 |
Correct |
116 ms |
237612 KB |
Output is correct |
36 |
Correct |
113 ms |
237408 KB |
Output is correct |
37 |
Correct |
118 ms |
237400 KB |
Output is correct |
38 |
Correct |
115 ms |
237380 KB |
Output is correct |
39 |
Correct |
115 ms |
237540 KB |
Output is correct |
40 |
Correct |
120 ms |
237496 KB |
Output is correct |
41 |
Correct |
115 ms |
237416 KB |
Output is correct |
42 |
Correct |
117 ms |
237436 KB |
Output is correct |
43 |
Correct |
114 ms |
237484 KB |
Output is correct |
44 |
Correct |
117 ms |
237496 KB |
Output is correct |
45 |
Correct |
121 ms |
237448 KB |
Output is correct |
46 |
Correct |
114 ms |
237444 KB |
Output is correct |
47 |
Correct |
114 ms |
237516 KB |
Output is correct |
48 |
Correct |
114 ms |
237524 KB |
Output is correct |
49 |
Correct |
117 ms |
237500 KB |
Output is correct |
50 |
Correct |
116 ms |
237560 KB |
Output is correct |
51 |
Correct |
115 ms |
237428 KB |
Output is correct |
52 |
Correct |
114 ms |
237504 KB |
Output is correct |
53 |
Correct |
123 ms |
237484 KB |
Output is correct |
54 |
Correct |
117 ms |
237516 KB |
Output is correct |
55 |
Correct |
116 ms |
237460 KB |
Output is correct |
56 |
Correct |
118 ms |
237552 KB |
Output is correct |
57 |
Correct |
116 ms |
237552 KB |
Output is correct |
58 |
Correct |
116 ms |
237508 KB |
Output is correct |
59 |
Correct |
118 ms |
237572 KB |
Output is correct |
60 |
Correct |
114 ms |
237564 KB |
Output is correct |
61 |
Correct |
125 ms |
237512 KB |
Output is correct |
62 |
Correct |
115 ms |
237508 KB |
Output is correct |
63 |
Correct |
119 ms |
237604 KB |
Output is correct |
64 |
Correct |
116 ms |
237460 KB |
Output is correct |
65 |
Correct |
114 ms |
237476 KB |
Output is correct |
66 |
Correct |
132 ms |
239112 KB |
Output is correct |
67 |
Correct |
131 ms |
239224 KB |
Output is correct |
68 |
Correct |
137 ms |
239416 KB |
Output is correct |
69 |
Incorrect |
139 ms |
237968 KB |
Output isn't correct |
70 |
Halted |
0 ms |
0 KB |
- |