/* Author : Mychecksdead */
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define MOD (1000000000+7)
#define MOD1 (998244353)
#define pb push_back
#define all(x) x.begin(), x.end()
#define en cout << '\n'
const int N = 6e6+100, M = 1e5+10, K = 52, MX = 30;
int r, c, n, sx, sy, ex, ey, arr[4][2]={{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
string s[N];
vector<vector<int>> dp;
void solve(){
cin >> r >> c >> n >> sx >> sy >> ex >> ey;
sx--, sy--, ex--, ey--;
for(int i = 0; i < r; ++i) cin >> s[i];
vector<vector<pair<int, int>>> C;
vector<vector<int>> vis(r, vector<int>(c));
vector<vector<array<int, 2>>> dist(r, vector<array<int, 2>>(c));
vector<vector<int>> dp(r, vector<int>(c, MOD));
for(int i = 0; i < r; ++i){
for(int j = 0; j < c; ++j){
if(s[i][j] == '#' || vis[i][j]) continue;
queue<pair<int, int>> q;
q.push({i, j});
vis[i][j] = C.size() + 1;
C.pb({});
while(!q.empty()){
int x = q.front().first, y = q.front().second;
q.pop();
C.back().pb({x, y});
for(int l = 0; l < 4; ++l){
int x1 = x + arr[l][0], x2 = y + arr[l][1];
if(x1 >= 0 && x2 >= 0 && x1 < r && x2 < c && s[x1][x2] != '#' && !vis[x1][x2]){
q.push({x1, x2});
vis[x1][x2] = C.size();
}
}
}
}
}
queue<array<int, 2>> Q;
for(auto p: C[vis[sx][sy] - 1]){
int x = 0, req = 4;
for(int l = 0; l < 4; ++l){
int a = arr[l][0] + p.first, b = arr[l][1] + p.second;
if(a >= 0 && b >= 0 && a < r && b < c){
if(vis[a][b] == vis[p.first][p.second]) ++x;
}else --req;
}
dp[p.first][p.second] = 0;
dist[p.first][p.second] = {0, 0};
if(x < req) Q.push({p.first, p.second});
}
int cur = 0;
while(dp[ex][ey] == MOD){
vector<pair<int, int>> Sn;
while(!Q.empty()){
int x = Q.front()[0], y = Q.front()[1]; Q.pop();
// cout << x << ' '<< y << ' ' << cur << ' ' << dist[x][y][0] << ' ' << dist[x][y][1] << endl;
int curx = dist[x][y][0], cury = dist[x][y][1];
for(int l = 0; l < 4; ++l){
int a = x + arr[l][0], b = y + arr[l][1];
if(a >= 0 && b >= 0 && a < r && b < c){
if(max(abs(curx + arr[l][0]), abs(cury + arr[l][1])) > n || abs(curx + arr[l][0]) + abs(cury + arr[l][1]) == 2*n){
if(dp[a][b] == MOD && vis[a][b] > 0){
for(auto p: C[vis[a][b] - 1]){
dp[p.first][p.second] = cur + 1;
Sn.pb(p);
}
}
continue;
}
if(dp[a][b] < MOD){
if(max(abs(dist[a][b][0]), abs(dist[a][b][1])) > max(abs(curx + arr[l][0]), abs(cury + arr[l][1]))){
dist[a][b] = {curx + arr[l][0], cury + arr[l][1]};
}
}else{
dp[a][b] = cur + 1;
dist[a][b] = {curx + arr[l][0], cury + arr[l][1]};
Sn.pb({a, b});
Q.push({a, b});
}
}
}
}
for(auto p: Sn){
int x = 0, req = 4;
for(int l = 0; l < 4; ++l){
int a = arr[l][0] + p.first, b = arr[l][1] + p.second;
if(a >= 0 && b >= 0 && a < r && b < c){
if(dp[a][b] < MOD) ++x;
}else --req;
}
if(x < req){
Q.push({p.first, p.second});
dist[p.first][p.second] = {0, 0};
}
}
++cur;
}
// for(int i = 0; i < r; ++i){
// for(int j = 0 ;j < c; ++j) cout << dp[i][j] << ' ';
// en;
// }
cout << dp[ex][ey];
}
int main(){
cin.tie(0); ios::sync_with_stdio(0);
int tt = 1, aa;
// freopen("in.txt", "r", stdin);
// freopen("out.txt", "w", stdout);
while(tt--){
solve();
en;
}
cerr<<"time taken : "<<(float)clock()/CLOCKS_PER_SEC<<" seconds\n";
return 0;
}
Compilation message
Main.cpp: In function 'int main()':
Main.cpp:120:15: warning: unused variable 'aa' [-Wunused-variable]
120 | int tt = 1, aa;
| ^~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
50 ms |
188312 KB |
Output is correct |
2 |
Correct |
49 ms |
188116 KB |
Output is correct |
3 |
Correct |
48 ms |
188248 KB |
Output is correct |
4 |
Correct |
48 ms |
188240 KB |
Output is correct |
5 |
Correct |
47 ms |
188272 KB |
Output is correct |
6 |
Correct |
52 ms |
188164 KB |
Output is correct |
7 |
Correct |
51 ms |
188252 KB |
Output is correct |
8 |
Correct |
48 ms |
188240 KB |
Output is correct |
9 |
Correct |
54 ms |
188496 KB |
Output is correct |
10 |
Correct |
48 ms |
188204 KB |
Output is correct |
11 |
Correct |
49 ms |
188240 KB |
Output is correct |
12 |
Correct |
47 ms |
188200 KB |
Output is correct |
13 |
Correct |
47 ms |
188244 KB |
Output is correct |
14 |
Correct |
47 ms |
188216 KB |
Output is correct |
15 |
Correct |
49 ms |
188240 KB |
Output is correct |
16 |
Correct |
48 ms |
188240 KB |
Output is correct |
17 |
Correct |
47 ms |
188240 KB |
Output is correct |
18 |
Correct |
50 ms |
188244 KB |
Output is correct |
19 |
Correct |
52 ms |
189268 KB |
Output is correct |
20 |
Correct |
51 ms |
189352 KB |
Output is correct |
21 |
Correct |
51 ms |
189900 KB |
Output is correct |
22 |
Correct |
55 ms |
189820 KB |
Output is correct |
23 |
Correct |
52 ms |
189328 KB |
Output is correct |
24 |
Correct |
54 ms |
190096 KB |
Output is correct |
25 |
Correct |
53 ms |
189548 KB |
Output is correct |
26 |
Correct |
50 ms |
189780 KB |
Output is correct |
27 |
Correct |
51 ms |
189780 KB |
Output is correct |
28 |
Correct |
51 ms |
189268 KB |
Output is correct |
29 |
Correct |
62 ms |
191068 KB |
Output is correct |
30 |
Correct |
53 ms |
190048 KB |
Output is correct |
31 |
Correct |
56 ms |
192968 KB |
Output is correct |
32 |
Correct |
67 ms |
192144 KB |
Output is correct |
33 |
Correct |
66 ms |
191016 KB |
Output is correct |
34 |
Correct |
56 ms |
192508 KB |
Output is correct |
35 |
Correct |
60 ms |
191632 KB |
Output is correct |
36 |
Correct |
61 ms |
192468 KB |
Output is correct |
37 |
Correct |
63 ms |
192248 KB |
Output is correct |
38 |
Correct |
55 ms |
191128 KB |
Output is correct |
39 |
Correct |
234 ms |
217612 KB |
Output is correct |
40 |
Correct |
59 ms |
192760 KB |
Output is correct |
41 |
Correct |
60 ms |
194152 KB |
Output is correct |
42 |
Correct |
74 ms |
193432 KB |
Output is correct |
43 |
Correct |
70 ms |
195264 KB |
Output is correct |
44 |
Correct |
92 ms |
207928 KB |
Output is correct |
45 |
Correct |
99 ms |
207508 KB |
Output is correct |
46 |
Correct |
163 ms |
232588 KB |
Output is correct |
47 |
Correct |
258 ms |
229184 KB |
Output is correct |
48 |
Correct |
201 ms |
216208 KB |
Output is correct |
49 |
Correct |
113 ms |
231860 KB |
Output is correct |
50 |
Correct |
129 ms |
220724 KB |
Output is correct |
51 |
Correct |
229 ms |
228572 KB |
Output is correct |
52 |
Correct |
186 ms |
230148 KB |
Output is correct |
53 |
Correct |
225 ms |
215948 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
47 ms |
188240 KB |
Output is correct |
2 |
Correct |
48 ms |
188212 KB |
Output is correct |
3 |
Correct |
48 ms |
188304 KB |
Output is correct |
4 |
Correct |
48 ms |
188088 KB |
Output is correct |
5 |
Correct |
48 ms |
188240 KB |
Output is correct |
6 |
Correct |
47 ms |
188252 KB |
Output is correct |
7 |
Correct |
51 ms |
188232 KB |
Output is correct |
8 |
Correct |
47 ms |
188240 KB |
Output is correct |
9 |
Correct |
50 ms |
188300 KB |
Output is correct |
10 |
Correct |
51 ms |
188284 KB |
Output is correct |
11 |
Correct |
51 ms |
188240 KB |
Output is correct |
12 |
Correct |
49 ms |
188240 KB |
Output is correct |
13 |
Correct |
50 ms |
188240 KB |
Output is correct |
14 |
Correct |
50 ms |
188236 KB |
Output is correct |
15 |
Correct |
47 ms |
188240 KB |
Output is correct |
16 |
Correct |
47 ms |
188212 KB |
Output is correct |
17 |
Correct |
48 ms |
188240 KB |
Output is correct |
18 |
Correct |
54 ms |
188056 KB |
Output is correct |
19 |
Correct |
47 ms |
188240 KB |
Output is correct |
20 |
Correct |
47 ms |
188248 KB |
Output is correct |
21 |
Correct |
51 ms |
188496 KB |
Output is correct |
22 |
Correct |
47 ms |
188240 KB |
Output is correct |
23 |
Correct |
47 ms |
188260 KB |
Output is correct |
24 |
Correct |
51 ms |
188236 KB |
Output is correct |
25 |
Correct |
49 ms |
188240 KB |
Output is correct |
26 |
Correct |
48 ms |
188400 KB |
Output is correct |
27 |
Correct |
49 ms |
188240 KB |
Output is correct |
28 |
Correct |
53 ms |
188300 KB |
Output is correct |
29 |
Correct |
47 ms |
188240 KB |
Output is correct |
30 |
Correct |
51 ms |
188244 KB |
Output is correct |
31 |
Correct |
48 ms |
188240 KB |
Output is correct |
32 |
Correct |
49 ms |
188148 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
48 ms |
188240 KB |
Output is correct |
2 |
Correct |
49 ms |
188240 KB |
Output is correct |
3 |
Correct |
49 ms |
188240 KB |
Output is correct |
4 |
Correct |
48 ms |
188240 KB |
Output is correct |
5 |
Correct |
47 ms |
188164 KB |
Output is correct |
6 |
Correct |
47 ms |
188496 KB |
Output is correct |
7 |
Correct |
49 ms |
188240 KB |
Output is correct |
8 |
Correct |
49 ms |
188252 KB |
Output is correct |
9 |
Correct |
49 ms |
188324 KB |
Output is correct |
10 |
Correct |
47 ms |
188244 KB |
Output is correct |
11 |
Correct |
47 ms |
188240 KB |
Output is correct |
12 |
Correct |
49 ms |
188240 KB |
Output is correct |
13 |
Correct |
48 ms |
188256 KB |
Output is correct |
14 |
Correct |
46 ms |
188244 KB |
Output is correct |
15 |
Correct |
48 ms |
188244 KB |
Output is correct |
16 |
Correct |
48 ms |
188184 KB |
Output is correct |
17 |
Correct |
48 ms |
188232 KB |
Output is correct |
18 |
Correct |
48 ms |
188240 KB |
Output is correct |
19 |
Correct |
54 ms |
188188 KB |
Output is correct |
20 |
Correct |
48 ms |
188240 KB |
Output is correct |
21 |
Correct |
51 ms |
188300 KB |
Output is correct |
22 |
Correct |
48 ms |
188244 KB |
Output is correct |
23 |
Correct |
47 ms |
188244 KB |
Output is correct |
24 |
Correct |
47 ms |
188252 KB |
Output is correct |
25 |
Correct |
51 ms |
189520 KB |
Output is correct |
26 |
Correct |
52 ms |
189904 KB |
Output is correct |
27 |
Correct |
51 ms |
189900 KB |
Output is correct |
28 |
Correct |
55 ms |
189904 KB |
Output is correct |
29 |
Correct |
53 ms |
190412 KB |
Output is correct |
30 |
Correct |
53 ms |
189916 KB |
Output is correct |
31 |
Correct |
51 ms |
189884 KB |
Output is correct |
32 |
Correct |
54 ms |
190284 KB |
Output is correct |
33 |
Correct |
51 ms |
189780 KB |
Output is correct |
34 |
Correct |
54 ms |
191688 KB |
Output is correct |
35 |
Correct |
58 ms |
192968 KB |
Output is correct |
36 |
Correct |
58 ms |
192968 KB |
Output is correct |
37 |
Correct |
68 ms |
194440 KB |
Output is correct |
38 |
Correct |
59 ms |
193224 KB |
Output is correct |
39 |
Correct |
75 ms |
201420 KB |
Output is correct |
40 |
Correct |
127 ms |
223732 KB |
Output is correct |
41 |
Correct |
135 ms |
232376 KB |
Output is correct |
42 |
Correct |
134 ms |
231964 KB |
Output is correct |
43 |
Correct |
206 ms |
250344 KB |
Output is correct |
44 |
Correct |
152 ms |
233848 KB |
Output is correct |
45 |
Correct |
137 ms |
230544 KB |
Output is correct |
46 |
Correct |
138 ms |
229876 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
47 ms |
188240 KB |
Output is correct |
2 |
Correct |
48 ms |
188212 KB |
Output is correct |
3 |
Correct |
48 ms |
188304 KB |
Output is correct |
4 |
Correct |
48 ms |
188088 KB |
Output is correct |
5 |
Correct |
48 ms |
188240 KB |
Output is correct |
6 |
Correct |
47 ms |
188252 KB |
Output is correct |
7 |
Correct |
51 ms |
188232 KB |
Output is correct |
8 |
Correct |
47 ms |
188240 KB |
Output is correct |
9 |
Correct |
50 ms |
188300 KB |
Output is correct |
10 |
Correct |
51 ms |
188284 KB |
Output is correct |
11 |
Correct |
51 ms |
188240 KB |
Output is correct |
12 |
Correct |
49 ms |
188240 KB |
Output is correct |
13 |
Correct |
50 ms |
188240 KB |
Output is correct |
14 |
Correct |
50 ms |
188236 KB |
Output is correct |
15 |
Correct |
47 ms |
188240 KB |
Output is correct |
16 |
Correct |
47 ms |
188212 KB |
Output is correct |
17 |
Correct |
48 ms |
188240 KB |
Output is correct |
18 |
Correct |
54 ms |
188056 KB |
Output is correct |
19 |
Correct |
47 ms |
188240 KB |
Output is correct |
20 |
Correct |
47 ms |
188248 KB |
Output is correct |
21 |
Correct |
51 ms |
188496 KB |
Output is correct |
22 |
Correct |
47 ms |
188240 KB |
Output is correct |
23 |
Correct |
47 ms |
188260 KB |
Output is correct |
24 |
Correct |
51 ms |
188236 KB |
Output is correct |
25 |
Correct |
49 ms |
188240 KB |
Output is correct |
26 |
Correct |
48 ms |
188400 KB |
Output is correct |
27 |
Correct |
49 ms |
188240 KB |
Output is correct |
28 |
Correct |
53 ms |
188300 KB |
Output is correct |
29 |
Correct |
47 ms |
188240 KB |
Output is correct |
30 |
Correct |
51 ms |
188244 KB |
Output is correct |
31 |
Correct |
48 ms |
188240 KB |
Output is correct |
32 |
Correct |
49 ms |
188148 KB |
Output is correct |
33 |
Correct |
53 ms |
189268 KB |
Output is correct |
34 |
Correct |
49 ms |
188244 KB |
Output is correct |
35 |
Correct |
50 ms |
188676 KB |
Output is correct |
36 |
Correct |
51 ms |
189276 KB |
Output is correct |
37 |
Correct |
51 ms |
189348 KB |
Output is correct |
38 |
Correct |
51 ms |
189900 KB |
Output is correct |
39 |
Correct |
52 ms |
189900 KB |
Output is correct |
40 |
Correct |
53 ms |
189776 KB |
Output is correct |
41 |
Correct |
52 ms |
189268 KB |
Output is correct |
42 |
Correct |
51 ms |
189992 KB |
Output is correct |
43 |
Correct |
54 ms |
190408 KB |
Output is correct |
44 |
Correct |
52 ms |
189920 KB |
Output is correct |
45 |
Correct |
53 ms |
190092 KB |
Output is correct |
46 |
Correct |
54 ms |
189836 KB |
Output is correct |
47 |
Correct |
53 ms |
190052 KB |
Output is correct |
48 |
Correct |
53 ms |
189776 KB |
Output is correct |
49 |
Correct |
51 ms |
189776 KB |
Output is correct |
50 |
Incorrect |
55 ms |
189776 KB |
Output isn't correct |
51 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
47 ms |
188240 KB |
Output is correct |
2 |
Correct |
48 ms |
188212 KB |
Output is correct |
3 |
Correct |
48 ms |
188304 KB |
Output is correct |
4 |
Correct |
48 ms |
188088 KB |
Output is correct |
5 |
Correct |
48 ms |
188240 KB |
Output is correct |
6 |
Correct |
47 ms |
188252 KB |
Output is correct |
7 |
Correct |
51 ms |
188232 KB |
Output is correct |
8 |
Correct |
47 ms |
188240 KB |
Output is correct |
9 |
Correct |
50 ms |
188300 KB |
Output is correct |
10 |
Correct |
51 ms |
188284 KB |
Output is correct |
11 |
Correct |
51 ms |
188240 KB |
Output is correct |
12 |
Correct |
49 ms |
188240 KB |
Output is correct |
13 |
Correct |
50 ms |
188240 KB |
Output is correct |
14 |
Correct |
50 ms |
188236 KB |
Output is correct |
15 |
Correct |
47 ms |
188240 KB |
Output is correct |
16 |
Correct |
47 ms |
188212 KB |
Output is correct |
17 |
Correct |
48 ms |
188240 KB |
Output is correct |
18 |
Correct |
54 ms |
188056 KB |
Output is correct |
19 |
Correct |
47 ms |
188240 KB |
Output is correct |
20 |
Correct |
47 ms |
188248 KB |
Output is correct |
21 |
Correct |
51 ms |
188496 KB |
Output is correct |
22 |
Correct |
47 ms |
188240 KB |
Output is correct |
23 |
Correct |
47 ms |
188260 KB |
Output is correct |
24 |
Correct |
51 ms |
188236 KB |
Output is correct |
25 |
Correct |
49 ms |
188240 KB |
Output is correct |
26 |
Correct |
48 ms |
188400 KB |
Output is correct |
27 |
Correct |
49 ms |
188240 KB |
Output is correct |
28 |
Correct |
53 ms |
188300 KB |
Output is correct |
29 |
Correct |
47 ms |
188240 KB |
Output is correct |
30 |
Correct |
51 ms |
188244 KB |
Output is correct |
31 |
Correct |
48 ms |
188240 KB |
Output is correct |
32 |
Correct |
49 ms |
188148 KB |
Output is correct |
33 |
Correct |
53 ms |
189268 KB |
Output is correct |
34 |
Correct |
49 ms |
188244 KB |
Output is correct |
35 |
Correct |
50 ms |
188676 KB |
Output is correct |
36 |
Correct |
51 ms |
189276 KB |
Output is correct |
37 |
Correct |
51 ms |
189348 KB |
Output is correct |
38 |
Correct |
51 ms |
189900 KB |
Output is correct |
39 |
Correct |
52 ms |
189900 KB |
Output is correct |
40 |
Correct |
53 ms |
189776 KB |
Output is correct |
41 |
Correct |
52 ms |
189268 KB |
Output is correct |
42 |
Correct |
51 ms |
189992 KB |
Output is correct |
43 |
Correct |
54 ms |
190408 KB |
Output is correct |
44 |
Correct |
52 ms |
189920 KB |
Output is correct |
45 |
Correct |
53 ms |
190092 KB |
Output is correct |
46 |
Correct |
54 ms |
189836 KB |
Output is correct |
47 |
Correct |
53 ms |
190052 KB |
Output is correct |
48 |
Correct |
53 ms |
189776 KB |
Output is correct |
49 |
Correct |
51 ms |
189776 KB |
Output is correct |
50 |
Incorrect |
55 ms |
189776 KB |
Output isn't correct |
51 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
50 ms |
188312 KB |
Output is correct |
2 |
Correct |
49 ms |
188116 KB |
Output is correct |
3 |
Correct |
48 ms |
188248 KB |
Output is correct |
4 |
Correct |
48 ms |
188240 KB |
Output is correct |
5 |
Correct |
47 ms |
188272 KB |
Output is correct |
6 |
Correct |
52 ms |
188164 KB |
Output is correct |
7 |
Correct |
51 ms |
188252 KB |
Output is correct |
8 |
Correct |
48 ms |
188240 KB |
Output is correct |
9 |
Correct |
54 ms |
188496 KB |
Output is correct |
10 |
Correct |
48 ms |
188204 KB |
Output is correct |
11 |
Correct |
49 ms |
188240 KB |
Output is correct |
12 |
Correct |
47 ms |
188200 KB |
Output is correct |
13 |
Correct |
47 ms |
188244 KB |
Output is correct |
14 |
Correct |
47 ms |
188216 KB |
Output is correct |
15 |
Correct |
49 ms |
188240 KB |
Output is correct |
16 |
Correct |
48 ms |
188240 KB |
Output is correct |
17 |
Correct |
47 ms |
188240 KB |
Output is correct |
18 |
Correct |
50 ms |
188244 KB |
Output is correct |
19 |
Correct |
52 ms |
189268 KB |
Output is correct |
20 |
Correct |
51 ms |
189352 KB |
Output is correct |
21 |
Correct |
51 ms |
189900 KB |
Output is correct |
22 |
Correct |
55 ms |
189820 KB |
Output is correct |
23 |
Correct |
52 ms |
189328 KB |
Output is correct |
24 |
Correct |
54 ms |
190096 KB |
Output is correct |
25 |
Correct |
53 ms |
189548 KB |
Output is correct |
26 |
Correct |
50 ms |
189780 KB |
Output is correct |
27 |
Correct |
51 ms |
189780 KB |
Output is correct |
28 |
Correct |
51 ms |
189268 KB |
Output is correct |
29 |
Correct |
62 ms |
191068 KB |
Output is correct |
30 |
Correct |
53 ms |
190048 KB |
Output is correct |
31 |
Correct |
56 ms |
192968 KB |
Output is correct |
32 |
Correct |
67 ms |
192144 KB |
Output is correct |
33 |
Correct |
66 ms |
191016 KB |
Output is correct |
34 |
Correct |
56 ms |
192508 KB |
Output is correct |
35 |
Correct |
60 ms |
191632 KB |
Output is correct |
36 |
Correct |
61 ms |
192468 KB |
Output is correct |
37 |
Correct |
63 ms |
192248 KB |
Output is correct |
38 |
Correct |
55 ms |
191128 KB |
Output is correct |
39 |
Correct |
234 ms |
217612 KB |
Output is correct |
40 |
Correct |
59 ms |
192760 KB |
Output is correct |
41 |
Correct |
60 ms |
194152 KB |
Output is correct |
42 |
Correct |
74 ms |
193432 KB |
Output is correct |
43 |
Correct |
70 ms |
195264 KB |
Output is correct |
44 |
Correct |
92 ms |
207928 KB |
Output is correct |
45 |
Correct |
99 ms |
207508 KB |
Output is correct |
46 |
Correct |
163 ms |
232588 KB |
Output is correct |
47 |
Correct |
258 ms |
229184 KB |
Output is correct |
48 |
Correct |
201 ms |
216208 KB |
Output is correct |
49 |
Correct |
113 ms |
231860 KB |
Output is correct |
50 |
Correct |
129 ms |
220724 KB |
Output is correct |
51 |
Correct |
229 ms |
228572 KB |
Output is correct |
52 |
Correct |
186 ms |
230148 KB |
Output is correct |
53 |
Correct |
225 ms |
215948 KB |
Output is correct |
54 |
Correct |
47 ms |
188240 KB |
Output is correct |
55 |
Correct |
48 ms |
188212 KB |
Output is correct |
56 |
Correct |
48 ms |
188304 KB |
Output is correct |
57 |
Correct |
48 ms |
188088 KB |
Output is correct |
58 |
Correct |
48 ms |
188240 KB |
Output is correct |
59 |
Correct |
47 ms |
188252 KB |
Output is correct |
60 |
Correct |
51 ms |
188232 KB |
Output is correct |
61 |
Correct |
47 ms |
188240 KB |
Output is correct |
62 |
Correct |
50 ms |
188300 KB |
Output is correct |
63 |
Correct |
51 ms |
188284 KB |
Output is correct |
64 |
Correct |
51 ms |
188240 KB |
Output is correct |
65 |
Correct |
49 ms |
188240 KB |
Output is correct |
66 |
Correct |
50 ms |
188240 KB |
Output is correct |
67 |
Correct |
50 ms |
188236 KB |
Output is correct |
68 |
Correct |
47 ms |
188240 KB |
Output is correct |
69 |
Correct |
47 ms |
188212 KB |
Output is correct |
70 |
Correct |
48 ms |
188240 KB |
Output is correct |
71 |
Correct |
54 ms |
188056 KB |
Output is correct |
72 |
Correct |
47 ms |
188240 KB |
Output is correct |
73 |
Correct |
47 ms |
188248 KB |
Output is correct |
74 |
Correct |
51 ms |
188496 KB |
Output is correct |
75 |
Correct |
47 ms |
188240 KB |
Output is correct |
76 |
Correct |
47 ms |
188260 KB |
Output is correct |
77 |
Correct |
51 ms |
188236 KB |
Output is correct |
78 |
Correct |
49 ms |
188240 KB |
Output is correct |
79 |
Correct |
48 ms |
188400 KB |
Output is correct |
80 |
Correct |
49 ms |
188240 KB |
Output is correct |
81 |
Correct |
53 ms |
188300 KB |
Output is correct |
82 |
Correct |
47 ms |
188240 KB |
Output is correct |
83 |
Correct |
51 ms |
188244 KB |
Output is correct |
84 |
Correct |
48 ms |
188240 KB |
Output is correct |
85 |
Correct |
49 ms |
188148 KB |
Output is correct |
86 |
Correct |
48 ms |
188240 KB |
Output is correct |
87 |
Correct |
49 ms |
188240 KB |
Output is correct |
88 |
Correct |
49 ms |
188240 KB |
Output is correct |
89 |
Correct |
48 ms |
188240 KB |
Output is correct |
90 |
Correct |
47 ms |
188164 KB |
Output is correct |
91 |
Correct |
47 ms |
188496 KB |
Output is correct |
92 |
Correct |
49 ms |
188240 KB |
Output is correct |
93 |
Correct |
49 ms |
188252 KB |
Output is correct |
94 |
Correct |
49 ms |
188324 KB |
Output is correct |
95 |
Correct |
47 ms |
188244 KB |
Output is correct |
96 |
Correct |
47 ms |
188240 KB |
Output is correct |
97 |
Correct |
49 ms |
188240 KB |
Output is correct |
98 |
Correct |
48 ms |
188256 KB |
Output is correct |
99 |
Correct |
46 ms |
188244 KB |
Output is correct |
100 |
Correct |
48 ms |
188244 KB |
Output is correct |
101 |
Correct |
48 ms |
188184 KB |
Output is correct |
102 |
Correct |
48 ms |
188232 KB |
Output is correct |
103 |
Correct |
48 ms |
188240 KB |
Output is correct |
104 |
Correct |
54 ms |
188188 KB |
Output is correct |
105 |
Correct |
48 ms |
188240 KB |
Output is correct |
106 |
Correct |
51 ms |
188300 KB |
Output is correct |
107 |
Correct |
48 ms |
188244 KB |
Output is correct |
108 |
Correct |
47 ms |
188244 KB |
Output is correct |
109 |
Correct |
47 ms |
188252 KB |
Output is correct |
110 |
Correct |
51 ms |
189520 KB |
Output is correct |
111 |
Correct |
52 ms |
189904 KB |
Output is correct |
112 |
Correct |
51 ms |
189900 KB |
Output is correct |
113 |
Correct |
55 ms |
189904 KB |
Output is correct |
114 |
Correct |
53 ms |
190412 KB |
Output is correct |
115 |
Correct |
53 ms |
189916 KB |
Output is correct |
116 |
Correct |
51 ms |
189884 KB |
Output is correct |
117 |
Correct |
54 ms |
190284 KB |
Output is correct |
118 |
Correct |
51 ms |
189780 KB |
Output is correct |
119 |
Correct |
54 ms |
191688 KB |
Output is correct |
120 |
Correct |
58 ms |
192968 KB |
Output is correct |
121 |
Correct |
58 ms |
192968 KB |
Output is correct |
122 |
Correct |
68 ms |
194440 KB |
Output is correct |
123 |
Correct |
59 ms |
193224 KB |
Output is correct |
124 |
Correct |
75 ms |
201420 KB |
Output is correct |
125 |
Correct |
127 ms |
223732 KB |
Output is correct |
126 |
Correct |
135 ms |
232376 KB |
Output is correct |
127 |
Correct |
134 ms |
231964 KB |
Output is correct |
128 |
Correct |
206 ms |
250344 KB |
Output is correct |
129 |
Correct |
152 ms |
233848 KB |
Output is correct |
130 |
Correct |
137 ms |
230544 KB |
Output is correct |
131 |
Correct |
138 ms |
229876 KB |
Output is correct |
132 |
Correct |
53 ms |
189268 KB |
Output is correct |
133 |
Correct |
49 ms |
188244 KB |
Output is correct |
134 |
Correct |
50 ms |
188676 KB |
Output is correct |
135 |
Correct |
51 ms |
189276 KB |
Output is correct |
136 |
Correct |
51 ms |
189348 KB |
Output is correct |
137 |
Correct |
51 ms |
189900 KB |
Output is correct |
138 |
Correct |
52 ms |
189900 KB |
Output is correct |
139 |
Correct |
53 ms |
189776 KB |
Output is correct |
140 |
Correct |
52 ms |
189268 KB |
Output is correct |
141 |
Correct |
51 ms |
189992 KB |
Output is correct |
142 |
Correct |
54 ms |
190408 KB |
Output is correct |
143 |
Correct |
52 ms |
189920 KB |
Output is correct |
144 |
Correct |
53 ms |
190092 KB |
Output is correct |
145 |
Correct |
54 ms |
189836 KB |
Output is correct |
146 |
Correct |
53 ms |
190052 KB |
Output is correct |
147 |
Correct |
53 ms |
189776 KB |
Output is correct |
148 |
Correct |
51 ms |
189776 KB |
Output is correct |
149 |
Incorrect |
55 ms |
189776 KB |
Output isn't correct |
150 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
50 ms |
188312 KB |
Output is correct |
2 |
Correct |
49 ms |
188116 KB |
Output is correct |
3 |
Correct |
48 ms |
188248 KB |
Output is correct |
4 |
Correct |
48 ms |
188240 KB |
Output is correct |
5 |
Correct |
47 ms |
188272 KB |
Output is correct |
6 |
Correct |
52 ms |
188164 KB |
Output is correct |
7 |
Correct |
51 ms |
188252 KB |
Output is correct |
8 |
Correct |
48 ms |
188240 KB |
Output is correct |
9 |
Correct |
54 ms |
188496 KB |
Output is correct |
10 |
Correct |
48 ms |
188204 KB |
Output is correct |
11 |
Correct |
49 ms |
188240 KB |
Output is correct |
12 |
Correct |
47 ms |
188200 KB |
Output is correct |
13 |
Correct |
47 ms |
188244 KB |
Output is correct |
14 |
Correct |
47 ms |
188216 KB |
Output is correct |
15 |
Correct |
49 ms |
188240 KB |
Output is correct |
16 |
Correct |
48 ms |
188240 KB |
Output is correct |
17 |
Correct |
47 ms |
188240 KB |
Output is correct |
18 |
Correct |
50 ms |
188244 KB |
Output is correct |
19 |
Correct |
52 ms |
189268 KB |
Output is correct |
20 |
Correct |
51 ms |
189352 KB |
Output is correct |
21 |
Correct |
51 ms |
189900 KB |
Output is correct |
22 |
Correct |
55 ms |
189820 KB |
Output is correct |
23 |
Correct |
52 ms |
189328 KB |
Output is correct |
24 |
Correct |
54 ms |
190096 KB |
Output is correct |
25 |
Correct |
53 ms |
189548 KB |
Output is correct |
26 |
Correct |
50 ms |
189780 KB |
Output is correct |
27 |
Correct |
51 ms |
189780 KB |
Output is correct |
28 |
Correct |
51 ms |
189268 KB |
Output is correct |
29 |
Correct |
62 ms |
191068 KB |
Output is correct |
30 |
Correct |
53 ms |
190048 KB |
Output is correct |
31 |
Correct |
56 ms |
192968 KB |
Output is correct |
32 |
Correct |
67 ms |
192144 KB |
Output is correct |
33 |
Correct |
66 ms |
191016 KB |
Output is correct |
34 |
Correct |
56 ms |
192508 KB |
Output is correct |
35 |
Correct |
60 ms |
191632 KB |
Output is correct |
36 |
Correct |
61 ms |
192468 KB |
Output is correct |
37 |
Correct |
63 ms |
192248 KB |
Output is correct |
38 |
Correct |
55 ms |
191128 KB |
Output is correct |
39 |
Correct |
234 ms |
217612 KB |
Output is correct |
40 |
Correct |
59 ms |
192760 KB |
Output is correct |
41 |
Correct |
60 ms |
194152 KB |
Output is correct |
42 |
Correct |
74 ms |
193432 KB |
Output is correct |
43 |
Correct |
70 ms |
195264 KB |
Output is correct |
44 |
Correct |
92 ms |
207928 KB |
Output is correct |
45 |
Correct |
99 ms |
207508 KB |
Output is correct |
46 |
Correct |
163 ms |
232588 KB |
Output is correct |
47 |
Correct |
258 ms |
229184 KB |
Output is correct |
48 |
Correct |
201 ms |
216208 KB |
Output is correct |
49 |
Correct |
113 ms |
231860 KB |
Output is correct |
50 |
Correct |
129 ms |
220724 KB |
Output is correct |
51 |
Correct |
229 ms |
228572 KB |
Output is correct |
52 |
Correct |
186 ms |
230148 KB |
Output is correct |
53 |
Correct |
225 ms |
215948 KB |
Output is correct |
54 |
Correct |
47 ms |
188240 KB |
Output is correct |
55 |
Correct |
48 ms |
188212 KB |
Output is correct |
56 |
Correct |
48 ms |
188304 KB |
Output is correct |
57 |
Correct |
48 ms |
188088 KB |
Output is correct |
58 |
Correct |
48 ms |
188240 KB |
Output is correct |
59 |
Correct |
47 ms |
188252 KB |
Output is correct |
60 |
Correct |
51 ms |
188232 KB |
Output is correct |
61 |
Correct |
47 ms |
188240 KB |
Output is correct |
62 |
Correct |
50 ms |
188300 KB |
Output is correct |
63 |
Correct |
51 ms |
188284 KB |
Output is correct |
64 |
Correct |
51 ms |
188240 KB |
Output is correct |
65 |
Correct |
49 ms |
188240 KB |
Output is correct |
66 |
Correct |
50 ms |
188240 KB |
Output is correct |
67 |
Correct |
50 ms |
188236 KB |
Output is correct |
68 |
Correct |
47 ms |
188240 KB |
Output is correct |
69 |
Correct |
47 ms |
188212 KB |
Output is correct |
70 |
Correct |
48 ms |
188240 KB |
Output is correct |
71 |
Correct |
54 ms |
188056 KB |
Output is correct |
72 |
Correct |
47 ms |
188240 KB |
Output is correct |
73 |
Correct |
47 ms |
188248 KB |
Output is correct |
74 |
Correct |
51 ms |
188496 KB |
Output is correct |
75 |
Correct |
47 ms |
188240 KB |
Output is correct |
76 |
Correct |
47 ms |
188260 KB |
Output is correct |
77 |
Correct |
51 ms |
188236 KB |
Output is correct |
78 |
Correct |
49 ms |
188240 KB |
Output is correct |
79 |
Correct |
48 ms |
188400 KB |
Output is correct |
80 |
Correct |
49 ms |
188240 KB |
Output is correct |
81 |
Correct |
53 ms |
188300 KB |
Output is correct |
82 |
Correct |
47 ms |
188240 KB |
Output is correct |
83 |
Correct |
51 ms |
188244 KB |
Output is correct |
84 |
Correct |
48 ms |
188240 KB |
Output is correct |
85 |
Correct |
49 ms |
188148 KB |
Output is correct |
86 |
Correct |
48 ms |
188240 KB |
Output is correct |
87 |
Correct |
49 ms |
188240 KB |
Output is correct |
88 |
Correct |
49 ms |
188240 KB |
Output is correct |
89 |
Correct |
48 ms |
188240 KB |
Output is correct |
90 |
Correct |
47 ms |
188164 KB |
Output is correct |
91 |
Correct |
47 ms |
188496 KB |
Output is correct |
92 |
Correct |
49 ms |
188240 KB |
Output is correct |
93 |
Correct |
49 ms |
188252 KB |
Output is correct |
94 |
Correct |
49 ms |
188324 KB |
Output is correct |
95 |
Correct |
47 ms |
188244 KB |
Output is correct |
96 |
Correct |
47 ms |
188240 KB |
Output is correct |
97 |
Correct |
49 ms |
188240 KB |
Output is correct |
98 |
Correct |
48 ms |
188256 KB |
Output is correct |
99 |
Correct |
46 ms |
188244 KB |
Output is correct |
100 |
Correct |
48 ms |
188244 KB |
Output is correct |
101 |
Correct |
48 ms |
188184 KB |
Output is correct |
102 |
Correct |
48 ms |
188232 KB |
Output is correct |
103 |
Correct |
48 ms |
188240 KB |
Output is correct |
104 |
Correct |
54 ms |
188188 KB |
Output is correct |
105 |
Correct |
48 ms |
188240 KB |
Output is correct |
106 |
Correct |
51 ms |
188300 KB |
Output is correct |
107 |
Correct |
48 ms |
188244 KB |
Output is correct |
108 |
Correct |
47 ms |
188244 KB |
Output is correct |
109 |
Correct |
47 ms |
188252 KB |
Output is correct |
110 |
Correct |
51 ms |
189520 KB |
Output is correct |
111 |
Correct |
52 ms |
189904 KB |
Output is correct |
112 |
Correct |
51 ms |
189900 KB |
Output is correct |
113 |
Correct |
55 ms |
189904 KB |
Output is correct |
114 |
Correct |
53 ms |
190412 KB |
Output is correct |
115 |
Correct |
53 ms |
189916 KB |
Output is correct |
116 |
Correct |
51 ms |
189884 KB |
Output is correct |
117 |
Correct |
54 ms |
190284 KB |
Output is correct |
118 |
Correct |
51 ms |
189780 KB |
Output is correct |
119 |
Correct |
54 ms |
191688 KB |
Output is correct |
120 |
Correct |
58 ms |
192968 KB |
Output is correct |
121 |
Correct |
58 ms |
192968 KB |
Output is correct |
122 |
Correct |
68 ms |
194440 KB |
Output is correct |
123 |
Correct |
59 ms |
193224 KB |
Output is correct |
124 |
Correct |
75 ms |
201420 KB |
Output is correct |
125 |
Correct |
127 ms |
223732 KB |
Output is correct |
126 |
Correct |
135 ms |
232376 KB |
Output is correct |
127 |
Correct |
134 ms |
231964 KB |
Output is correct |
128 |
Correct |
206 ms |
250344 KB |
Output is correct |
129 |
Correct |
152 ms |
233848 KB |
Output is correct |
130 |
Correct |
137 ms |
230544 KB |
Output is correct |
131 |
Correct |
138 ms |
229876 KB |
Output is correct |
132 |
Correct |
53 ms |
189268 KB |
Output is correct |
133 |
Correct |
49 ms |
188244 KB |
Output is correct |
134 |
Correct |
50 ms |
188676 KB |
Output is correct |
135 |
Correct |
51 ms |
189276 KB |
Output is correct |
136 |
Correct |
51 ms |
189348 KB |
Output is correct |
137 |
Correct |
51 ms |
189900 KB |
Output is correct |
138 |
Correct |
52 ms |
189900 KB |
Output is correct |
139 |
Correct |
53 ms |
189776 KB |
Output is correct |
140 |
Correct |
52 ms |
189268 KB |
Output is correct |
141 |
Correct |
51 ms |
189992 KB |
Output is correct |
142 |
Correct |
54 ms |
190408 KB |
Output is correct |
143 |
Correct |
52 ms |
189920 KB |
Output is correct |
144 |
Correct |
53 ms |
190092 KB |
Output is correct |
145 |
Correct |
54 ms |
189836 KB |
Output is correct |
146 |
Correct |
53 ms |
190052 KB |
Output is correct |
147 |
Correct |
53 ms |
189776 KB |
Output is correct |
148 |
Correct |
51 ms |
189776 KB |
Output is correct |
149 |
Incorrect |
55 ms |
189776 KB |
Output isn't correct |
150 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
50 ms |
188312 KB |
Output is correct |
2 |
Correct |
49 ms |
188116 KB |
Output is correct |
3 |
Correct |
48 ms |
188248 KB |
Output is correct |
4 |
Correct |
48 ms |
188240 KB |
Output is correct |
5 |
Correct |
47 ms |
188272 KB |
Output is correct |
6 |
Correct |
52 ms |
188164 KB |
Output is correct |
7 |
Correct |
51 ms |
188252 KB |
Output is correct |
8 |
Correct |
48 ms |
188240 KB |
Output is correct |
9 |
Correct |
54 ms |
188496 KB |
Output is correct |
10 |
Correct |
48 ms |
188204 KB |
Output is correct |
11 |
Correct |
49 ms |
188240 KB |
Output is correct |
12 |
Correct |
47 ms |
188200 KB |
Output is correct |
13 |
Correct |
47 ms |
188244 KB |
Output is correct |
14 |
Correct |
47 ms |
188216 KB |
Output is correct |
15 |
Correct |
49 ms |
188240 KB |
Output is correct |
16 |
Correct |
48 ms |
188240 KB |
Output is correct |
17 |
Correct |
47 ms |
188240 KB |
Output is correct |
18 |
Correct |
50 ms |
188244 KB |
Output is correct |
19 |
Correct |
52 ms |
189268 KB |
Output is correct |
20 |
Correct |
51 ms |
189352 KB |
Output is correct |
21 |
Correct |
51 ms |
189900 KB |
Output is correct |
22 |
Correct |
55 ms |
189820 KB |
Output is correct |
23 |
Correct |
52 ms |
189328 KB |
Output is correct |
24 |
Correct |
54 ms |
190096 KB |
Output is correct |
25 |
Correct |
53 ms |
189548 KB |
Output is correct |
26 |
Correct |
50 ms |
189780 KB |
Output is correct |
27 |
Correct |
51 ms |
189780 KB |
Output is correct |
28 |
Correct |
51 ms |
189268 KB |
Output is correct |
29 |
Correct |
62 ms |
191068 KB |
Output is correct |
30 |
Correct |
53 ms |
190048 KB |
Output is correct |
31 |
Correct |
56 ms |
192968 KB |
Output is correct |
32 |
Correct |
67 ms |
192144 KB |
Output is correct |
33 |
Correct |
66 ms |
191016 KB |
Output is correct |
34 |
Correct |
56 ms |
192508 KB |
Output is correct |
35 |
Correct |
60 ms |
191632 KB |
Output is correct |
36 |
Correct |
61 ms |
192468 KB |
Output is correct |
37 |
Correct |
63 ms |
192248 KB |
Output is correct |
38 |
Correct |
55 ms |
191128 KB |
Output is correct |
39 |
Correct |
234 ms |
217612 KB |
Output is correct |
40 |
Correct |
59 ms |
192760 KB |
Output is correct |
41 |
Correct |
60 ms |
194152 KB |
Output is correct |
42 |
Correct |
74 ms |
193432 KB |
Output is correct |
43 |
Correct |
70 ms |
195264 KB |
Output is correct |
44 |
Correct |
92 ms |
207928 KB |
Output is correct |
45 |
Correct |
99 ms |
207508 KB |
Output is correct |
46 |
Correct |
163 ms |
232588 KB |
Output is correct |
47 |
Correct |
258 ms |
229184 KB |
Output is correct |
48 |
Correct |
201 ms |
216208 KB |
Output is correct |
49 |
Correct |
113 ms |
231860 KB |
Output is correct |
50 |
Correct |
129 ms |
220724 KB |
Output is correct |
51 |
Correct |
229 ms |
228572 KB |
Output is correct |
52 |
Correct |
186 ms |
230148 KB |
Output is correct |
53 |
Correct |
225 ms |
215948 KB |
Output is correct |
54 |
Correct |
47 ms |
188240 KB |
Output is correct |
55 |
Correct |
48 ms |
188212 KB |
Output is correct |
56 |
Correct |
48 ms |
188304 KB |
Output is correct |
57 |
Correct |
48 ms |
188088 KB |
Output is correct |
58 |
Correct |
48 ms |
188240 KB |
Output is correct |
59 |
Correct |
47 ms |
188252 KB |
Output is correct |
60 |
Correct |
51 ms |
188232 KB |
Output is correct |
61 |
Correct |
47 ms |
188240 KB |
Output is correct |
62 |
Correct |
50 ms |
188300 KB |
Output is correct |
63 |
Correct |
51 ms |
188284 KB |
Output is correct |
64 |
Correct |
51 ms |
188240 KB |
Output is correct |
65 |
Correct |
49 ms |
188240 KB |
Output is correct |
66 |
Correct |
50 ms |
188240 KB |
Output is correct |
67 |
Correct |
50 ms |
188236 KB |
Output is correct |
68 |
Correct |
47 ms |
188240 KB |
Output is correct |
69 |
Correct |
47 ms |
188212 KB |
Output is correct |
70 |
Correct |
48 ms |
188240 KB |
Output is correct |
71 |
Correct |
54 ms |
188056 KB |
Output is correct |
72 |
Correct |
47 ms |
188240 KB |
Output is correct |
73 |
Correct |
47 ms |
188248 KB |
Output is correct |
74 |
Correct |
51 ms |
188496 KB |
Output is correct |
75 |
Correct |
47 ms |
188240 KB |
Output is correct |
76 |
Correct |
47 ms |
188260 KB |
Output is correct |
77 |
Correct |
51 ms |
188236 KB |
Output is correct |
78 |
Correct |
49 ms |
188240 KB |
Output is correct |
79 |
Correct |
48 ms |
188400 KB |
Output is correct |
80 |
Correct |
49 ms |
188240 KB |
Output is correct |
81 |
Correct |
53 ms |
188300 KB |
Output is correct |
82 |
Correct |
47 ms |
188240 KB |
Output is correct |
83 |
Correct |
51 ms |
188244 KB |
Output is correct |
84 |
Correct |
48 ms |
188240 KB |
Output is correct |
85 |
Correct |
49 ms |
188148 KB |
Output is correct |
86 |
Correct |
48 ms |
188240 KB |
Output is correct |
87 |
Correct |
49 ms |
188240 KB |
Output is correct |
88 |
Correct |
49 ms |
188240 KB |
Output is correct |
89 |
Correct |
48 ms |
188240 KB |
Output is correct |
90 |
Correct |
47 ms |
188164 KB |
Output is correct |
91 |
Correct |
47 ms |
188496 KB |
Output is correct |
92 |
Correct |
49 ms |
188240 KB |
Output is correct |
93 |
Correct |
49 ms |
188252 KB |
Output is correct |
94 |
Correct |
49 ms |
188324 KB |
Output is correct |
95 |
Correct |
47 ms |
188244 KB |
Output is correct |
96 |
Correct |
47 ms |
188240 KB |
Output is correct |
97 |
Correct |
49 ms |
188240 KB |
Output is correct |
98 |
Correct |
48 ms |
188256 KB |
Output is correct |
99 |
Correct |
46 ms |
188244 KB |
Output is correct |
100 |
Correct |
48 ms |
188244 KB |
Output is correct |
101 |
Correct |
48 ms |
188184 KB |
Output is correct |
102 |
Correct |
48 ms |
188232 KB |
Output is correct |
103 |
Correct |
48 ms |
188240 KB |
Output is correct |
104 |
Correct |
54 ms |
188188 KB |
Output is correct |
105 |
Correct |
48 ms |
188240 KB |
Output is correct |
106 |
Correct |
51 ms |
188300 KB |
Output is correct |
107 |
Correct |
48 ms |
188244 KB |
Output is correct |
108 |
Correct |
47 ms |
188244 KB |
Output is correct |
109 |
Correct |
47 ms |
188252 KB |
Output is correct |
110 |
Correct |
51 ms |
189520 KB |
Output is correct |
111 |
Correct |
52 ms |
189904 KB |
Output is correct |
112 |
Correct |
51 ms |
189900 KB |
Output is correct |
113 |
Correct |
55 ms |
189904 KB |
Output is correct |
114 |
Correct |
53 ms |
190412 KB |
Output is correct |
115 |
Correct |
53 ms |
189916 KB |
Output is correct |
116 |
Correct |
51 ms |
189884 KB |
Output is correct |
117 |
Correct |
54 ms |
190284 KB |
Output is correct |
118 |
Correct |
51 ms |
189780 KB |
Output is correct |
119 |
Correct |
54 ms |
191688 KB |
Output is correct |
120 |
Correct |
58 ms |
192968 KB |
Output is correct |
121 |
Correct |
58 ms |
192968 KB |
Output is correct |
122 |
Correct |
68 ms |
194440 KB |
Output is correct |
123 |
Correct |
59 ms |
193224 KB |
Output is correct |
124 |
Correct |
75 ms |
201420 KB |
Output is correct |
125 |
Correct |
127 ms |
223732 KB |
Output is correct |
126 |
Correct |
135 ms |
232376 KB |
Output is correct |
127 |
Correct |
134 ms |
231964 KB |
Output is correct |
128 |
Correct |
206 ms |
250344 KB |
Output is correct |
129 |
Correct |
152 ms |
233848 KB |
Output is correct |
130 |
Correct |
137 ms |
230544 KB |
Output is correct |
131 |
Correct |
138 ms |
229876 KB |
Output is correct |
132 |
Correct |
53 ms |
189268 KB |
Output is correct |
133 |
Correct |
49 ms |
188244 KB |
Output is correct |
134 |
Correct |
50 ms |
188676 KB |
Output is correct |
135 |
Correct |
51 ms |
189276 KB |
Output is correct |
136 |
Correct |
51 ms |
189348 KB |
Output is correct |
137 |
Correct |
51 ms |
189900 KB |
Output is correct |
138 |
Correct |
52 ms |
189900 KB |
Output is correct |
139 |
Correct |
53 ms |
189776 KB |
Output is correct |
140 |
Correct |
52 ms |
189268 KB |
Output is correct |
141 |
Correct |
51 ms |
189992 KB |
Output is correct |
142 |
Correct |
54 ms |
190408 KB |
Output is correct |
143 |
Correct |
52 ms |
189920 KB |
Output is correct |
144 |
Correct |
53 ms |
190092 KB |
Output is correct |
145 |
Correct |
54 ms |
189836 KB |
Output is correct |
146 |
Correct |
53 ms |
190052 KB |
Output is correct |
147 |
Correct |
53 ms |
189776 KB |
Output is correct |
148 |
Correct |
51 ms |
189776 KB |
Output is correct |
149 |
Incorrect |
55 ms |
189776 KB |
Output isn't correct |
150 |
Halted |
0 ms |
0 KB |
- |