#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define F first
#define S second
#define pb push_back
#define endl "\n"
#define all(x) x.begin(), x.end()
const int M = 6000007;
const ll inf = 1e9;
const ll INF = 1e12;
const ll mod = 1e9 + 7;
const double eps = 1e-6;
const int dx[] = {1, -1, 0, 0, 1, -1, 1, -1};
const int dy[] = {0, 0, 1, -1, 1, 1, -1, -1};
string s[M];
vector <int> visit[M];
int n, m, block, startX, startY, endX, endY;
bool Valid(int x, int y){
if(visit[x][y] || x <= 0 || y <= 0 || x > n || y > m) return 0;
return 1;
}
int bfs(){
queue < pair < pair <int,int>, pair <int, int> > > zeroEdge, oneEdge;
zeroEdge.push({{startX, startY}, {0, 0}});
while(!zeroEdge.empty() || !oneEdge.empty()){
if(zeroEdge.empty())
swap(zeroEdge, oneEdge);
int x = zeroEdge.front().F.F;
int y = zeroEdge.front().F.S;
int remainingMoves = zeroEdge.front().S.F;
int dist = zeroEdge.front().S.S;
zeroEdge.pop();
if(x == endX && y == endY) return dist;
if(!Valid(x, y)) continue;
visit[x][y] = 1;
for(int i = 0; i < 4; ++i){
int nx = x + dx[i];
int ny = y + dy[i];
if(s[nx][ny] == '.') zeroEdge.push({{nx, ny}, {max(0, remainingMoves - 1), dist}});
}
for(int i = 0; i < 4; ++i){
int nx = x + dx[i];
int ny = y + dy[i];
if(remainingMoves > 0) zeroEdge.push({{nx, ny}, {remainingMoves - 1, dist}});
else oneEdge.push({{nx, ny}, {block - 1, dist + 1}});
}
for(int i = 4; i < 8; ++i){
int nx = x + dx[i];
int ny = y + dy[i];
if(remainingMoves > 1) zeroEdge.push({{nx, ny}, {remainingMoves - 1, dist}});
else if(block > 1) oneEdge.push({{nx, ny}, {block - 1, dist + 1}});
}
}
}
void solve(int _){
cin >> n >> m >> block;
cin >> startX >> startY >> endX >> endY;
for(int i = 1; i <= n; ++i){
cin >> s[i];
s[i] = '#' + s[i];
visit[i].resize(m + 2);
}
visit[0] .resize(m + 2);
visit[n + 1] .resize(m + 2);
cout << bfs() << endl;
return;
}
int main(){
// ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int t = 1;
// cin >> t;
for(int i = 1; i <= t; ++i) solve(t);
return 0;
}
Compilation message
Main.cpp: In function 'int bfs()':
Main.cpp:28:56: warning: control reaches end of non-void function [-Wreturn-type]
28 | queue < pair < pair <int,int>, pair <int, int> > > zeroEdge, oneEdge;
| ^~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
122 ms |
329040 KB |
Output is correct |
2 |
Correct |
107 ms |
329044 KB |
Output is correct |
3 |
Correct |
106 ms |
329044 KB |
Output is correct |
4 |
Correct |
108 ms |
329216 KB |
Output is correct |
5 |
Correct |
109 ms |
329140 KB |
Output is correct |
6 |
Correct |
104 ms |
329040 KB |
Output is correct |
7 |
Correct |
108 ms |
329044 KB |
Output is correct |
8 |
Correct |
107 ms |
329056 KB |
Output is correct |
9 |
Correct |
107 ms |
329024 KB |
Output is correct |
10 |
Correct |
102 ms |
329084 KB |
Output is correct |
11 |
Correct |
100 ms |
329040 KB |
Output is correct |
12 |
Correct |
104 ms |
329252 KB |
Output is correct |
13 |
Correct |
102 ms |
329192 KB |
Output is correct |
14 |
Correct |
102 ms |
328952 KB |
Output is correct |
15 |
Correct |
103 ms |
329016 KB |
Output is correct |
16 |
Correct |
99 ms |
329184 KB |
Output is correct |
17 |
Correct |
99 ms |
329040 KB |
Output is correct |
18 |
Correct |
99 ms |
329044 KB |
Output is correct |
19 |
Correct |
107 ms |
329556 KB |
Output is correct |
20 |
Correct |
104 ms |
330228 KB |
Output is correct |
21 |
Correct |
106 ms |
332624 KB |
Output is correct |
22 |
Correct |
106 ms |
329548 KB |
Output is correct |
23 |
Correct |
106 ms |
329552 KB |
Output is correct |
24 |
Correct |
106 ms |
330056 KB |
Output is correct |
25 |
Correct |
103 ms |
330068 KB |
Output is correct |
26 |
Correct |
103 ms |
329680 KB |
Output is correct |
27 |
Correct |
103 ms |
329552 KB |
Output is correct |
28 |
Correct |
104 ms |
329868 KB |
Output is correct |
29 |
Correct |
120 ms |
330064 KB |
Output is correct |
30 |
Correct |
106 ms |
329812 KB |
Output is correct |
31 |
Correct |
119 ms |
338864 KB |
Output is correct |
32 |
Correct |
115 ms |
330072 KB |
Output is correct |
33 |
Correct |
110 ms |
330068 KB |
Output is correct |
34 |
Correct |
114 ms |
331172 KB |
Output is correct |
35 |
Correct |
110 ms |
331348 KB |
Output is correct |
36 |
Correct |
113 ms |
331252 KB |
Output is correct |
37 |
Correct |
114 ms |
330584 KB |
Output is correct |
38 |
Correct |
102 ms |
329988 KB |
Output is correct |
39 |
Correct |
244 ms |
338172 KB |
Output is correct |
40 |
Correct |
131 ms |
330064 KB |
Output is correct |
41 |
Correct |
112 ms |
331820 KB |
Output is correct |
42 |
Correct |
122 ms |
330412 KB |
Output is correct |
43 |
Correct |
136 ms |
331600 KB |
Output is correct |
44 |
Correct |
149 ms |
334344 KB |
Output is correct |
45 |
Correct |
140 ms |
335332 KB |
Output is correct |
46 |
Correct |
189 ms |
360964 KB |
Output is correct |
47 |
Correct |
272 ms |
338508 KB |
Output is correct |
48 |
Correct |
205 ms |
337992 KB |
Output is correct |
49 |
Correct |
200 ms |
349832 KB |
Output is correct |
50 |
Correct |
176 ms |
349680 KB |
Output is correct |
51 |
Correct |
236 ms |
342100 KB |
Output is correct |
52 |
Correct |
195 ms |
339280 KB |
Output is correct |
53 |
Correct |
207 ms |
338516 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
102 ms |
329044 KB |
Output is correct |
2 |
Correct |
103 ms |
329116 KB |
Output is correct |
3 |
Correct |
108 ms |
329192 KB |
Output is correct |
4 |
Correct |
101 ms |
328976 KB |
Output is correct |
5 |
Correct |
103 ms |
328972 KB |
Output is correct |
6 |
Correct |
102 ms |
329040 KB |
Output is correct |
7 |
Correct |
111 ms |
329192 KB |
Output is correct |
8 |
Correct |
102 ms |
329024 KB |
Output is correct |
9 |
Correct |
102 ms |
329044 KB |
Output is correct |
10 |
Correct |
107 ms |
329044 KB |
Output is correct |
11 |
Correct |
108 ms |
328984 KB |
Output is correct |
12 |
Correct |
115 ms |
329300 KB |
Output is correct |
13 |
Correct |
103 ms |
329112 KB |
Output is correct |
14 |
Correct |
104 ms |
329140 KB |
Output is correct |
15 |
Correct |
107 ms |
329044 KB |
Output is correct |
16 |
Correct |
104 ms |
329040 KB |
Output is correct |
17 |
Correct |
102 ms |
329044 KB |
Output is correct |
18 |
Correct |
114 ms |
329192 KB |
Output is correct |
19 |
Correct |
102 ms |
329204 KB |
Output is correct |
20 |
Correct |
103 ms |
329188 KB |
Output is correct |
21 |
Correct |
100 ms |
329044 KB |
Output is correct |
22 |
Correct |
104 ms |
329052 KB |
Output is correct |
23 |
Correct |
100 ms |
328956 KB |
Output is correct |
24 |
Correct |
100 ms |
329144 KB |
Output is correct |
25 |
Correct |
100 ms |
329044 KB |
Output is correct |
26 |
Correct |
101 ms |
329168 KB |
Output is correct |
27 |
Correct |
104 ms |
329388 KB |
Output is correct |
28 |
Correct |
100 ms |
329040 KB |
Output is correct |
29 |
Correct |
101 ms |
328996 KB |
Output is correct |
30 |
Correct |
101 ms |
329128 KB |
Output is correct |
31 |
Correct |
106 ms |
329208 KB |
Output is correct |
32 |
Correct |
111 ms |
329136 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
99 ms |
329060 KB |
Output is correct |
2 |
Correct |
100 ms |
329184 KB |
Output is correct |
3 |
Correct |
101 ms |
329044 KB |
Output is correct |
4 |
Correct |
101 ms |
329044 KB |
Output is correct |
5 |
Correct |
101 ms |
329180 KB |
Output is correct |
6 |
Correct |
100 ms |
329192 KB |
Output is correct |
7 |
Correct |
101 ms |
329100 KB |
Output is correct |
8 |
Correct |
101 ms |
329208 KB |
Output is correct |
9 |
Correct |
100 ms |
329264 KB |
Output is correct |
10 |
Correct |
100 ms |
329044 KB |
Output is correct |
11 |
Correct |
100 ms |
329044 KB |
Output is correct |
12 |
Correct |
99 ms |
329220 KB |
Output is correct |
13 |
Correct |
99 ms |
329040 KB |
Output is correct |
14 |
Correct |
102 ms |
329092 KB |
Output is correct |
15 |
Correct |
102 ms |
329100 KB |
Output is correct |
16 |
Correct |
102 ms |
329076 KB |
Output is correct |
17 |
Correct |
101 ms |
329044 KB |
Output is correct |
18 |
Correct |
102 ms |
329044 KB |
Output is correct |
19 |
Correct |
102 ms |
329040 KB |
Output is correct |
20 |
Correct |
100 ms |
329192 KB |
Output is correct |
21 |
Correct |
100 ms |
329156 KB |
Output is correct |
22 |
Correct |
103 ms |
329184 KB |
Output is correct |
23 |
Correct |
100 ms |
329208 KB |
Output is correct |
24 |
Correct |
100 ms |
329088 KB |
Output is correct |
25 |
Correct |
103 ms |
329412 KB |
Output is correct |
26 |
Correct |
106 ms |
333524 KB |
Output is correct |
27 |
Correct |
107 ms |
332628 KB |
Output is correct |
28 |
Correct |
108 ms |
335172 KB |
Output is correct |
29 |
Correct |
121 ms |
329444 KB |
Output is correct |
30 |
Correct |
103 ms |
329580 KB |
Output is correct |
31 |
Correct |
104 ms |
329488 KB |
Output is correct |
32 |
Correct |
101 ms |
329692 KB |
Output is correct |
33 |
Correct |
107 ms |
329472 KB |
Output is correct |
34 |
Correct |
114 ms |
338816 KB |
Output is correct |
35 |
Correct |
119 ms |
338916 KB |
Output is correct |
36 |
Correct |
125 ms |
346240 KB |
Output is correct |
37 |
Correct |
116 ms |
330160 KB |
Output is correct |
38 |
Correct |
114 ms |
330040 KB |
Output is correct |
39 |
Correct |
145 ms |
357636 KB |
Output is correct |
40 |
Correct |
286 ms |
443320 KB |
Output is correct |
41 |
Correct |
167 ms |
360964 KB |
Output is correct |
42 |
Correct |
363 ms |
502916 KB |
Output is correct |
43 |
Correct |
230 ms |
338260 KB |
Output is correct |
44 |
Correct |
255 ms |
338140 KB |
Output is correct |
45 |
Correct |
263 ms |
436332 KB |
Output is correct |
46 |
Correct |
250 ms |
426896 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
102 ms |
329044 KB |
Output is correct |
2 |
Correct |
103 ms |
329116 KB |
Output is correct |
3 |
Correct |
108 ms |
329192 KB |
Output is correct |
4 |
Correct |
101 ms |
328976 KB |
Output is correct |
5 |
Correct |
103 ms |
328972 KB |
Output is correct |
6 |
Correct |
102 ms |
329040 KB |
Output is correct |
7 |
Correct |
111 ms |
329192 KB |
Output is correct |
8 |
Correct |
102 ms |
329024 KB |
Output is correct |
9 |
Correct |
102 ms |
329044 KB |
Output is correct |
10 |
Correct |
107 ms |
329044 KB |
Output is correct |
11 |
Correct |
108 ms |
328984 KB |
Output is correct |
12 |
Correct |
115 ms |
329300 KB |
Output is correct |
13 |
Correct |
103 ms |
329112 KB |
Output is correct |
14 |
Correct |
104 ms |
329140 KB |
Output is correct |
15 |
Correct |
107 ms |
329044 KB |
Output is correct |
16 |
Correct |
104 ms |
329040 KB |
Output is correct |
17 |
Correct |
102 ms |
329044 KB |
Output is correct |
18 |
Correct |
114 ms |
329192 KB |
Output is correct |
19 |
Correct |
102 ms |
329204 KB |
Output is correct |
20 |
Correct |
103 ms |
329188 KB |
Output is correct |
21 |
Correct |
100 ms |
329044 KB |
Output is correct |
22 |
Correct |
104 ms |
329052 KB |
Output is correct |
23 |
Correct |
100 ms |
328956 KB |
Output is correct |
24 |
Correct |
100 ms |
329144 KB |
Output is correct |
25 |
Correct |
100 ms |
329044 KB |
Output is correct |
26 |
Correct |
101 ms |
329168 KB |
Output is correct |
27 |
Correct |
104 ms |
329388 KB |
Output is correct |
28 |
Correct |
100 ms |
329040 KB |
Output is correct |
29 |
Correct |
101 ms |
328996 KB |
Output is correct |
30 |
Correct |
101 ms |
329128 KB |
Output is correct |
31 |
Correct |
106 ms |
329208 KB |
Output is correct |
32 |
Correct |
111 ms |
329136 KB |
Output is correct |
33 |
Correct |
105 ms |
329556 KB |
Output is correct |
34 |
Correct |
101 ms |
329204 KB |
Output is correct |
35 |
Correct |
107 ms |
329192 KB |
Output is correct |
36 |
Correct |
101 ms |
329456 KB |
Output is correct |
37 |
Correct |
105 ms |
329816 KB |
Output is correct |
38 |
Correct |
107 ms |
333376 KB |
Output is correct |
39 |
Correct |
108 ms |
332660 KB |
Output is correct |
40 |
Correct |
109 ms |
329556 KB |
Output is correct |
41 |
Correct |
105 ms |
329552 KB |
Output is correct |
42 |
Correct |
110 ms |
335188 KB |
Output is correct |
43 |
Correct |
107 ms |
329552 KB |
Output is correct |
44 |
Correct |
108 ms |
329552 KB |
Output is correct |
45 |
Correct |
104 ms |
329952 KB |
Output is correct |
46 |
Correct |
109 ms |
329956 KB |
Output is correct |
47 |
Correct |
108 ms |
329840 KB |
Output is correct |
48 |
Correct |
107 ms |
329440 KB |
Output is correct |
49 |
Correct |
107 ms |
329556 KB |
Output is correct |
50 |
Correct |
112 ms |
329572 KB |
Output is correct |
51 |
Correct |
105 ms |
329544 KB |
Output is correct |
52 |
Correct |
101 ms |
329552 KB |
Output is correct |
53 |
Correct |
102 ms |
329552 KB |
Output is correct |
54 |
Correct |
105 ms |
329716 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
102 ms |
329044 KB |
Output is correct |
2 |
Correct |
103 ms |
329116 KB |
Output is correct |
3 |
Correct |
108 ms |
329192 KB |
Output is correct |
4 |
Correct |
101 ms |
328976 KB |
Output is correct |
5 |
Correct |
103 ms |
328972 KB |
Output is correct |
6 |
Correct |
102 ms |
329040 KB |
Output is correct |
7 |
Correct |
111 ms |
329192 KB |
Output is correct |
8 |
Correct |
102 ms |
329024 KB |
Output is correct |
9 |
Correct |
102 ms |
329044 KB |
Output is correct |
10 |
Correct |
107 ms |
329044 KB |
Output is correct |
11 |
Correct |
108 ms |
328984 KB |
Output is correct |
12 |
Correct |
115 ms |
329300 KB |
Output is correct |
13 |
Correct |
103 ms |
329112 KB |
Output is correct |
14 |
Correct |
104 ms |
329140 KB |
Output is correct |
15 |
Correct |
107 ms |
329044 KB |
Output is correct |
16 |
Correct |
104 ms |
329040 KB |
Output is correct |
17 |
Correct |
102 ms |
329044 KB |
Output is correct |
18 |
Correct |
114 ms |
329192 KB |
Output is correct |
19 |
Correct |
102 ms |
329204 KB |
Output is correct |
20 |
Correct |
103 ms |
329188 KB |
Output is correct |
21 |
Correct |
100 ms |
329044 KB |
Output is correct |
22 |
Correct |
104 ms |
329052 KB |
Output is correct |
23 |
Correct |
100 ms |
328956 KB |
Output is correct |
24 |
Correct |
100 ms |
329144 KB |
Output is correct |
25 |
Correct |
100 ms |
329044 KB |
Output is correct |
26 |
Correct |
101 ms |
329168 KB |
Output is correct |
27 |
Correct |
104 ms |
329388 KB |
Output is correct |
28 |
Correct |
100 ms |
329040 KB |
Output is correct |
29 |
Correct |
101 ms |
328996 KB |
Output is correct |
30 |
Correct |
101 ms |
329128 KB |
Output is correct |
31 |
Correct |
106 ms |
329208 KB |
Output is correct |
32 |
Correct |
111 ms |
329136 KB |
Output is correct |
33 |
Correct |
105 ms |
329556 KB |
Output is correct |
34 |
Correct |
101 ms |
329204 KB |
Output is correct |
35 |
Correct |
107 ms |
329192 KB |
Output is correct |
36 |
Correct |
101 ms |
329456 KB |
Output is correct |
37 |
Correct |
105 ms |
329816 KB |
Output is correct |
38 |
Correct |
107 ms |
333376 KB |
Output is correct |
39 |
Correct |
108 ms |
332660 KB |
Output is correct |
40 |
Correct |
109 ms |
329556 KB |
Output is correct |
41 |
Correct |
105 ms |
329552 KB |
Output is correct |
42 |
Correct |
110 ms |
335188 KB |
Output is correct |
43 |
Correct |
107 ms |
329552 KB |
Output is correct |
44 |
Correct |
108 ms |
329552 KB |
Output is correct |
45 |
Correct |
104 ms |
329952 KB |
Output is correct |
46 |
Correct |
109 ms |
329956 KB |
Output is correct |
47 |
Correct |
108 ms |
329840 KB |
Output is correct |
48 |
Correct |
107 ms |
329440 KB |
Output is correct |
49 |
Correct |
107 ms |
329556 KB |
Output is correct |
50 |
Correct |
112 ms |
329572 KB |
Output is correct |
51 |
Correct |
105 ms |
329544 KB |
Output is correct |
52 |
Correct |
101 ms |
329552 KB |
Output is correct |
53 |
Correct |
102 ms |
329552 KB |
Output is correct |
54 |
Correct |
105 ms |
329716 KB |
Output is correct |
55 |
Correct |
111 ms |
329924 KB |
Output is correct |
56 |
Correct |
106 ms |
329812 KB |
Output is correct |
57 |
Correct |
118 ms |
338900 KB |
Output is correct |
58 |
Correct |
119 ms |
330068 KB |
Output is correct |
59 |
Correct |
118 ms |
338820 KB |
Output is correct |
60 |
Correct |
115 ms |
330068 KB |
Output is correct |
61 |
Correct |
110 ms |
330064 KB |
Output is correct |
62 |
Correct |
130 ms |
346120 KB |
Output is correct |
63 |
Correct |
112 ms |
330064 KB |
Output is correct |
64 |
Correct |
115 ms |
329952 KB |
Output is correct |
65 |
Correct |
114 ms |
331344 KB |
Output is correct |
66 |
Correct |
116 ms |
331292 KB |
Output is correct |
67 |
Correct |
122 ms |
330732 KB |
Output is correct |
68 |
Correct |
121 ms |
330064 KB |
Output is correct |
69 |
Correct |
123 ms |
330064 KB |
Output is correct |
70 |
Correct |
122 ms |
329956 KB |
Output is correct |
71 |
Correct |
127 ms |
330104 KB |
Output is correct |
72 |
Correct |
111 ms |
330928 KB |
Output is correct |
73 |
Correct |
115 ms |
330584 KB |
Output is correct |
74 |
Correct |
104 ms |
330068 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
122 ms |
329040 KB |
Output is correct |
2 |
Correct |
107 ms |
329044 KB |
Output is correct |
3 |
Correct |
106 ms |
329044 KB |
Output is correct |
4 |
Correct |
108 ms |
329216 KB |
Output is correct |
5 |
Correct |
109 ms |
329140 KB |
Output is correct |
6 |
Correct |
104 ms |
329040 KB |
Output is correct |
7 |
Correct |
108 ms |
329044 KB |
Output is correct |
8 |
Correct |
107 ms |
329056 KB |
Output is correct |
9 |
Correct |
107 ms |
329024 KB |
Output is correct |
10 |
Correct |
102 ms |
329084 KB |
Output is correct |
11 |
Correct |
100 ms |
329040 KB |
Output is correct |
12 |
Correct |
104 ms |
329252 KB |
Output is correct |
13 |
Correct |
102 ms |
329192 KB |
Output is correct |
14 |
Correct |
102 ms |
328952 KB |
Output is correct |
15 |
Correct |
103 ms |
329016 KB |
Output is correct |
16 |
Correct |
99 ms |
329184 KB |
Output is correct |
17 |
Correct |
99 ms |
329040 KB |
Output is correct |
18 |
Correct |
99 ms |
329044 KB |
Output is correct |
19 |
Correct |
107 ms |
329556 KB |
Output is correct |
20 |
Correct |
104 ms |
330228 KB |
Output is correct |
21 |
Correct |
106 ms |
332624 KB |
Output is correct |
22 |
Correct |
106 ms |
329548 KB |
Output is correct |
23 |
Correct |
106 ms |
329552 KB |
Output is correct |
24 |
Correct |
106 ms |
330056 KB |
Output is correct |
25 |
Correct |
103 ms |
330068 KB |
Output is correct |
26 |
Correct |
103 ms |
329680 KB |
Output is correct |
27 |
Correct |
103 ms |
329552 KB |
Output is correct |
28 |
Correct |
104 ms |
329868 KB |
Output is correct |
29 |
Correct |
120 ms |
330064 KB |
Output is correct |
30 |
Correct |
106 ms |
329812 KB |
Output is correct |
31 |
Correct |
119 ms |
338864 KB |
Output is correct |
32 |
Correct |
115 ms |
330072 KB |
Output is correct |
33 |
Correct |
110 ms |
330068 KB |
Output is correct |
34 |
Correct |
114 ms |
331172 KB |
Output is correct |
35 |
Correct |
110 ms |
331348 KB |
Output is correct |
36 |
Correct |
113 ms |
331252 KB |
Output is correct |
37 |
Correct |
114 ms |
330584 KB |
Output is correct |
38 |
Correct |
102 ms |
329988 KB |
Output is correct |
39 |
Correct |
244 ms |
338172 KB |
Output is correct |
40 |
Correct |
131 ms |
330064 KB |
Output is correct |
41 |
Correct |
112 ms |
331820 KB |
Output is correct |
42 |
Correct |
122 ms |
330412 KB |
Output is correct |
43 |
Correct |
136 ms |
331600 KB |
Output is correct |
44 |
Correct |
149 ms |
334344 KB |
Output is correct |
45 |
Correct |
140 ms |
335332 KB |
Output is correct |
46 |
Correct |
189 ms |
360964 KB |
Output is correct |
47 |
Correct |
272 ms |
338508 KB |
Output is correct |
48 |
Correct |
205 ms |
337992 KB |
Output is correct |
49 |
Correct |
200 ms |
349832 KB |
Output is correct |
50 |
Correct |
176 ms |
349680 KB |
Output is correct |
51 |
Correct |
236 ms |
342100 KB |
Output is correct |
52 |
Correct |
195 ms |
339280 KB |
Output is correct |
53 |
Correct |
207 ms |
338516 KB |
Output is correct |
54 |
Correct |
102 ms |
329044 KB |
Output is correct |
55 |
Correct |
103 ms |
329116 KB |
Output is correct |
56 |
Correct |
108 ms |
329192 KB |
Output is correct |
57 |
Correct |
101 ms |
328976 KB |
Output is correct |
58 |
Correct |
103 ms |
328972 KB |
Output is correct |
59 |
Correct |
102 ms |
329040 KB |
Output is correct |
60 |
Correct |
111 ms |
329192 KB |
Output is correct |
61 |
Correct |
102 ms |
329024 KB |
Output is correct |
62 |
Correct |
102 ms |
329044 KB |
Output is correct |
63 |
Correct |
107 ms |
329044 KB |
Output is correct |
64 |
Correct |
108 ms |
328984 KB |
Output is correct |
65 |
Correct |
115 ms |
329300 KB |
Output is correct |
66 |
Correct |
103 ms |
329112 KB |
Output is correct |
67 |
Correct |
104 ms |
329140 KB |
Output is correct |
68 |
Correct |
107 ms |
329044 KB |
Output is correct |
69 |
Correct |
104 ms |
329040 KB |
Output is correct |
70 |
Correct |
102 ms |
329044 KB |
Output is correct |
71 |
Correct |
114 ms |
329192 KB |
Output is correct |
72 |
Correct |
102 ms |
329204 KB |
Output is correct |
73 |
Correct |
103 ms |
329188 KB |
Output is correct |
74 |
Correct |
100 ms |
329044 KB |
Output is correct |
75 |
Correct |
104 ms |
329052 KB |
Output is correct |
76 |
Correct |
100 ms |
328956 KB |
Output is correct |
77 |
Correct |
100 ms |
329144 KB |
Output is correct |
78 |
Correct |
100 ms |
329044 KB |
Output is correct |
79 |
Correct |
101 ms |
329168 KB |
Output is correct |
80 |
Correct |
104 ms |
329388 KB |
Output is correct |
81 |
Correct |
100 ms |
329040 KB |
Output is correct |
82 |
Correct |
101 ms |
328996 KB |
Output is correct |
83 |
Correct |
101 ms |
329128 KB |
Output is correct |
84 |
Correct |
106 ms |
329208 KB |
Output is correct |
85 |
Correct |
111 ms |
329136 KB |
Output is correct |
86 |
Correct |
99 ms |
329060 KB |
Output is correct |
87 |
Correct |
100 ms |
329184 KB |
Output is correct |
88 |
Correct |
101 ms |
329044 KB |
Output is correct |
89 |
Correct |
101 ms |
329044 KB |
Output is correct |
90 |
Correct |
101 ms |
329180 KB |
Output is correct |
91 |
Correct |
100 ms |
329192 KB |
Output is correct |
92 |
Correct |
101 ms |
329100 KB |
Output is correct |
93 |
Correct |
101 ms |
329208 KB |
Output is correct |
94 |
Correct |
100 ms |
329264 KB |
Output is correct |
95 |
Correct |
100 ms |
329044 KB |
Output is correct |
96 |
Correct |
100 ms |
329044 KB |
Output is correct |
97 |
Correct |
99 ms |
329220 KB |
Output is correct |
98 |
Correct |
99 ms |
329040 KB |
Output is correct |
99 |
Correct |
102 ms |
329092 KB |
Output is correct |
100 |
Correct |
102 ms |
329100 KB |
Output is correct |
101 |
Correct |
102 ms |
329076 KB |
Output is correct |
102 |
Correct |
101 ms |
329044 KB |
Output is correct |
103 |
Correct |
102 ms |
329044 KB |
Output is correct |
104 |
Correct |
102 ms |
329040 KB |
Output is correct |
105 |
Correct |
100 ms |
329192 KB |
Output is correct |
106 |
Correct |
100 ms |
329156 KB |
Output is correct |
107 |
Correct |
103 ms |
329184 KB |
Output is correct |
108 |
Correct |
100 ms |
329208 KB |
Output is correct |
109 |
Correct |
100 ms |
329088 KB |
Output is correct |
110 |
Correct |
103 ms |
329412 KB |
Output is correct |
111 |
Correct |
106 ms |
333524 KB |
Output is correct |
112 |
Correct |
107 ms |
332628 KB |
Output is correct |
113 |
Correct |
108 ms |
335172 KB |
Output is correct |
114 |
Correct |
121 ms |
329444 KB |
Output is correct |
115 |
Correct |
103 ms |
329580 KB |
Output is correct |
116 |
Correct |
104 ms |
329488 KB |
Output is correct |
117 |
Correct |
101 ms |
329692 KB |
Output is correct |
118 |
Correct |
107 ms |
329472 KB |
Output is correct |
119 |
Correct |
114 ms |
338816 KB |
Output is correct |
120 |
Correct |
119 ms |
338916 KB |
Output is correct |
121 |
Correct |
125 ms |
346240 KB |
Output is correct |
122 |
Correct |
116 ms |
330160 KB |
Output is correct |
123 |
Correct |
114 ms |
330040 KB |
Output is correct |
124 |
Correct |
145 ms |
357636 KB |
Output is correct |
125 |
Correct |
286 ms |
443320 KB |
Output is correct |
126 |
Correct |
167 ms |
360964 KB |
Output is correct |
127 |
Correct |
363 ms |
502916 KB |
Output is correct |
128 |
Correct |
230 ms |
338260 KB |
Output is correct |
129 |
Correct |
255 ms |
338140 KB |
Output is correct |
130 |
Correct |
263 ms |
436332 KB |
Output is correct |
131 |
Correct |
250 ms |
426896 KB |
Output is correct |
132 |
Correct |
105 ms |
329556 KB |
Output is correct |
133 |
Correct |
101 ms |
329204 KB |
Output is correct |
134 |
Correct |
107 ms |
329192 KB |
Output is correct |
135 |
Correct |
101 ms |
329456 KB |
Output is correct |
136 |
Correct |
105 ms |
329816 KB |
Output is correct |
137 |
Correct |
107 ms |
333376 KB |
Output is correct |
138 |
Correct |
108 ms |
332660 KB |
Output is correct |
139 |
Correct |
109 ms |
329556 KB |
Output is correct |
140 |
Correct |
105 ms |
329552 KB |
Output is correct |
141 |
Correct |
110 ms |
335188 KB |
Output is correct |
142 |
Correct |
107 ms |
329552 KB |
Output is correct |
143 |
Correct |
108 ms |
329552 KB |
Output is correct |
144 |
Correct |
104 ms |
329952 KB |
Output is correct |
145 |
Correct |
109 ms |
329956 KB |
Output is correct |
146 |
Correct |
108 ms |
329840 KB |
Output is correct |
147 |
Correct |
107 ms |
329440 KB |
Output is correct |
148 |
Correct |
107 ms |
329556 KB |
Output is correct |
149 |
Correct |
112 ms |
329572 KB |
Output is correct |
150 |
Correct |
105 ms |
329544 KB |
Output is correct |
151 |
Correct |
101 ms |
329552 KB |
Output is correct |
152 |
Correct |
102 ms |
329552 KB |
Output is correct |
153 |
Correct |
105 ms |
329716 KB |
Output is correct |
154 |
Correct |
111 ms |
329924 KB |
Output is correct |
155 |
Correct |
106 ms |
329812 KB |
Output is correct |
156 |
Correct |
118 ms |
338900 KB |
Output is correct |
157 |
Correct |
119 ms |
330068 KB |
Output is correct |
158 |
Correct |
118 ms |
338820 KB |
Output is correct |
159 |
Correct |
115 ms |
330068 KB |
Output is correct |
160 |
Correct |
110 ms |
330064 KB |
Output is correct |
161 |
Correct |
130 ms |
346120 KB |
Output is correct |
162 |
Correct |
112 ms |
330064 KB |
Output is correct |
163 |
Correct |
115 ms |
329952 KB |
Output is correct |
164 |
Correct |
114 ms |
331344 KB |
Output is correct |
165 |
Correct |
116 ms |
331292 KB |
Output is correct |
166 |
Correct |
122 ms |
330732 KB |
Output is correct |
167 |
Correct |
121 ms |
330064 KB |
Output is correct |
168 |
Correct |
123 ms |
330064 KB |
Output is correct |
169 |
Correct |
122 ms |
329956 KB |
Output is correct |
170 |
Correct |
127 ms |
330104 KB |
Output is correct |
171 |
Correct |
111 ms |
330928 KB |
Output is correct |
172 |
Correct |
115 ms |
330584 KB |
Output is correct |
173 |
Correct |
104 ms |
330068 KB |
Output is correct |
174 |
Correct |
110 ms |
330504 KB |
Output is correct |
175 |
Correct |
146 ms |
331088 KB |
Output is correct |
176 |
Correct |
146 ms |
336048 KB |
Output is correct |
177 |
Correct |
196 ms |
335360 KB |
Output is correct |
178 |
Correct |
129 ms |
337140 KB |
Output is correct |
179 |
Correct |
222 ms |
338520 KB |
Output is correct |
180 |
Correct |
301 ms |
338000 KB |
Output is correct |
181 |
Correct |
308 ms |
338196 KB |
Output is correct |
182 |
Correct |
339 ms |
338224 KB |
Output is correct |
183 |
Correct |
328 ms |
354828 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
122 ms |
329040 KB |
Output is correct |
2 |
Correct |
107 ms |
329044 KB |
Output is correct |
3 |
Correct |
106 ms |
329044 KB |
Output is correct |
4 |
Correct |
108 ms |
329216 KB |
Output is correct |
5 |
Correct |
109 ms |
329140 KB |
Output is correct |
6 |
Correct |
104 ms |
329040 KB |
Output is correct |
7 |
Correct |
108 ms |
329044 KB |
Output is correct |
8 |
Correct |
107 ms |
329056 KB |
Output is correct |
9 |
Correct |
107 ms |
329024 KB |
Output is correct |
10 |
Correct |
102 ms |
329084 KB |
Output is correct |
11 |
Correct |
100 ms |
329040 KB |
Output is correct |
12 |
Correct |
104 ms |
329252 KB |
Output is correct |
13 |
Correct |
102 ms |
329192 KB |
Output is correct |
14 |
Correct |
102 ms |
328952 KB |
Output is correct |
15 |
Correct |
103 ms |
329016 KB |
Output is correct |
16 |
Correct |
99 ms |
329184 KB |
Output is correct |
17 |
Correct |
99 ms |
329040 KB |
Output is correct |
18 |
Correct |
99 ms |
329044 KB |
Output is correct |
19 |
Correct |
107 ms |
329556 KB |
Output is correct |
20 |
Correct |
104 ms |
330228 KB |
Output is correct |
21 |
Correct |
106 ms |
332624 KB |
Output is correct |
22 |
Correct |
106 ms |
329548 KB |
Output is correct |
23 |
Correct |
106 ms |
329552 KB |
Output is correct |
24 |
Correct |
106 ms |
330056 KB |
Output is correct |
25 |
Correct |
103 ms |
330068 KB |
Output is correct |
26 |
Correct |
103 ms |
329680 KB |
Output is correct |
27 |
Correct |
103 ms |
329552 KB |
Output is correct |
28 |
Correct |
104 ms |
329868 KB |
Output is correct |
29 |
Correct |
120 ms |
330064 KB |
Output is correct |
30 |
Correct |
106 ms |
329812 KB |
Output is correct |
31 |
Correct |
119 ms |
338864 KB |
Output is correct |
32 |
Correct |
115 ms |
330072 KB |
Output is correct |
33 |
Correct |
110 ms |
330068 KB |
Output is correct |
34 |
Correct |
114 ms |
331172 KB |
Output is correct |
35 |
Correct |
110 ms |
331348 KB |
Output is correct |
36 |
Correct |
113 ms |
331252 KB |
Output is correct |
37 |
Correct |
114 ms |
330584 KB |
Output is correct |
38 |
Correct |
102 ms |
329988 KB |
Output is correct |
39 |
Correct |
244 ms |
338172 KB |
Output is correct |
40 |
Correct |
131 ms |
330064 KB |
Output is correct |
41 |
Correct |
112 ms |
331820 KB |
Output is correct |
42 |
Correct |
122 ms |
330412 KB |
Output is correct |
43 |
Correct |
136 ms |
331600 KB |
Output is correct |
44 |
Correct |
149 ms |
334344 KB |
Output is correct |
45 |
Correct |
140 ms |
335332 KB |
Output is correct |
46 |
Correct |
189 ms |
360964 KB |
Output is correct |
47 |
Correct |
272 ms |
338508 KB |
Output is correct |
48 |
Correct |
205 ms |
337992 KB |
Output is correct |
49 |
Correct |
200 ms |
349832 KB |
Output is correct |
50 |
Correct |
176 ms |
349680 KB |
Output is correct |
51 |
Correct |
236 ms |
342100 KB |
Output is correct |
52 |
Correct |
195 ms |
339280 KB |
Output is correct |
53 |
Correct |
207 ms |
338516 KB |
Output is correct |
54 |
Correct |
102 ms |
329044 KB |
Output is correct |
55 |
Correct |
103 ms |
329116 KB |
Output is correct |
56 |
Correct |
108 ms |
329192 KB |
Output is correct |
57 |
Correct |
101 ms |
328976 KB |
Output is correct |
58 |
Correct |
103 ms |
328972 KB |
Output is correct |
59 |
Correct |
102 ms |
329040 KB |
Output is correct |
60 |
Correct |
111 ms |
329192 KB |
Output is correct |
61 |
Correct |
102 ms |
329024 KB |
Output is correct |
62 |
Correct |
102 ms |
329044 KB |
Output is correct |
63 |
Correct |
107 ms |
329044 KB |
Output is correct |
64 |
Correct |
108 ms |
328984 KB |
Output is correct |
65 |
Correct |
115 ms |
329300 KB |
Output is correct |
66 |
Correct |
103 ms |
329112 KB |
Output is correct |
67 |
Correct |
104 ms |
329140 KB |
Output is correct |
68 |
Correct |
107 ms |
329044 KB |
Output is correct |
69 |
Correct |
104 ms |
329040 KB |
Output is correct |
70 |
Correct |
102 ms |
329044 KB |
Output is correct |
71 |
Correct |
114 ms |
329192 KB |
Output is correct |
72 |
Correct |
102 ms |
329204 KB |
Output is correct |
73 |
Correct |
103 ms |
329188 KB |
Output is correct |
74 |
Correct |
100 ms |
329044 KB |
Output is correct |
75 |
Correct |
104 ms |
329052 KB |
Output is correct |
76 |
Correct |
100 ms |
328956 KB |
Output is correct |
77 |
Correct |
100 ms |
329144 KB |
Output is correct |
78 |
Correct |
100 ms |
329044 KB |
Output is correct |
79 |
Correct |
101 ms |
329168 KB |
Output is correct |
80 |
Correct |
104 ms |
329388 KB |
Output is correct |
81 |
Correct |
100 ms |
329040 KB |
Output is correct |
82 |
Correct |
101 ms |
328996 KB |
Output is correct |
83 |
Correct |
101 ms |
329128 KB |
Output is correct |
84 |
Correct |
106 ms |
329208 KB |
Output is correct |
85 |
Correct |
111 ms |
329136 KB |
Output is correct |
86 |
Correct |
99 ms |
329060 KB |
Output is correct |
87 |
Correct |
100 ms |
329184 KB |
Output is correct |
88 |
Correct |
101 ms |
329044 KB |
Output is correct |
89 |
Correct |
101 ms |
329044 KB |
Output is correct |
90 |
Correct |
101 ms |
329180 KB |
Output is correct |
91 |
Correct |
100 ms |
329192 KB |
Output is correct |
92 |
Correct |
101 ms |
329100 KB |
Output is correct |
93 |
Correct |
101 ms |
329208 KB |
Output is correct |
94 |
Correct |
100 ms |
329264 KB |
Output is correct |
95 |
Correct |
100 ms |
329044 KB |
Output is correct |
96 |
Correct |
100 ms |
329044 KB |
Output is correct |
97 |
Correct |
99 ms |
329220 KB |
Output is correct |
98 |
Correct |
99 ms |
329040 KB |
Output is correct |
99 |
Correct |
102 ms |
329092 KB |
Output is correct |
100 |
Correct |
102 ms |
329100 KB |
Output is correct |
101 |
Correct |
102 ms |
329076 KB |
Output is correct |
102 |
Correct |
101 ms |
329044 KB |
Output is correct |
103 |
Correct |
102 ms |
329044 KB |
Output is correct |
104 |
Correct |
102 ms |
329040 KB |
Output is correct |
105 |
Correct |
100 ms |
329192 KB |
Output is correct |
106 |
Correct |
100 ms |
329156 KB |
Output is correct |
107 |
Correct |
103 ms |
329184 KB |
Output is correct |
108 |
Correct |
100 ms |
329208 KB |
Output is correct |
109 |
Correct |
100 ms |
329088 KB |
Output is correct |
110 |
Correct |
103 ms |
329412 KB |
Output is correct |
111 |
Correct |
106 ms |
333524 KB |
Output is correct |
112 |
Correct |
107 ms |
332628 KB |
Output is correct |
113 |
Correct |
108 ms |
335172 KB |
Output is correct |
114 |
Correct |
121 ms |
329444 KB |
Output is correct |
115 |
Correct |
103 ms |
329580 KB |
Output is correct |
116 |
Correct |
104 ms |
329488 KB |
Output is correct |
117 |
Correct |
101 ms |
329692 KB |
Output is correct |
118 |
Correct |
107 ms |
329472 KB |
Output is correct |
119 |
Correct |
114 ms |
338816 KB |
Output is correct |
120 |
Correct |
119 ms |
338916 KB |
Output is correct |
121 |
Correct |
125 ms |
346240 KB |
Output is correct |
122 |
Correct |
116 ms |
330160 KB |
Output is correct |
123 |
Correct |
114 ms |
330040 KB |
Output is correct |
124 |
Correct |
145 ms |
357636 KB |
Output is correct |
125 |
Correct |
286 ms |
443320 KB |
Output is correct |
126 |
Correct |
167 ms |
360964 KB |
Output is correct |
127 |
Correct |
363 ms |
502916 KB |
Output is correct |
128 |
Correct |
230 ms |
338260 KB |
Output is correct |
129 |
Correct |
255 ms |
338140 KB |
Output is correct |
130 |
Correct |
263 ms |
436332 KB |
Output is correct |
131 |
Correct |
250 ms |
426896 KB |
Output is correct |
132 |
Correct |
105 ms |
329556 KB |
Output is correct |
133 |
Correct |
101 ms |
329204 KB |
Output is correct |
134 |
Correct |
107 ms |
329192 KB |
Output is correct |
135 |
Correct |
101 ms |
329456 KB |
Output is correct |
136 |
Correct |
105 ms |
329816 KB |
Output is correct |
137 |
Correct |
107 ms |
333376 KB |
Output is correct |
138 |
Correct |
108 ms |
332660 KB |
Output is correct |
139 |
Correct |
109 ms |
329556 KB |
Output is correct |
140 |
Correct |
105 ms |
329552 KB |
Output is correct |
141 |
Correct |
110 ms |
335188 KB |
Output is correct |
142 |
Correct |
107 ms |
329552 KB |
Output is correct |
143 |
Correct |
108 ms |
329552 KB |
Output is correct |
144 |
Correct |
104 ms |
329952 KB |
Output is correct |
145 |
Correct |
109 ms |
329956 KB |
Output is correct |
146 |
Correct |
108 ms |
329840 KB |
Output is correct |
147 |
Correct |
107 ms |
329440 KB |
Output is correct |
148 |
Correct |
107 ms |
329556 KB |
Output is correct |
149 |
Correct |
112 ms |
329572 KB |
Output is correct |
150 |
Correct |
105 ms |
329544 KB |
Output is correct |
151 |
Correct |
101 ms |
329552 KB |
Output is correct |
152 |
Correct |
102 ms |
329552 KB |
Output is correct |
153 |
Correct |
105 ms |
329716 KB |
Output is correct |
154 |
Correct |
111 ms |
329924 KB |
Output is correct |
155 |
Correct |
106 ms |
329812 KB |
Output is correct |
156 |
Correct |
118 ms |
338900 KB |
Output is correct |
157 |
Correct |
119 ms |
330068 KB |
Output is correct |
158 |
Correct |
118 ms |
338820 KB |
Output is correct |
159 |
Correct |
115 ms |
330068 KB |
Output is correct |
160 |
Correct |
110 ms |
330064 KB |
Output is correct |
161 |
Correct |
130 ms |
346120 KB |
Output is correct |
162 |
Correct |
112 ms |
330064 KB |
Output is correct |
163 |
Correct |
115 ms |
329952 KB |
Output is correct |
164 |
Correct |
114 ms |
331344 KB |
Output is correct |
165 |
Correct |
116 ms |
331292 KB |
Output is correct |
166 |
Correct |
122 ms |
330732 KB |
Output is correct |
167 |
Correct |
121 ms |
330064 KB |
Output is correct |
168 |
Correct |
123 ms |
330064 KB |
Output is correct |
169 |
Correct |
122 ms |
329956 KB |
Output is correct |
170 |
Correct |
127 ms |
330104 KB |
Output is correct |
171 |
Correct |
111 ms |
330928 KB |
Output is correct |
172 |
Correct |
115 ms |
330584 KB |
Output is correct |
173 |
Correct |
104 ms |
330068 KB |
Output is correct |
174 |
Correct |
110 ms |
330504 KB |
Output is correct |
175 |
Correct |
146 ms |
331088 KB |
Output is correct |
176 |
Correct |
146 ms |
336048 KB |
Output is correct |
177 |
Correct |
196 ms |
335360 KB |
Output is correct |
178 |
Correct |
129 ms |
337140 KB |
Output is correct |
179 |
Correct |
222 ms |
338520 KB |
Output is correct |
180 |
Correct |
301 ms |
338000 KB |
Output is correct |
181 |
Correct |
308 ms |
338196 KB |
Output is correct |
182 |
Correct |
339 ms |
338224 KB |
Output is correct |
183 |
Correct |
328 ms |
354828 KB |
Output is correct |
184 |
Correct |
366 ms |
346964 KB |
Output is correct |
185 |
Correct |
177 ms |
339196 KB |
Output is correct |
186 |
Correct |
298 ms |
460864 KB |
Output is correct |
187 |
Correct |
171 ms |
341988 KB |
Output is correct |
188 |
Correct |
552 ms |
536316 KB |
Output is correct |
189 |
Correct |
378 ms |
347812 KB |
Output is correct |
190 |
Correct |
215 ms |
346964 KB |
Output is correct |
191 |
Correct |
772 ms |
727060 KB |
Output is correct |
192 |
Correct |
562 ms |
347736 KB |
Output is correct |
193 |
Correct |
414 ms |
347304 KB |
Output is correct |
194 |
Correct |
347 ms |
370180 KB |
Output is correct |
195 |
Correct |
218 ms |
370248 KB |
Output is correct |
196 |
Correct |
485 ms |
347440 KB |
Output is correct |
197 |
Correct |
293 ms |
347216 KB |
Output is correct |
198 |
Correct |
302 ms |
346960 KB |
Output is correct |
199 |
Correct |
505 ms |
347232 KB |
Output is correct |
200 |
Correct |
237 ms |
352184 KB |
Output is correct |
201 |
Correct |
315 ms |
349164 KB |
Output is correct |
202 |
Correct |
340 ms |
347472 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
122 ms |
329040 KB |
Output is correct |
2 |
Correct |
107 ms |
329044 KB |
Output is correct |
3 |
Correct |
106 ms |
329044 KB |
Output is correct |
4 |
Correct |
108 ms |
329216 KB |
Output is correct |
5 |
Correct |
109 ms |
329140 KB |
Output is correct |
6 |
Correct |
104 ms |
329040 KB |
Output is correct |
7 |
Correct |
108 ms |
329044 KB |
Output is correct |
8 |
Correct |
107 ms |
329056 KB |
Output is correct |
9 |
Correct |
107 ms |
329024 KB |
Output is correct |
10 |
Correct |
102 ms |
329084 KB |
Output is correct |
11 |
Correct |
100 ms |
329040 KB |
Output is correct |
12 |
Correct |
104 ms |
329252 KB |
Output is correct |
13 |
Correct |
102 ms |
329192 KB |
Output is correct |
14 |
Correct |
102 ms |
328952 KB |
Output is correct |
15 |
Correct |
103 ms |
329016 KB |
Output is correct |
16 |
Correct |
99 ms |
329184 KB |
Output is correct |
17 |
Correct |
99 ms |
329040 KB |
Output is correct |
18 |
Correct |
99 ms |
329044 KB |
Output is correct |
19 |
Correct |
107 ms |
329556 KB |
Output is correct |
20 |
Correct |
104 ms |
330228 KB |
Output is correct |
21 |
Correct |
106 ms |
332624 KB |
Output is correct |
22 |
Correct |
106 ms |
329548 KB |
Output is correct |
23 |
Correct |
106 ms |
329552 KB |
Output is correct |
24 |
Correct |
106 ms |
330056 KB |
Output is correct |
25 |
Correct |
103 ms |
330068 KB |
Output is correct |
26 |
Correct |
103 ms |
329680 KB |
Output is correct |
27 |
Correct |
103 ms |
329552 KB |
Output is correct |
28 |
Correct |
104 ms |
329868 KB |
Output is correct |
29 |
Correct |
120 ms |
330064 KB |
Output is correct |
30 |
Correct |
106 ms |
329812 KB |
Output is correct |
31 |
Correct |
119 ms |
338864 KB |
Output is correct |
32 |
Correct |
115 ms |
330072 KB |
Output is correct |
33 |
Correct |
110 ms |
330068 KB |
Output is correct |
34 |
Correct |
114 ms |
331172 KB |
Output is correct |
35 |
Correct |
110 ms |
331348 KB |
Output is correct |
36 |
Correct |
113 ms |
331252 KB |
Output is correct |
37 |
Correct |
114 ms |
330584 KB |
Output is correct |
38 |
Correct |
102 ms |
329988 KB |
Output is correct |
39 |
Correct |
244 ms |
338172 KB |
Output is correct |
40 |
Correct |
131 ms |
330064 KB |
Output is correct |
41 |
Correct |
112 ms |
331820 KB |
Output is correct |
42 |
Correct |
122 ms |
330412 KB |
Output is correct |
43 |
Correct |
136 ms |
331600 KB |
Output is correct |
44 |
Correct |
149 ms |
334344 KB |
Output is correct |
45 |
Correct |
140 ms |
335332 KB |
Output is correct |
46 |
Correct |
189 ms |
360964 KB |
Output is correct |
47 |
Correct |
272 ms |
338508 KB |
Output is correct |
48 |
Correct |
205 ms |
337992 KB |
Output is correct |
49 |
Correct |
200 ms |
349832 KB |
Output is correct |
50 |
Correct |
176 ms |
349680 KB |
Output is correct |
51 |
Correct |
236 ms |
342100 KB |
Output is correct |
52 |
Correct |
195 ms |
339280 KB |
Output is correct |
53 |
Correct |
207 ms |
338516 KB |
Output is correct |
54 |
Correct |
102 ms |
329044 KB |
Output is correct |
55 |
Correct |
103 ms |
329116 KB |
Output is correct |
56 |
Correct |
108 ms |
329192 KB |
Output is correct |
57 |
Correct |
101 ms |
328976 KB |
Output is correct |
58 |
Correct |
103 ms |
328972 KB |
Output is correct |
59 |
Correct |
102 ms |
329040 KB |
Output is correct |
60 |
Correct |
111 ms |
329192 KB |
Output is correct |
61 |
Correct |
102 ms |
329024 KB |
Output is correct |
62 |
Correct |
102 ms |
329044 KB |
Output is correct |
63 |
Correct |
107 ms |
329044 KB |
Output is correct |
64 |
Correct |
108 ms |
328984 KB |
Output is correct |
65 |
Correct |
115 ms |
329300 KB |
Output is correct |
66 |
Correct |
103 ms |
329112 KB |
Output is correct |
67 |
Correct |
104 ms |
329140 KB |
Output is correct |
68 |
Correct |
107 ms |
329044 KB |
Output is correct |
69 |
Correct |
104 ms |
329040 KB |
Output is correct |
70 |
Correct |
102 ms |
329044 KB |
Output is correct |
71 |
Correct |
114 ms |
329192 KB |
Output is correct |
72 |
Correct |
102 ms |
329204 KB |
Output is correct |
73 |
Correct |
103 ms |
329188 KB |
Output is correct |
74 |
Correct |
100 ms |
329044 KB |
Output is correct |
75 |
Correct |
104 ms |
329052 KB |
Output is correct |
76 |
Correct |
100 ms |
328956 KB |
Output is correct |
77 |
Correct |
100 ms |
329144 KB |
Output is correct |
78 |
Correct |
100 ms |
329044 KB |
Output is correct |
79 |
Correct |
101 ms |
329168 KB |
Output is correct |
80 |
Correct |
104 ms |
329388 KB |
Output is correct |
81 |
Correct |
100 ms |
329040 KB |
Output is correct |
82 |
Correct |
101 ms |
328996 KB |
Output is correct |
83 |
Correct |
101 ms |
329128 KB |
Output is correct |
84 |
Correct |
106 ms |
329208 KB |
Output is correct |
85 |
Correct |
111 ms |
329136 KB |
Output is correct |
86 |
Correct |
99 ms |
329060 KB |
Output is correct |
87 |
Correct |
100 ms |
329184 KB |
Output is correct |
88 |
Correct |
101 ms |
329044 KB |
Output is correct |
89 |
Correct |
101 ms |
329044 KB |
Output is correct |
90 |
Correct |
101 ms |
329180 KB |
Output is correct |
91 |
Correct |
100 ms |
329192 KB |
Output is correct |
92 |
Correct |
101 ms |
329100 KB |
Output is correct |
93 |
Correct |
101 ms |
329208 KB |
Output is correct |
94 |
Correct |
100 ms |
329264 KB |
Output is correct |
95 |
Correct |
100 ms |
329044 KB |
Output is correct |
96 |
Correct |
100 ms |
329044 KB |
Output is correct |
97 |
Correct |
99 ms |
329220 KB |
Output is correct |
98 |
Correct |
99 ms |
329040 KB |
Output is correct |
99 |
Correct |
102 ms |
329092 KB |
Output is correct |
100 |
Correct |
102 ms |
329100 KB |
Output is correct |
101 |
Correct |
102 ms |
329076 KB |
Output is correct |
102 |
Correct |
101 ms |
329044 KB |
Output is correct |
103 |
Correct |
102 ms |
329044 KB |
Output is correct |
104 |
Correct |
102 ms |
329040 KB |
Output is correct |
105 |
Correct |
100 ms |
329192 KB |
Output is correct |
106 |
Correct |
100 ms |
329156 KB |
Output is correct |
107 |
Correct |
103 ms |
329184 KB |
Output is correct |
108 |
Correct |
100 ms |
329208 KB |
Output is correct |
109 |
Correct |
100 ms |
329088 KB |
Output is correct |
110 |
Correct |
103 ms |
329412 KB |
Output is correct |
111 |
Correct |
106 ms |
333524 KB |
Output is correct |
112 |
Correct |
107 ms |
332628 KB |
Output is correct |
113 |
Correct |
108 ms |
335172 KB |
Output is correct |
114 |
Correct |
121 ms |
329444 KB |
Output is correct |
115 |
Correct |
103 ms |
329580 KB |
Output is correct |
116 |
Correct |
104 ms |
329488 KB |
Output is correct |
117 |
Correct |
101 ms |
329692 KB |
Output is correct |
118 |
Correct |
107 ms |
329472 KB |
Output is correct |
119 |
Correct |
114 ms |
338816 KB |
Output is correct |
120 |
Correct |
119 ms |
338916 KB |
Output is correct |
121 |
Correct |
125 ms |
346240 KB |
Output is correct |
122 |
Correct |
116 ms |
330160 KB |
Output is correct |
123 |
Correct |
114 ms |
330040 KB |
Output is correct |
124 |
Correct |
145 ms |
357636 KB |
Output is correct |
125 |
Correct |
286 ms |
443320 KB |
Output is correct |
126 |
Correct |
167 ms |
360964 KB |
Output is correct |
127 |
Correct |
363 ms |
502916 KB |
Output is correct |
128 |
Correct |
230 ms |
338260 KB |
Output is correct |
129 |
Correct |
255 ms |
338140 KB |
Output is correct |
130 |
Correct |
263 ms |
436332 KB |
Output is correct |
131 |
Correct |
250 ms |
426896 KB |
Output is correct |
132 |
Correct |
105 ms |
329556 KB |
Output is correct |
133 |
Correct |
101 ms |
329204 KB |
Output is correct |
134 |
Correct |
107 ms |
329192 KB |
Output is correct |
135 |
Correct |
101 ms |
329456 KB |
Output is correct |
136 |
Correct |
105 ms |
329816 KB |
Output is correct |
137 |
Correct |
107 ms |
333376 KB |
Output is correct |
138 |
Correct |
108 ms |
332660 KB |
Output is correct |
139 |
Correct |
109 ms |
329556 KB |
Output is correct |
140 |
Correct |
105 ms |
329552 KB |
Output is correct |
141 |
Correct |
110 ms |
335188 KB |
Output is correct |
142 |
Correct |
107 ms |
329552 KB |
Output is correct |
143 |
Correct |
108 ms |
329552 KB |
Output is correct |
144 |
Correct |
104 ms |
329952 KB |
Output is correct |
145 |
Correct |
109 ms |
329956 KB |
Output is correct |
146 |
Correct |
108 ms |
329840 KB |
Output is correct |
147 |
Correct |
107 ms |
329440 KB |
Output is correct |
148 |
Correct |
107 ms |
329556 KB |
Output is correct |
149 |
Correct |
112 ms |
329572 KB |
Output is correct |
150 |
Correct |
105 ms |
329544 KB |
Output is correct |
151 |
Correct |
101 ms |
329552 KB |
Output is correct |
152 |
Correct |
102 ms |
329552 KB |
Output is correct |
153 |
Correct |
105 ms |
329716 KB |
Output is correct |
154 |
Correct |
111 ms |
329924 KB |
Output is correct |
155 |
Correct |
106 ms |
329812 KB |
Output is correct |
156 |
Correct |
118 ms |
338900 KB |
Output is correct |
157 |
Correct |
119 ms |
330068 KB |
Output is correct |
158 |
Correct |
118 ms |
338820 KB |
Output is correct |
159 |
Correct |
115 ms |
330068 KB |
Output is correct |
160 |
Correct |
110 ms |
330064 KB |
Output is correct |
161 |
Correct |
130 ms |
346120 KB |
Output is correct |
162 |
Correct |
112 ms |
330064 KB |
Output is correct |
163 |
Correct |
115 ms |
329952 KB |
Output is correct |
164 |
Correct |
114 ms |
331344 KB |
Output is correct |
165 |
Correct |
116 ms |
331292 KB |
Output is correct |
166 |
Correct |
122 ms |
330732 KB |
Output is correct |
167 |
Correct |
121 ms |
330064 KB |
Output is correct |
168 |
Correct |
123 ms |
330064 KB |
Output is correct |
169 |
Correct |
122 ms |
329956 KB |
Output is correct |
170 |
Correct |
127 ms |
330104 KB |
Output is correct |
171 |
Correct |
111 ms |
330928 KB |
Output is correct |
172 |
Correct |
115 ms |
330584 KB |
Output is correct |
173 |
Correct |
104 ms |
330068 KB |
Output is correct |
174 |
Correct |
110 ms |
330504 KB |
Output is correct |
175 |
Correct |
146 ms |
331088 KB |
Output is correct |
176 |
Correct |
146 ms |
336048 KB |
Output is correct |
177 |
Correct |
196 ms |
335360 KB |
Output is correct |
178 |
Correct |
129 ms |
337140 KB |
Output is correct |
179 |
Correct |
222 ms |
338520 KB |
Output is correct |
180 |
Correct |
301 ms |
338000 KB |
Output is correct |
181 |
Correct |
308 ms |
338196 KB |
Output is correct |
182 |
Correct |
339 ms |
338224 KB |
Output is correct |
183 |
Correct |
328 ms |
354828 KB |
Output is correct |
184 |
Correct |
366 ms |
346964 KB |
Output is correct |
185 |
Correct |
177 ms |
339196 KB |
Output is correct |
186 |
Correct |
298 ms |
460864 KB |
Output is correct |
187 |
Correct |
171 ms |
341988 KB |
Output is correct |
188 |
Correct |
552 ms |
536316 KB |
Output is correct |
189 |
Correct |
378 ms |
347812 KB |
Output is correct |
190 |
Correct |
215 ms |
346964 KB |
Output is correct |
191 |
Correct |
772 ms |
727060 KB |
Output is correct |
192 |
Correct |
562 ms |
347736 KB |
Output is correct |
193 |
Correct |
414 ms |
347304 KB |
Output is correct |
194 |
Correct |
347 ms |
370180 KB |
Output is correct |
195 |
Correct |
218 ms |
370248 KB |
Output is correct |
196 |
Correct |
485 ms |
347440 KB |
Output is correct |
197 |
Correct |
293 ms |
347216 KB |
Output is correct |
198 |
Correct |
302 ms |
346960 KB |
Output is correct |
199 |
Correct |
505 ms |
347232 KB |
Output is correct |
200 |
Correct |
237 ms |
352184 KB |
Output is correct |
201 |
Correct |
315 ms |
349164 KB |
Output is correct |
202 |
Correct |
340 ms |
347472 KB |
Output is correct |
203 |
Correct |
626 ms |
364624 KB |
Output is correct |
204 |
Correct |
412 ms |
347732 KB |
Output is correct |
205 |
Correct |
605 ms |
351828 KB |
Output is correct |
206 |
Correct |
253 ms |
365772 KB |
Output is correct |
207 |
Correct |
792 ms |
669592 KB |
Output is correct |
208 |
Correct |
673 ms |
366240 KB |
Output is correct |
209 |
Correct |
614 ms |
364624 KB |
Output is correct |
210 |
Correct |
790 ms |
765988 KB |
Output is correct |
211 |
Correct |
624 ms |
365228 KB |
Output is correct |
212 |
Correct |
807 ms |
365996 KB |
Output is correct |
213 |
Correct |
441 ms |
411524 KB |
Output is correct |
214 |
Correct |
420 ms |
411480 KB |
Output is correct |
215 |
Correct |
827 ms |
365384 KB |
Output is correct |
216 |
Correct |
770 ms |
365396 KB |
Output is correct |
217 |
Correct |
837 ms |
365400 KB |
Output is correct |
218 |
Correct |
692 ms |
365024 KB |
Output is correct |
219 |
Correct |
849 ms |
528560 KB |
Output is correct |
220 |
Correct |
425 ms |
550756 KB |
Output is correct |
221 |
Correct |
776 ms |
793980 KB |
Output is correct |
222 |
Correct |
1291 ms |
855148 KB |
Output is correct |
223 |
Correct |
629 ms |
371916 KB |
Output is correct |
224 |
Correct |
597 ms |
368164 KB |
Output is correct |
225 |
Correct |
355 ms |
365136 KB |
Output is correct |