#include <bits/stdc++.h>
#define ll long long
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define pii pair < int, int >
#define FIO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
using namespace std;
const int N = 6e6;
string mat[N];
int n, m, k;
int r1, s1, r2, s2;
vector < vector < pii > > val;
vector < vector < bool > > vis;
pii nul = mp(-1, 0);
deque < pii > dq;
pii spr1[4] = {mp(1, 0), mp(0, 1), mp(-1, 0), mp(0, -1)};
pii spr2[8] = {mp(1, 0), mp(0, 1), mp(-1, 0), mp(0, -1), mp(1, 1), mp(-1, 1), mp(1, -1), mp(-1, -1)};
void makemat( void ) {
vector < pii > temp;
vector < bool > tempvis;
for(int i = 0; i < m; i++) temp.pb(nul);
for(int i = 0; i < n; i++) val.pb(temp);
for(int i = 0; i < m; i++) tempvis.pb(0);
for(int i = 0; i < n; i++) vis.pb(tempvis);
}
bool inbounds( int a, int b ) {
return (a < 0 || b < 0 || a >= n || b >= m) ? 0 : 1;
}
void upis( void ) {
cin >> n >> m >> k;
cin >> r1 >> s1 >> r2 >> s2;
r1--; s1--;
r2--; s2--;
for(int i = 0; i < n; i++) cin >> mat[i];
return;
}
void solve( void ) {
makemat();
dq.push_back(mp(r1, s1));
val[r1][s1] = mp(0, 0);
pii cur;
pii curspr;
while(!dq.empty()) {
cur = dq.front();
dq.pop_front();
if(!vis[cur.F][cur.S]) {
vis[cur.F][cur.S] = 1;
if(val[cur.F][cur.S].S != 0) {
for(int i = 0; i < 8; i++) {
curspr = spr2[i];
if(inbounds(cur.F + curspr.F, cur.S + curspr.S)) {
if(val[cur.F + curspr.F][cur.S + curspr.S] == nul) {
val[cur.F + curspr.F][cur.S + curspr.S] = mp(val[cur.F][cur.S].F, val[cur.F][cur.S].S - 1);
dq.push_back(mp(cur.F + curspr.F, cur.S + curspr.S));
}
}
}
}
else {
for(int i = 0; i < 4; i++) {
curspr = spr1[i];
if(inbounds(cur.F + curspr.F, cur.S + curspr.S)) {
if(val[cur.F + curspr.F][cur.S + curspr.S] == nul) {
if(mat[cur.F + curspr.F][cur.S + curspr.S] != '#') {
val[cur.F + curspr.F][cur.S + curspr.S] = val[cur.F][cur.S];
dq.push_front(mp(cur.F + curspr.F, cur.S + curspr.S));
}
else {
val[cur.F + curspr.F][cur.S + curspr.S] = mp(val[cur.F][cur.S].F + 1, k - 1);
dq.push_back(mp(cur.F + curspr.F, cur.S + curspr.S));
}
}
}
}
}
}
}
// for(int i = 0; i < n; i++) {
// for(int j = 0; j < m; j++) cout << val[i][j].F << " ";
// cout << "\n";
// }
// cout << "\n";
// for(int i = 0; i < n; i++) {
// for(int j = 0; j < m; j++) cout << val[i][j].S << " ";
// cout << "\n";
// }
// cout << "\n";
cout << val[r2][s2].F << "\n";
return;
}
int main( void ) {
FIO;
upis();
solve();
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
30 ms |
188240 KB |
Output is correct |
2 |
Correct |
30 ms |
188240 KB |
Output is correct |
3 |
Correct |
29 ms |
188220 KB |
Output is correct |
4 |
Correct |
30 ms |
188240 KB |
Output is correct |
5 |
Correct |
29 ms |
188232 KB |
Output is correct |
6 |
Correct |
30 ms |
188240 KB |
Output is correct |
7 |
Correct |
30 ms |
188292 KB |
Output is correct |
8 |
Correct |
30 ms |
188304 KB |
Output is correct |
9 |
Correct |
30 ms |
188240 KB |
Output is correct |
10 |
Correct |
31 ms |
188240 KB |
Output is correct |
11 |
Correct |
31 ms |
188240 KB |
Output is correct |
12 |
Correct |
30 ms |
188240 KB |
Output is correct |
13 |
Correct |
29 ms |
188332 KB |
Output is correct |
14 |
Correct |
29 ms |
188240 KB |
Output is correct |
15 |
Correct |
29 ms |
188240 KB |
Output is correct |
16 |
Correct |
30 ms |
188232 KB |
Output is correct |
17 |
Correct |
34 ms |
188496 KB |
Output is correct |
18 |
Correct |
29 ms |
188240 KB |
Output is correct |
19 |
Correct |
34 ms |
188752 KB |
Output is correct |
20 |
Correct |
33 ms |
189224 KB |
Output is correct |
21 |
Correct |
34 ms |
189008 KB |
Output is correct |
22 |
Correct |
34 ms |
188920 KB |
Output is correct |
23 |
Correct |
34 ms |
188752 KB |
Output is correct |
24 |
Correct |
33 ms |
189384 KB |
Output is correct |
25 |
Correct |
34 ms |
189384 KB |
Output is correct |
26 |
Correct |
36 ms |
188752 KB |
Output is correct |
27 |
Correct |
39 ms |
188752 KB |
Output is correct |
28 |
Correct |
33 ms |
188948 KB |
Output is correct |
29 |
Correct |
36 ms |
189864 KB |
Output is correct |
30 |
Correct |
38 ms |
189124 KB |
Output is correct |
31 |
Correct |
37 ms |
190280 KB |
Output is correct |
32 |
Correct |
38 ms |
189768 KB |
Output is correct |
33 |
Correct |
35 ms |
189604 KB |
Output is correct |
34 |
Correct |
38 ms |
191824 KB |
Output is correct |
35 |
Correct |
39 ms |
191824 KB |
Output is correct |
36 |
Correct |
38 ms |
189768 KB |
Output is correct |
37 |
Correct |
39 ms |
189776 KB |
Output is correct |
38 |
Correct |
37 ms |
189860 KB |
Output is correct |
39 |
Correct |
93 ms |
203344 KB |
Output is correct |
40 |
Correct |
39 ms |
190032 KB |
Output is correct |
41 |
Correct |
43 ms |
192392 KB |
Output is correct |
42 |
Correct |
39 ms |
190456 KB |
Output is correct |
43 |
Correct |
40 ms |
191696 KB |
Output is correct |
44 |
Correct |
55 ms |
196760 KB |
Output is correct |
45 |
Correct |
58 ms |
198224 KB |
Output is correct |
46 |
Correct |
82 ms |
209480 KB |
Output is correct |
47 |
Correct |
97 ms |
203468 KB |
Output is correct |
48 |
Correct |
88 ms |
203336 KB |
Output is correct |
49 |
Correct |
75 ms |
216820 KB |
Output is correct |
50 |
Correct |
80 ms |
216284 KB |
Output is correct |
51 |
Correct |
96 ms |
203600 KB |
Output is correct |
52 |
Correct |
92 ms |
203436 KB |
Output is correct |
53 |
Correct |
79 ms |
203456 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
29 ms |
188076 KB |
Output is correct |
2 |
Correct |
34 ms |
188240 KB |
Output is correct |
3 |
Correct |
36 ms |
188252 KB |
Output is correct |
4 |
Correct |
31 ms |
188252 KB |
Output is correct |
5 |
Correct |
34 ms |
188240 KB |
Output is correct |
6 |
Correct |
32 ms |
188240 KB |
Output is correct |
7 |
Correct |
35 ms |
188240 KB |
Output is correct |
8 |
Correct |
33 ms |
188240 KB |
Output is correct |
9 |
Correct |
36 ms |
188232 KB |
Output is correct |
10 |
Correct |
33 ms |
188232 KB |
Output is correct |
11 |
Correct |
32 ms |
188240 KB |
Output is correct |
12 |
Correct |
32 ms |
188240 KB |
Output is correct |
13 |
Correct |
30 ms |
188240 KB |
Output is correct |
14 |
Correct |
31 ms |
188232 KB |
Output is correct |
15 |
Correct |
33 ms |
188240 KB |
Output is correct |
16 |
Correct |
36 ms |
188172 KB |
Output is correct |
17 |
Correct |
34 ms |
188260 KB |
Output is correct |
18 |
Correct |
32 ms |
188232 KB |
Output is correct |
19 |
Correct |
36 ms |
188268 KB |
Output is correct |
20 |
Correct |
32 ms |
188228 KB |
Output is correct |
21 |
Correct |
33 ms |
188332 KB |
Output is correct |
22 |
Correct |
32 ms |
188288 KB |
Output is correct |
23 |
Correct |
29 ms |
188240 KB |
Output is correct |
24 |
Correct |
29 ms |
188232 KB |
Output is correct |
25 |
Correct |
30 ms |
188156 KB |
Output is correct |
26 |
Correct |
34 ms |
188240 KB |
Output is correct |
27 |
Correct |
30 ms |
188240 KB |
Output is correct |
28 |
Correct |
30 ms |
188240 KB |
Output is correct |
29 |
Correct |
29 ms |
188232 KB |
Output is correct |
30 |
Correct |
30 ms |
188240 KB |
Output is correct |
31 |
Correct |
30 ms |
188240 KB |
Output is correct |
32 |
Correct |
31 ms |
188312 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
29 ms |
188232 KB |
Output is correct |
2 |
Correct |
32 ms |
188232 KB |
Output is correct |
3 |
Correct |
31 ms |
188240 KB |
Output is correct |
4 |
Correct |
30 ms |
188240 KB |
Output is correct |
5 |
Correct |
30 ms |
188240 KB |
Output is correct |
6 |
Correct |
31 ms |
188264 KB |
Output is correct |
7 |
Correct |
30 ms |
188240 KB |
Output is correct |
8 |
Correct |
29 ms |
188240 KB |
Output is correct |
9 |
Correct |
30 ms |
188240 KB |
Output is correct |
10 |
Correct |
29 ms |
188340 KB |
Output is correct |
11 |
Correct |
30 ms |
188228 KB |
Output is correct |
12 |
Correct |
31 ms |
188088 KB |
Output is correct |
13 |
Correct |
30 ms |
188240 KB |
Output is correct |
14 |
Correct |
30 ms |
188240 KB |
Output is correct |
15 |
Correct |
30 ms |
188240 KB |
Output is correct |
16 |
Correct |
31 ms |
188212 KB |
Output is correct |
17 |
Correct |
30 ms |
188240 KB |
Output is correct |
18 |
Correct |
30 ms |
188240 KB |
Output is correct |
19 |
Correct |
31 ms |
188084 KB |
Output is correct |
20 |
Correct |
32 ms |
188232 KB |
Output is correct |
21 |
Correct |
31 ms |
188240 KB |
Output is correct |
22 |
Correct |
32 ms |
188240 KB |
Output is correct |
23 |
Correct |
31 ms |
188240 KB |
Output is correct |
24 |
Correct |
35 ms |
188208 KB |
Output is correct |
25 |
Correct |
35 ms |
188560 KB |
Output is correct |
26 |
Correct |
33 ms |
189004 KB |
Output is correct |
27 |
Correct |
35 ms |
189008 KB |
Output is correct |
28 |
Correct |
35 ms |
188968 KB |
Output is correct |
29 |
Correct |
33 ms |
188744 KB |
Output is correct |
30 |
Correct |
34 ms |
188752 KB |
Output is correct |
31 |
Correct |
34 ms |
189024 KB |
Output is correct |
32 |
Correct |
33 ms |
188752 KB |
Output is correct |
33 |
Correct |
33 ms |
188752 KB |
Output is correct |
34 |
Correct |
39 ms |
189656 KB |
Output is correct |
35 |
Correct |
39 ms |
190288 KB |
Output is correct |
36 |
Correct |
39 ms |
190284 KB |
Output is correct |
37 |
Correct |
38 ms |
189852 KB |
Output is correct |
38 |
Correct |
38 ms |
189776 KB |
Output is correct |
39 |
Correct |
50 ms |
193864 KB |
Output is correct |
40 |
Correct |
89 ms |
204516 KB |
Output is correct |
41 |
Correct |
90 ms |
209744 KB |
Output is correct |
42 |
Correct |
84 ms |
209620 KB |
Output is correct |
43 |
Correct |
84 ms |
203336 KB |
Output is correct |
44 |
Correct |
79 ms |
203444 KB |
Output is correct |
45 |
Correct |
106 ms |
207392 KB |
Output is correct |
46 |
Correct |
108 ms |
207432 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
29 ms |
188076 KB |
Output is correct |
2 |
Correct |
34 ms |
188240 KB |
Output is correct |
3 |
Correct |
36 ms |
188252 KB |
Output is correct |
4 |
Correct |
31 ms |
188252 KB |
Output is correct |
5 |
Correct |
34 ms |
188240 KB |
Output is correct |
6 |
Correct |
32 ms |
188240 KB |
Output is correct |
7 |
Correct |
35 ms |
188240 KB |
Output is correct |
8 |
Correct |
33 ms |
188240 KB |
Output is correct |
9 |
Correct |
36 ms |
188232 KB |
Output is correct |
10 |
Correct |
33 ms |
188232 KB |
Output is correct |
11 |
Correct |
32 ms |
188240 KB |
Output is correct |
12 |
Correct |
32 ms |
188240 KB |
Output is correct |
13 |
Correct |
30 ms |
188240 KB |
Output is correct |
14 |
Correct |
31 ms |
188232 KB |
Output is correct |
15 |
Correct |
33 ms |
188240 KB |
Output is correct |
16 |
Correct |
36 ms |
188172 KB |
Output is correct |
17 |
Correct |
34 ms |
188260 KB |
Output is correct |
18 |
Correct |
32 ms |
188232 KB |
Output is correct |
19 |
Correct |
36 ms |
188268 KB |
Output is correct |
20 |
Correct |
32 ms |
188228 KB |
Output is correct |
21 |
Correct |
33 ms |
188332 KB |
Output is correct |
22 |
Correct |
32 ms |
188288 KB |
Output is correct |
23 |
Correct |
29 ms |
188240 KB |
Output is correct |
24 |
Correct |
29 ms |
188232 KB |
Output is correct |
25 |
Correct |
30 ms |
188156 KB |
Output is correct |
26 |
Correct |
34 ms |
188240 KB |
Output is correct |
27 |
Correct |
30 ms |
188240 KB |
Output is correct |
28 |
Correct |
30 ms |
188240 KB |
Output is correct |
29 |
Correct |
29 ms |
188232 KB |
Output is correct |
30 |
Correct |
30 ms |
188240 KB |
Output is correct |
31 |
Correct |
30 ms |
188240 KB |
Output is correct |
32 |
Correct |
31 ms |
188312 KB |
Output is correct |
33 |
Correct |
34 ms |
188832 KB |
Output is correct |
34 |
Correct |
31 ms |
188240 KB |
Output is correct |
35 |
Correct |
30 ms |
188336 KB |
Output is correct |
36 |
Correct |
35 ms |
188488 KB |
Output is correct |
37 |
Correct |
39 ms |
189120 KB |
Output is correct |
38 |
Correct |
35 ms |
189008 KB |
Output is correct |
39 |
Correct |
33 ms |
189008 KB |
Output is correct |
40 |
Correct |
33 ms |
188752 KB |
Output is correct |
41 |
Correct |
34 ms |
188764 KB |
Output is correct |
42 |
Correct |
33 ms |
189008 KB |
Output is correct |
43 |
Correct |
39 ms |
188748 KB |
Output is correct |
44 |
Correct |
35 ms |
188948 KB |
Output is correct |
45 |
Correct |
36 ms |
189376 KB |
Output is correct |
46 |
Correct |
35 ms |
189396 KB |
Output is correct |
47 |
Correct |
33 ms |
189124 KB |
Output is correct |
48 |
Correct |
39 ms |
188744 KB |
Output is correct |
49 |
Correct |
36 ms |
188896 KB |
Output is correct |
50 |
Correct |
32 ms |
188752 KB |
Output is correct |
51 |
Correct |
36 ms |
188844 KB |
Output is correct |
52 |
Correct |
34 ms |
188752 KB |
Output is correct |
53 |
Correct |
36 ms |
188852 KB |
Output is correct |
54 |
Correct |
33 ms |
188752 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
29 ms |
188076 KB |
Output is correct |
2 |
Correct |
34 ms |
188240 KB |
Output is correct |
3 |
Correct |
36 ms |
188252 KB |
Output is correct |
4 |
Correct |
31 ms |
188252 KB |
Output is correct |
5 |
Correct |
34 ms |
188240 KB |
Output is correct |
6 |
Correct |
32 ms |
188240 KB |
Output is correct |
7 |
Correct |
35 ms |
188240 KB |
Output is correct |
8 |
Correct |
33 ms |
188240 KB |
Output is correct |
9 |
Correct |
36 ms |
188232 KB |
Output is correct |
10 |
Correct |
33 ms |
188232 KB |
Output is correct |
11 |
Correct |
32 ms |
188240 KB |
Output is correct |
12 |
Correct |
32 ms |
188240 KB |
Output is correct |
13 |
Correct |
30 ms |
188240 KB |
Output is correct |
14 |
Correct |
31 ms |
188232 KB |
Output is correct |
15 |
Correct |
33 ms |
188240 KB |
Output is correct |
16 |
Correct |
36 ms |
188172 KB |
Output is correct |
17 |
Correct |
34 ms |
188260 KB |
Output is correct |
18 |
Correct |
32 ms |
188232 KB |
Output is correct |
19 |
Correct |
36 ms |
188268 KB |
Output is correct |
20 |
Correct |
32 ms |
188228 KB |
Output is correct |
21 |
Correct |
33 ms |
188332 KB |
Output is correct |
22 |
Correct |
32 ms |
188288 KB |
Output is correct |
23 |
Correct |
29 ms |
188240 KB |
Output is correct |
24 |
Correct |
29 ms |
188232 KB |
Output is correct |
25 |
Correct |
30 ms |
188156 KB |
Output is correct |
26 |
Correct |
34 ms |
188240 KB |
Output is correct |
27 |
Correct |
30 ms |
188240 KB |
Output is correct |
28 |
Correct |
30 ms |
188240 KB |
Output is correct |
29 |
Correct |
29 ms |
188232 KB |
Output is correct |
30 |
Correct |
30 ms |
188240 KB |
Output is correct |
31 |
Correct |
30 ms |
188240 KB |
Output is correct |
32 |
Correct |
31 ms |
188312 KB |
Output is correct |
33 |
Correct |
34 ms |
188832 KB |
Output is correct |
34 |
Correct |
31 ms |
188240 KB |
Output is correct |
35 |
Correct |
30 ms |
188336 KB |
Output is correct |
36 |
Correct |
35 ms |
188488 KB |
Output is correct |
37 |
Correct |
39 ms |
189120 KB |
Output is correct |
38 |
Correct |
35 ms |
189008 KB |
Output is correct |
39 |
Correct |
33 ms |
189008 KB |
Output is correct |
40 |
Correct |
33 ms |
188752 KB |
Output is correct |
41 |
Correct |
34 ms |
188764 KB |
Output is correct |
42 |
Correct |
33 ms |
189008 KB |
Output is correct |
43 |
Correct |
39 ms |
188748 KB |
Output is correct |
44 |
Correct |
35 ms |
188948 KB |
Output is correct |
45 |
Correct |
36 ms |
189376 KB |
Output is correct |
46 |
Correct |
35 ms |
189396 KB |
Output is correct |
47 |
Correct |
33 ms |
189124 KB |
Output is correct |
48 |
Correct |
39 ms |
188744 KB |
Output is correct |
49 |
Correct |
36 ms |
188896 KB |
Output is correct |
50 |
Correct |
32 ms |
188752 KB |
Output is correct |
51 |
Correct |
36 ms |
188844 KB |
Output is correct |
52 |
Correct |
34 ms |
188752 KB |
Output is correct |
53 |
Correct |
36 ms |
188852 KB |
Output is correct |
54 |
Correct |
33 ms |
188752 KB |
Output is correct |
55 |
Correct |
37 ms |
189612 KB |
Output is correct |
56 |
Correct |
33 ms |
189152 KB |
Output is correct |
57 |
Correct |
40 ms |
189776 KB |
Output is correct |
58 |
Correct |
42 ms |
189624 KB |
Output is correct |
59 |
Correct |
38 ms |
190288 KB |
Output is correct |
60 |
Correct |
39 ms |
189776 KB |
Output is correct |
61 |
Correct |
36 ms |
189776 KB |
Output is correct |
62 |
Correct |
36 ms |
190288 KB |
Output is correct |
63 |
Correct |
40 ms |
189884 KB |
Output is correct |
64 |
Correct |
41 ms |
189776 KB |
Output is correct |
65 |
Correct |
41 ms |
191824 KB |
Output is correct |
66 |
Correct |
39 ms |
191816 KB |
Output is correct |
67 |
Correct |
39 ms |
190564 KB |
Output is correct |
68 |
Correct |
39 ms |
189776 KB |
Output is correct |
69 |
Correct |
36 ms |
189776 KB |
Output is correct |
70 |
Correct |
43 ms |
189768 KB |
Output is correct |
71 |
Correct |
37 ms |
189768 KB |
Output is correct |
72 |
Correct |
39 ms |
189724 KB |
Output is correct |
73 |
Correct |
38 ms |
189772 KB |
Output is correct |
74 |
Correct |
34 ms |
189776 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
30 ms |
188240 KB |
Output is correct |
2 |
Correct |
30 ms |
188240 KB |
Output is correct |
3 |
Correct |
29 ms |
188220 KB |
Output is correct |
4 |
Correct |
30 ms |
188240 KB |
Output is correct |
5 |
Correct |
29 ms |
188232 KB |
Output is correct |
6 |
Correct |
30 ms |
188240 KB |
Output is correct |
7 |
Correct |
30 ms |
188292 KB |
Output is correct |
8 |
Correct |
30 ms |
188304 KB |
Output is correct |
9 |
Correct |
30 ms |
188240 KB |
Output is correct |
10 |
Correct |
31 ms |
188240 KB |
Output is correct |
11 |
Correct |
31 ms |
188240 KB |
Output is correct |
12 |
Correct |
30 ms |
188240 KB |
Output is correct |
13 |
Correct |
29 ms |
188332 KB |
Output is correct |
14 |
Correct |
29 ms |
188240 KB |
Output is correct |
15 |
Correct |
29 ms |
188240 KB |
Output is correct |
16 |
Correct |
30 ms |
188232 KB |
Output is correct |
17 |
Correct |
34 ms |
188496 KB |
Output is correct |
18 |
Correct |
29 ms |
188240 KB |
Output is correct |
19 |
Correct |
34 ms |
188752 KB |
Output is correct |
20 |
Correct |
33 ms |
189224 KB |
Output is correct |
21 |
Correct |
34 ms |
189008 KB |
Output is correct |
22 |
Correct |
34 ms |
188920 KB |
Output is correct |
23 |
Correct |
34 ms |
188752 KB |
Output is correct |
24 |
Correct |
33 ms |
189384 KB |
Output is correct |
25 |
Correct |
34 ms |
189384 KB |
Output is correct |
26 |
Correct |
36 ms |
188752 KB |
Output is correct |
27 |
Correct |
39 ms |
188752 KB |
Output is correct |
28 |
Correct |
33 ms |
188948 KB |
Output is correct |
29 |
Correct |
36 ms |
189864 KB |
Output is correct |
30 |
Correct |
38 ms |
189124 KB |
Output is correct |
31 |
Correct |
37 ms |
190280 KB |
Output is correct |
32 |
Correct |
38 ms |
189768 KB |
Output is correct |
33 |
Correct |
35 ms |
189604 KB |
Output is correct |
34 |
Correct |
38 ms |
191824 KB |
Output is correct |
35 |
Correct |
39 ms |
191824 KB |
Output is correct |
36 |
Correct |
38 ms |
189768 KB |
Output is correct |
37 |
Correct |
39 ms |
189776 KB |
Output is correct |
38 |
Correct |
37 ms |
189860 KB |
Output is correct |
39 |
Correct |
93 ms |
203344 KB |
Output is correct |
40 |
Correct |
39 ms |
190032 KB |
Output is correct |
41 |
Correct |
43 ms |
192392 KB |
Output is correct |
42 |
Correct |
39 ms |
190456 KB |
Output is correct |
43 |
Correct |
40 ms |
191696 KB |
Output is correct |
44 |
Correct |
55 ms |
196760 KB |
Output is correct |
45 |
Correct |
58 ms |
198224 KB |
Output is correct |
46 |
Correct |
82 ms |
209480 KB |
Output is correct |
47 |
Correct |
97 ms |
203468 KB |
Output is correct |
48 |
Correct |
88 ms |
203336 KB |
Output is correct |
49 |
Correct |
75 ms |
216820 KB |
Output is correct |
50 |
Correct |
80 ms |
216284 KB |
Output is correct |
51 |
Correct |
96 ms |
203600 KB |
Output is correct |
52 |
Correct |
92 ms |
203436 KB |
Output is correct |
53 |
Correct |
79 ms |
203456 KB |
Output is correct |
54 |
Correct |
29 ms |
188076 KB |
Output is correct |
55 |
Correct |
34 ms |
188240 KB |
Output is correct |
56 |
Correct |
36 ms |
188252 KB |
Output is correct |
57 |
Correct |
31 ms |
188252 KB |
Output is correct |
58 |
Correct |
34 ms |
188240 KB |
Output is correct |
59 |
Correct |
32 ms |
188240 KB |
Output is correct |
60 |
Correct |
35 ms |
188240 KB |
Output is correct |
61 |
Correct |
33 ms |
188240 KB |
Output is correct |
62 |
Correct |
36 ms |
188232 KB |
Output is correct |
63 |
Correct |
33 ms |
188232 KB |
Output is correct |
64 |
Correct |
32 ms |
188240 KB |
Output is correct |
65 |
Correct |
32 ms |
188240 KB |
Output is correct |
66 |
Correct |
30 ms |
188240 KB |
Output is correct |
67 |
Correct |
31 ms |
188232 KB |
Output is correct |
68 |
Correct |
33 ms |
188240 KB |
Output is correct |
69 |
Correct |
36 ms |
188172 KB |
Output is correct |
70 |
Correct |
34 ms |
188260 KB |
Output is correct |
71 |
Correct |
32 ms |
188232 KB |
Output is correct |
72 |
Correct |
36 ms |
188268 KB |
Output is correct |
73 |
Correct |
32 ms |
188228 KB |
Output is correct |
74 |
Correct |
33 ms |
188332 KB |
Output is correct |
75 |
Correct |
32 ms |
188288 KB |
Output is correct |
76 |
Correct |
29 ms |
188240 KB |
Output is correct |
77 |
Correct |
29 ms |
188232 KB |
Output is correct |
78 |
Correct |
30 ms |
188156 KB |
Output is correct |
79 |
Correct |
34 ms |
188240 KB |
Output is correct |
80 |
Correct |
30 ms |
188240 KB |
Output is correct |
81 |
Correct |
30 ms |
188240 KB |
Output is correct |
82 |
Correct |
29 ms |
188232 KB |
Output is correct |
83 |
Correct |
30 ms |
188240 KB |
Output is correct |
84 |
Correct |
30 ms |
188240 KB |
Output is correct |
85 |
Correct |
31 ms |
188312 KB |
Output is correct |
86 |
Correct |
29 ms |
188232 KB |
Output is correct |
87 |
Correct |
32 ms |
188232 KB |
Output is correct |
88 |
Correct |
31 ms |
188240 KB |
Output is correct |
89 |
Correct |
30 ms |
188240 KB |
Output is correct |
90 |
Correct |
30 ms |
188240 KB |
Output is correct |
91 |
Correct |
31 ms |
188264 KB |
Output is correct |
92 |
Correct |
30 ms |
188240 KB |
Output is correct |
93 |
Correct |
29 ms |
188240 KB |
Output is correct |
94 |
Correct |
30 ms |
188240 KB |
Output is correct |
95 |
Correct |
29 ms |
188340 KB |
Output is correct |
96 |
Correct |
30 ms |
188228 KB |
Output is correct |
97 |
Correct |
31 ms |
188088 KB |
Output is correct |
98 |
Correct |
30 ms |
188240 KB |
Output is correct |
99 |
Correct |
30 ms |
188240 KB |
Output is correct |
100 |
Correct |
30 ms |
188240 KB |
Output is correct |
101 |
Correct |
31 ms |
188212 KB |
Output is correct |
102 |
Correct |
30 ms |
188240 KB |
Output is correct |
103 |
Correct |
30 ms |
188240 KB |
Output is correct |
104 |
Correct |
31 ms |
188084 KB |
Output is correct |
105 |
Correct |
32 ms |
188232 KB |
Output is correct |
106 |
Correct |
31 ms |
188240 KB |
Output is correct |
107 |
Correct |
32 ms |
188240 KB |
Output is correct |
108 |
Correct |
31 ms |
188240 KB |
Output is correct |
109 |
Correct |
35 ms |
188208 KB |
Output is correct |
110 |
Correct |
35 ms |
188560 KB |
Output is correct |
111 |
Correct |
33 ms |
189004 KB |
Output is correct |
112 |
Correct |
35 ms |
189008 KB |
Output is correct |
113 |
Correct |
35 ms |
188968 KB |
Output is correct |
114 |
Correct |
33 ms |
188744 KB |
Output is correct |
115 |
Correct |
34 ms |
188752 KB |
Output is correct |
116 |
Correct |
34 ms |
189024 KB |
Output is correct |
117 |
Correct |
33 ms |
188752 KB |
Output is correct |
118 |
Correct |
33 ms |
188752 KB |
Output is correct |
119 |
Correct |
39 ms |
189656 KB |
Output is correct |
120 |
Correct |
39 ms |
190288 KB |
Output is correct |
121 |
Correct |
39 ms |
190284 KB |
Output is correct |
122 |
Correct |
38 ms |
189852 KB |
Output is correct |
123 |
Correct |
38 ms |
189776 KB |
Output is correct |
124 |
Correct |
50 ms |
193864 KB |
Output is correct |
125 |
Correct |
89 ms |
204516 KB |
Output is correct |
126 |
Correct |
90 ms |
209744 KB |
Output is correct |
127 |
Correct |
84 ms |
209620 KB |
Output is correct |
128 |
Correct |
84 ms |
203336 KB |
Output is correct |
129 |
Correct |
79 ms |
203444 KB |
Output is correct |
130 |
Correct |
106 ms |
207392 KB |
Output is correct |
131 |
Correct |
108 ms |
207432 KB |
Output is correct |
132 |
Correct |
34 ms |
188832 KB |
Output is correct |
133 |
Correct |
31 ms |
188240 KB |
Output is correct |
134 |
Correct |
30 ms |
188336 KB |
Output is correct |
135 |
Correct |
35 ms |
188488 KB |
Output is correct |
136 |
Correct |
39 ms |
189120 KB |
Output is correct |
137 |
Correct |
35 ms |
189008 KB |
Output is correct |
138 |
Correct |
33 ms |
189008 KB |
Output is correct |
139 |
Correct |
33 ms |
188752 KB |
Output is correct |
140 |
Correct |
34 ms |
188764 KB |
Output is correct |
141 |
Correct |
33 ms |
189008 KB |
Output is correct |
142 |
Correct |
39 ms |
188748 KB |
Output is correct |
143 |
Correct |
35 ms |
188948 KB |
Output is correct |
144 |
Correct |
36 ms |
189376 KB |
Output is correct |
145 |
Correct |
35 ms |
189396 KB |
Output is correct |
146 |
Correct |
33 ms |
189124 KB |
Output is correct |
147 |
Correct |
39 ms |
188744 KB |
Output is correct |
148 |
Correct |
36 ms |
188896 KB |
Output is correct |
149 |
Correct |
32 ms |
188752 KB |
Output is correct |
150 |
Correct |
36 ms |
188844 KB |
Output is correct |
151 |
Correct |
34 ms |
188752 KB |
Output is correct |
152 |
Correct |
36 ms |
188852 KB |
Output is correct |
153 |
Correct |
33 ms |
188752 KB |
Output is correct |
154 |
Correct |
37 ms |
189612 KB |
Output is correct |
155 |
Correct |
33 ms |
189152 KB |
Output is correct |
156 |
Correct |
40 ms |
189776 KB |
Output is correct |
157 |
Correct |
42 ms |
189624 KB |
Output is correct |
158 |
Correct |
38 ms |
190288 KB |
Output is correct |
159 |
Correct |
39 ms |
189776 KB |
Output is correct |
160 |
Correct |
36 ms |
189776 KB |
Output is correct |
161 |
Correct |
36 ms |
190288 KB |
Output is correct |
162 |
Correct |
40 ms |
189884 KB |
Output is correct |
163 |
Correct |
41 ms |
189776 KB |
Output is correct |
164 |
Correct |
41 ms |
191824 KB |
Output is correct |
165 |
Correct |
39 ms |
191816 KB |
Output is correct |
166 |
Correct |
39 ms |
190564 KB |
Output is correct |
167 |
Correct |
39 ms |
189776 KB |
Output is correct |
168 |
Correct |
36 ms |
189776 KB |
Output is correct |
169 |
Correct |
43 ms |
189768 KB |
Output is correct |
170 |
Correct |
37 ms |
189768 KB |
Output is correct |
171 |
Correct |
39 ms |
189724 KB |
Output is correct |
172 |
Correct |
38 ms |
189772 KB |
Output is correct |
173 |
Correct |
34 ms |
189776 KB |
Output is correct |
174 |
Correct |
38 ms |
190280 KB |
Output is correct |
175 |
Correct |
47 ms |
191528 KB |
Output is correct |
176 |
Correct |
55 ms |
197980 KB |
Output is correct |
177 |
Correct |
66 ms |
198924 KB |
Output is correct |
178 |
Correct |
77 ms |
201740 KB |
Output is correct |
179 |
Correct |
78 ms |
203780 KB |
Output is correct |
180 |
Correct |
80 ms |
203460 KB |
Output is correct |
181 |
Correct |
84 ms |
203596 KB |
Output is correct |
182 |
Correct |
94 ms |
203368 KB |
Output is correct |
183 |
Correct |
84 ms |
204008 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
30 ms |
188240 KB |
Output is correct |
2 |
Correct |
30 ms |
188240 KB |
Output is correct |
3 |
Correct |
29 ms |
188220 KB |
Output is correct |
4 |
Correct |
30 ms |
188240 KB |
Output is correct |
5 |
Correct |
29 ms |
188232 KB |
Output is correct |
6 |
Correct |
30 ms |
188240 KB |
Output is correct |
7 |
Correct |
30 ms |
188292 KB |
Output is correct |
8 |
Correct |
30 ms |
188304 KB |
Output is correct |
9 |
Correct |
30 ms |
188240 KB |
Output is correct |
10 |
Correct |
31 ms |
188240 KB |
Output is correct |
11 |
Correct |
31 ms |
188240 KB |
Output is correct |
12 |
Correct |
30 ms |
188240 KB |
Output is correct |
13 |
Correct |
29 ms |
188332 KB |
Output is correct |
14 |
Correct |
29 ms |
188240 KB |
Output is correct |
15 |
Correct |
29 ms |
188240 KB |
Output is correct |
16 |
Correct |
30 ms |
188232 KB |
Output is correct |
17 |
Correct |
34 ms |
188496 KB |
Output is correct |
18 |
Correct |
29 ms |
188240 KB |
Output is correct |
19 |
Correct |
34 ms |
188752 KB |
Output is correct |
20 |
Correct |
33 ms |
189224 KB |
Output is correct |
21 |
Correct |
34 ms |
189008 KB |
Output is correct |
22 |
Correct |
34 ms |
188920 KB |
Output is correct |
23 |
Correct |
34 ms |
188752 KB |
Output is correct |
24 |
Correct |
33 ms |
189384 KB |
Output is correct |
25 |
Correct |
34 ms |
189384 KB |
Output is correct |
26 |
Correct |
36 ms |
188752 KB |
Output is correct |
27 |
Correct |
39 ms |
188752 KB |
Output is correct |
28 |
Correct |
33 ms |
188948 KB |
Output is correct |
29 |
Correct |
36 ms |
189864 KB |
Output is correct |
30 |
Correct |
38 ms |
189124 KB |
Output is correct |
31 |
Correct |
37 ms |
190280 KB |
Output is correct |
32 |
Correct |
38 ms |
189768 KB |
Output is correct |
33 |
Correct |
35 ms |
189604 KB |
Output is correct |
34 |
Correct |
38 ms |
191824 KB |
Output is correct |
35 |
Correct |
39 ms |
191824 KB |
Output is correct |
36 |
Correct |
38 ms |
189768 KB |
Output is correct |
37 |
Correct |
39 ms |
189776 KB |
Output is correct |
38 |
Correct |
37 ms |
189860 KB |
Output is correct |
39 |
Correct |
93 ms |
203344 KB |
Output is correct |
40 |
Correct |
39 ms |
190032 KB |
Output is correct |
41 |
Correct |
43 ms |
192392 KB |
Output is correct |
42 |
Correct |
39 ms |
190456 KB |
Output is correct |
43 |
Correct |
40 ms |
191696 KB |
Output is correct |
44 |
Correct |
55 ms |
196760 KB |
Output is correct |
45 |
Correct |
58 ms |
198224 KB |
Output is correct |
46 |
Correct |
82 ms |
209480 KB |
Output is correct |
47 |
Correct |
97 ms |
203468 KB |
Output is correct |
48 |
Correct |
88 ms |
203336 KB |
Output is correct |
49 |
Correct |
75 ms |
216820 KB |
Output is correct |
50 |
Correct |
80 ms |
216284 KB |
Output is correct |
51 |
Correct |
96 ms |
203600 KB |
Output is correct |
52 |
Correct |
92 ms |
203436 KB |
Output is correct |
53 |
Correct |
79 ms |
203456 KB |
Output is correct |
54 |
Correct |
29 ms |
188076 KB |
Output is correct |
55 |
Correct |
34 ms |
188240 KB |
Output is correct |
56 |
Correct |
36 ms |
188252 KB |
Output is correct |
57 |
Correct |
31 ms |
188252 KB |
Output is correct |
58 |
Correct |
34 ms |
188240 KB |
Output is correct |
59 |
Correct |
32 ms |
188240 KB |
Output is correct |
60 |
Correct |
35 ms |
188240 KB |
Output is correct |
61 |
Correct |
33 ms |
188240 KB |
Output is correct |
62 |
Correct |
36 ms |
188232 KB |
Output is correct |
63 |
Correct |
33 ms |
188232 KB |
Output is correct |
64 |
Correct |
32 ms |
188240 KB |
Output is correct |
65 |
Correct |
32 ms |
188240 KB |
Output is correct |
66 |
Correct |
30 ms |
188240 KB |
Output is correct |
67 |
Correct |
31 ms |
188232 KB |
Output is correct |
68 |
Correct |
33 ms |
188240 KB |
Output is correct |
69 |
Correct |
36 ms |
188172 KB |
Output is correct |
70 |
Correct |
34 ms |
188260 KB |
Output is correct |
71 |
Correct |
32 ms |
188232 KB |
Output is correct |
72 |
Correct |
36 ms |
188268 KB |
Output is correct |
73 |
Correct |
32 ms |
188228 KB |
Output is correct |
74 |
Correct |
33 ms |
188332 KB |
Output is correct |
75 |
Correct |
32 ms |
188288 KB |
Output is correct |
76 |
Correct |
29 ms |
188240 KB |
Output is correct |
77 |
Correct |
29 ms |
188232 KB |
Output is correct |
78 |
Correct |
30 ms |
188156 KB |
Output is correct |
79 |
Correct |
34 ms |
188240 KB |
Output is correct |
80 |
Correct |
30 ms |
188240 KB |
Output is correct |
81 |
Correct |
30 ms |
188240 KB |
Output is correct |
82 |
Correct |
29 ms |
188232 KB |
Output is correct |
83 |
Correct |
30 ms |
188240 KB |
Output is correct |
84 |
Correct |
30 ms |
188240 KB |
Output is correct |
85 |
Correct |
31 ms |
188312 KB |
Output is correct |
86 |
Correct |
29 ms |
188232 KB |
Output is correct |
87 |
Correct |
32 ms |
188232 KB |
Output is correct |
88 |
Correct |
31 ms |
188240 KB |
Output is correct |
89 |
Correct |
30 ms |
188240 KB |
Output is correct |
90 |
Correct |
30 ms |
188240 KB |
Output is correct |
91 |
Correct |
31 ms |
188264 KB |
Output is correct |
92 |
Correct |
30 ms |
188240 KB |
Output is correct |
93 |
Correct |
29 ms |
188240 KB |
Output is correct |
94 |
Correct |
30 ms |
188240 KB |
Output is correct |
95 |
Correct |
29 ms |
188340 KB |
Output is correct |
96 |
Correct |
30 ms |
188228 KB |
Output is correct |
97 |
Correct |
31 ms |
188088 KB |
Output is correct |
98 |
Correct |
30 ms |
188240 KB |
Output is correct |
99 |
Correct |
30 ms |
188240 KB |
Output is correct |
100 |
Correct |
30 ms |
188240 KB |
Output is correct |
101 |
Correct |
31 ms |
188212 KB |
Output is correct |
102 |
Correct |
30 ms |
188240 KB |
Output is correct |
103 |
Correct |
30 ms |
188240 KB |
Output is correct |
104 |
Correct |
31 ms |
188084 KB |
Output is correct |
105 |
Correct |
32 ms |
188232 KB |
Output is correct |
106 |
Correct |
31 ms |
188240 KB |
Output is correct |
107 |
Correct |
32 ms |
188240 KB |
Output is correct |
108 |
Correct |
31 ms |
188240 KB |
Output is correct |
109 |
Correct |
35 ms |
188208 KB |
Output is correct |
110 |
Correct |
35 ms |
188560 KB |
Output is correct |
111 |
Correct |
33 ms |
189004 KB |
Output is correct |
112 |
Correct |
35 ms |
189008 KB |
Output is correct |
113 |
Correct |
35 ms |
188968 KB |
Output is correct |
114 |
Correct |
33 ms |
188744 KB |
Output is correct |
115 |
Correct |
34 ms |
188752 KB |
Output is correct |
116 |
Correct |
34 ms |
189024 KB |
Output is correct |
117 |
Correct |
33 ms |
188752 KB |
Output is correct |
118 |
Correct |
33 ms |
188752 KB |
Output is correct |
119 |
Correct |
39 ms |
189656 KB |
Output is correct |
120 |
Correct |
39 ms |
190288 KB |
Output is correct |
121 |
Correct |
39 ms |
190284 KB |
Output is correct |
122 |
Correct |
38 ms |
189852 KB |
Output is correct |
123 |
Correct |
38 ms |
189776 KB |
Output is correct |
124 |
Correct |
50 ms |
193864 KB |
Output is correct |
125 |
Correct |
89 ms |
204516 KB |
Output is correct |
126 |
Correct |
90 ms |
209744 KB |
Output is correct |
127 |
Correct |
84 ms |
209620 KB |
Output is correct |
128 |
Correct |
84 ms |
203336 KB |
Output is correct |
129 |
Correct |
79 ms |
203444 KB |
Output is correct |
130 |
Correct |
106 ms |
207392 KB |
Output is correct |
131 |
Correct |
108 ms |
207432 KB |
Output is correct |
132 |
Correct |
34 ms |
188832 KB |
Output is correct |
133 |
Correct |
31 ms |
188240 KB |
Output is correct |
134 |
Correct |
30 ms |
188336 KB |
Output is correct |
135 |
Correct |
35 ms |
188488 KB |
Output is correct |
136 |
Correct |
39 ms |
189120 KB |
Output is correct |
137 |
Correct |
35 ms |
189008 KB |
Output is correct |
138 |
Correct |
33 ms |
189008 KB |
Output is correct |
139 |
Correct |
33 ms |
188752 KB |
Output is correct |
140 |
Correct |
34 ms |
188764 KB |
Output is correct |
141 |
Correct |
33 ms |
189008 KB |
Output is correct |
142 |
Correct |
39 ms |
188748 KB |
Output is correct |
143 |
Correct |
35 ms |
188948 KB |
Output is correct |
144 |
Correct |
36 ms |
189376 KB |
Output is correct |
145 |
Correct |
35 ms |
189396 KB |
Output is correct |
146 |
Correct |
33 ms |
189124 KB |
Output is correct |
147 |
Correct |
39 ms |
188744 KB |
Output is correct |
148 |
Correct |
36 ms |
188896 KB |
Output is correct |
149 |
Correct |
32 ms |
188752 KB |
Output is correct |
150 |
Correct |
36 ms |
188844 KB |
Output is correct |
151 |
Correct |
34 ms |
188752 KB |
Output is correct |
152 |
Correct |
36 ms |
188852 KB |
Output is correct |
153 |
Correct |
33 ms |
188752 KB |
Output is correct |
154 |
Correct |
37 ms |
189612 KB |
Output is correct |
155 |
Correct |
33 ms |
189152 KB |
Output is correct |
156 |
Correct |
40 ms |
189776 KB |
Output is correct |
157 |
Correct |
42 ms |
189624 KB |
Output is correct |
158 |
Correct |
38 ms |
190288 KB |
Output is correct |
159 |
Correct |
39 ms |
189776 KB |
Output is correct |
160 |
Correct |
36 ms |
189776 KB |
Output is correct |
161 |
Correct |
36 ms |
190288 KB |
Output is correct |
162 |
Correct |
40 ms |
189884 KB |
Output is correct |
163 |
Correct |
41 ms |
189776 KB |
Output is correct |
164 |
Correct |
41 ms |
191824 KB |
Output is correct |
165 |
Correct |
39 ms |
191816 KB |
Output is correct |
166 |
Correct |
39 ms |
190564 KB |
Output is correct |
167 |
Correct |
39 ms |
189776 KB |
Output is correct |
168 |
Correct |
36 ms |
189776 KB |
Output is correct |
169 |
Correct |
43 ms |
189768 KB |
Output is correct |
170 |
Correct |
37 ms |
189768 KB |
Output is correct |
171 |
Correct |
39 ms |
189724 KB |
Output is correct |
172 |
Correct |
38 ms |
189772 KB |
Output is correct |
173 |
Correct |
34 ms |
189776 KB |
Output is correct |
174 |
Correct |
38 ms |
190280 KB |
Output is correct |
175 |
Correct |
47 ms |
191528 KB |
Output is correct |
176 |
Correct |
55 ms |
197980 KB |
Output is correct |
177 |
Correct |
66 ms |
198924 KB |
Output is correct |
178 |
Correct |
77 ms |
201740 KB |
Output is correct |
179 |
Correct |
78 ms |
203780 KB |
Output is correct |
180 |
Correct |
80 ms |
203460 KB |
Output is correct |
181 |
Correct |
84 ms |
203596 KB |
Output is correct |
182 |
Correct |
94 ms |
203368 KB |
Output is correct |
183 |
Correct |
84 ms |
204008 KB |
Output is correct |
184 |
Correct |
142 ms |
218444 KB |
Output is correct |
185 |
Correct |
84 ms |
205036 KB |
Output is correct |
186 |
Correct |
99 ms |
210752 KB |
Output is correct |
187 |
Correct |
99 ms |
209656 KB |
Output is correct |
188 |
Correct |
136 ms |
231008 KB |
Output is correct |
189 |
Correct |
171 ms |
218444 KB |
Output is correct |
190 |
Correct |
125 ms |
218444 KB |
Output is correct |
191 |
Correct |
137 ms |
230868 KB |
Output is correct |
192 |
Correct |
189 ms |
218444 KB |
Output is correct |
193 |
Correct |
149 ms |
218316 KB |
Output is correct |
194 |
Correct |
129 ms |
244216 KB |
Output is correct |
195 |
Correct |
155 ms |
244180 KB |
Output is correct |
196 |
Correct |
149 ms |
218628 KB |
Output is correct |
197 |
Correct |
131 ms |
218884 KB |
Output is correct |
198 |
Correct |
134 ms |
218816 KB |
Output is correct |
199 |
Correct |
142 ms |
218696 KB |
Output is correct |
200 |
Correct |
158 ms |
218740 KB |
Output is correct |
201 |
Correct |
172 ms |
218572 KB |
Output is correct |
202 |
Correct |
140 ms |
218440 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
30 ms |
188240 KB |
Output is correct |
2 |
Correct |
30 ms |
188240 KB |
Output is correct |
3 |
Correct |
29 ms |
188220 KB |
Output is correct |
4 |
Correct |
30 ms |
188240 KB |
Output is correct |
5 |
Correct |
29 ms |
188232 KB |
Output is correct |
6 |
Correct |
30 ms |
188240 KB |
Output is correct |
7 |
Correct |
30 ms |
188292 KB |
Output is correct |
8 |
Correct |
30 ms |
188304 KB |
Output is correct |
9 |
Correct |
30 ms |
188240 KB |
Output is correct |
10 |
Correct |
31 ms |
188240 KB |
Output is correct |
11 |
Correct |
31 ms |
188240 KB |
Output is correct |
12 |
Correct |
30 ms |
188240 KB |
Output is correct |
13 |
Correct |
29 ms |
188332 KB |
Output is correct |
14 |
Correct |
29 ms |
188240 KB |
Output is correct |
15 |
Correct |
29 ms |
188240 KB |
Output is correct |
16 |
Correct |
30 ms |
188232 KB |
Output is correct |
17 |
Correct |
34 ms |
188496 KB |
Output is correct |
18 |
Correct |
29 ms |
188240 KB |
Output is correct |
19 |
Correct |
34 ms |
188752 KB |
Output is correct |
20 |
Correct |
33 ms |
189224 KB |
Output is correct |
21 |
Correct |
34 ms |
189008 KB |
Output is correct |
22 |
Correct |
34 ms |
188920 KB |
Output is correct |
23 |
Correct |
34 ms |
188752 KB |
Output is correct |
24 |
Correct |
33 ms |
189384 KB |
Output is correct |
25 |
Correct |
34 ms |
189384 KB |
Output is correct |
26 |
Correct |
36 ms |
188752 KB |
Output is correct |
27 |
Correct |
39 ms |
188752 KB |
Output is correct |
28 |
Correct |
33 ms |
188948 KB |
Output is correct |
29 |
Correct |
36 ms |
189864 KB |
Output is correct |
30 |
Correct |
38 ms |
189124 KB |
Output is correct |
31 |
Correct |
37 ms |
190280 KB |
Output is correct |
32 |
Correct |
38 ms |
189768 KB |
Output is correct |
33 |
Correct |
35 ms |
189604 KB |
Output is correct |
34 |
Correct |
38 ms |
191824 KB |
Output is correct |
35 |
Correct |
39 ms |
191824 KB |
Output is correct |
36 |
Correct |
38 ms |
189768 KB |
Output is correct |
37 |
Correct |
39 ms |
189776 KB |
Output is correct |
38 |
Correct |
37 ms |
189860 KB |
Output is correct |
39 |
Correct |
93 ms |
203344 KB |
Output is correct |
40 |
Correct |
39 ms |
190032 KB |
Output is correct |
41 |
Correct |
43 ms |
192392 KB |
Output is correct |
42 |
Correct |
39 ms |
190456 KB |
Output is correct |
43 |
Correct |
40 ms |
191696 KB |
Output is correct |
44 |
Correct |
55 ms |
196760 KB |
Output is correct |
45 |
Correct |
58 ms |
198224 KB |
Output is correct |
46 |
Correct |
82 ms |
209480 KB |
Output is correct |
47 |
Correct |
97 ms |
203468 KB |
Output is correct |
48 |
Correct |
88 ms |
203336 KB |
Output is correct |
49 |
Correct |
75 ms |
216820 KB |
Output is correct |
50 |
Correct |
80 ms |
216284 KB |
Output is correct |
51 |
Correct |
96 ms |
203600 KB |
Output is correct |
52 |
Correct |
92 ms |
203436 KB |
Output is correct |
53 |
Correct |
79 ms |
203456 KB |
Output is correct |
54 |
Correct |
29 ms |
188076 KB |
Output is correct |
55 |
Correct |
34 ms |
188240 KB |
Output is correct |
56 |
Correct |
36 ms |
188252 KB |
Output is correct |
57 |
Correct |
31 ms |
188252 KB |
Output is correct |
58 |
Correct |
34 ms |
188240 KB |
Output is correct |
59 |
Correct |
32 ms |
188240 KB |
Output is correct |
60 |
Correct |
35 ms |
188240 KB |
Output is correct |
61 |
Correct |
33 ms |
188240 KB |
Output is correct |
62 |
Correct |
36 ms |
188232 KB |
Output is correct |
63 |
Correct |
33 ms |
188232 KB |
Output is correct |
64 |
Correct |
32 ms |
188240 KB |
Output is correct |
65 |
Correct |
32 ms |
188240 KB |
Output is correct |
66 |
Correct |
30 ms |
188240 KB |
Output is correct |
67 |
Correct |
31 ms |
188232 KB |
Output is correct |
68 |
Correct |
33 ms |
188240 KB |
Output is correct |
69 |
Correct |
36 ms |
188172 KB |
Output is correct |
70 |
Correct |
34 ms |
188260 KB |
Output is correct |
71 |
Correct |
32 ms |
188232 KB |
Output is correct |
72 |
Correct |
36 ms |
188268 KB |
Output is correct |
73 |
Correct |
32 ms |
188228 KB |
Output is correct |
74 |
Correct |
33 ms |
188332 KB |
Output is correct |
75 |
Correct |
32 ms |
188288 KB |
Output is correct |
76 |
Correct |
29 ms |
188240 KB |
Output is correct |
77 |
Correct |
29 ms |
188232 KB |
Output is correct |
78 |
Correct |
30 ms |
188156 KB |
Output is correct |
79 |
Correct |
34 ms |
188240 KB |
Output is correct |
80 |
Correct |
30 ms |
188240 KB |
Output is correct |
81 |
Correct |
30 ms |
188240 KB |
Output is correct |
82 |
Correct |
29 ms |
188232 KB |
Output is correct |
83 |
Correct |
30 ms |
188240 KB |
Output is correct |
84 |
Correct |
30 ms |
188240 KB |
Output is correct |
85 |
Correct |
31 ms |
188312 KB |
Output is correct |
86 |
Correct |
29 ms |
188232 KB |
Output is correct |
87 |
Correct |
32 ms |
188232 KB |
Output is correct |
88 |
Correct |
31 ms |
188240 KB |
Output is correct |
89 |
Correct |
30 ms |
188240 KB |
Output is correct |
90 |
Correct |
30 ms |
188240 KB |
Output is correct |
91 |
Correct |
31 ms |
188264 KB |
Output is correct |
92 |
Correct |
30 ms |
188240 KB |
Output is correct |
93 |
Correct |
29 ms |
188240 KB |
Output is correct |
94 |
Correct |
30 ms |
188240 KB |
Output is correct |
95 |
Correct |
29 ms |
188340 KB |
Output is correct |
96 |
Correct |
30 ms |
188228 KB |
Output is correct |
97 |
Correct |
31 ms |
188088 KB |
Output is correct |
98 |
Correct |
30 ms |
188240 KB |
Output is correct |
99 |
Correct |
30 ms |
188240 KB |
Output is correct |
100 |
Correct |
30 ms |
188240 KB |
Output is correct |
101 |
Correct |
31 ms |
188212 KB |
Output is correct |
102 |
Correct |
30 ms |
188240 KB |
Output is correct |
103 |
Correct |
30 ms |
188240 KB |
Output is correct |
104 |
Correct |
31 ms |
188084 KB |
Output is correct |
105 |
Correct |
32 ms |
188232 KB |
Output is correct |
106 |
Correct |
31 ms |
188240 KB |
Output is correct |
107 |
Correct |
32 ms |
188240 KB |
Output is correct |
108 |
Correct |
31 ms |
188240 KB |
Output is correct |
109 |
Correct |
35 ms |
188208 KB |
Output is correct |
110 |
Correct |
35 ms |
188560 KB |
Output is correct |
111 |
Correct |
33 ms |
189004 KB |
Output is correct |
112 |
Correct |
35 ms |
189008 KB |
Output is correct |
113 |
Correct |
35 ms |
188968 KB |
Output is correct |
114 |
Correct |
33 ms |
188744 KB |
Output is correct |
115 |
Correct |
34 ms |
188752 KB |
Output is correct |
116 |
Correct |
34 ms |
189024 KB |
Output is correct |
117 |
Correct |
33 ms |
188752 KB |
Output is correct |
118 |
Correct |
33 ms |
188752 KB |
Output is correct |
119 |
Correct |
39 ms |
189656 KB |
Output is correct |
120 |
Correct |
39 ms |
190288 KB |
Output is correct |
121 |
Correct |
39 ms |
190284 KB |
Output is correct |
122 |
Correct |
38 ms |
189852 KB |
Output is correct |
123 |
Correct |
38 ms |
189776 KB |
Output is correct |
124 |
Correct |
50 ms |
193864 KB |
Output is correct |
125 |
Correct |
89 ms |
204516 KB |
Output is correct |
126 |
Correct |
90 ms |
209744 KB |
Output is correct |
127 |
Correct |
84 ms |
209620 KB |
Output is correct |
128 |
Correct |
84 ms |
203336 KB |
Output is correct |
129 |
Correct |
79 ms |
203444 KB |
Output is correct |
130 |
Correct |
106 ms |
207392 KB |
Output is correct |
131 |
Correct |
108 ms |
207432 KB |
Output is correct |
132 |
Correct |
34 ms |
188832 KB |
Output is correct |
133 |
Correct |
31 ms |
188240 KB |
Output is correct |
134 |
Correct |
30 ms |
188336 KB |
Output is correct |
135 |
Correct |
35 ms |
188488 KB |
Output is correct |
136 |
Correct |
39 ms |
189120 KB |
Output is correct |
137 |
Correct |
35 ms |
189008 KB |
Output is correct |
138 |
Correct |
33 ms |
189008 KB |
Output is correct |
139 |
Correct |
33 ms |
188752 KB |
Output is correct |
140 |
Correct |
34 ms |
188764 KB |
Output is correct |
141 |
Correct |
33 ms |
189008 KB |
Output is correct |
142 |
Correct |
39 ms |
188748 KB |
Output is correct |
143 |
Correct |
35 ms |
188948 KB |
Output is correct |
144 |
Correct |
36 ms |
189376 KB |
Output is correct |
145 |
Correct |
35 ms |
189396 KB |
Output is correct |
146 |
Correct |
33 ms |
189124 KB |
Output is correct |
147 |
Correct |
39 ms |
188744 KB |
Output is correct |
148 |
Correct |
36 ms |
188896 KB |
Output is correct |
149 |
Correct |
32 ms |
188752 KB |
Output is correct |
150 |
Correct |
36 ms |
188844 KB |
Output is correct |
151 |
Correct |
34 ms |
188752 KB |
Output is correct |
152 |
Correct |
36 ms |
188852 KB |
Output is correct |
153 |
Correct |
33 ms |
188752 KB |
Output is correct |
154 |
Correct |
37 ms |
189612 KB |
Output is correct |
155 |
Correct |
33 ms |
189152 KB |
Output is correct |
156 |
Correct |
40 ms |
189776 KB |
Output is correct |
157 |
Correct |
42 ms |
189624 KB |
Output is correct |
158 |
Correct |
38 ms |
190288 KB |
Output is correct |
159 |
Correct |
39 ms |
189776 KB |
Output is correct |
160 |
Correct |
36 ms |
189776 KB |
Output is correct |
161 |
Correct |
36 ms |
190288 KB |
Output is correct |
162 |
Correct |
40 ms |
189884 KB |
Output is correct |
163 |
Correct |
41 ms |
189776 KB |
Output is correct |
164 |
Correct |
41 ms |
191824 KB |
Output is correct |
165 |
Correct |
39 ms |
191816 KB |
Output is correct |
166 |
Correct |
39 ms |
190564 KB |
Output is correct |
167 |
Correct |
39 ms |
189776 KB |
Output is correct |
168 |
Correct |
36 ms |
189776 KB |
Output is correct |
169 |
Correct |
43 ms |
189768 KB |
Output is correct |
170 |
Correct |
37 ms |
189768 KB |
Output is correct |
171 |
Correct |
39 ms |
189724 KB |
Output is correct |
172 |
Correct |
38 ms |
189772 KB |
Output is correct |
173 |
Correct |
34 ms |
189776 KB |
Output is correct |
174 |
Correct |
38 ms |
190280 KB |
Output is correct |
175 |
Correct |
47 ms |
191528 KB |
Output is correct |
176 |
Correct |
55 ms |
197980 KB |
Output is correct |
177 |
Correct |
66 ms |
198924 KB |
Output is correct |
178 |
Correct |
77 ms |
201740 KB |
Output is correct |
179 |
Correct |
78 ms |
203780 KB |
Output is correct |
180 |
Correct |
80 ms |
203460 KB |
Output is correct |
181 |
Correct |
84 ms |
203596 KB |
Output is correct |
182 |
Correct |
94 ms |
203368 KB |
Output is correct |
183 |
Correct |
84 ms |
204008 KB |
Output is correct |
184 |
Correct |
142 ms |
218444 KB |
Output is correct |
185 |
Correct |
84 ms |
205036 KB |
Output is correct |
186 |
Correct |
99 ms |
210752 KB |
Output is correct |
187 |
Correct |
99 ms |
209656 KB |
Output is correct |
188 |
Correct |
136 ms |
231008 KB |
Output is correct |
189 |
Correct |
171 ms |
218444 KB |
Output is correct |
190 |
Correct |
125 ms |
218444 KB |
Output is correct |
191 |
Correct |
137 ms |
230868 KB |
Output is correct |
192 |
Correct |
189 ms |
218444 KB |
Output is correct |
193 |
Correct |
149 ms |
218316 KB |
Output is correct |
194 |
Correct |
129 ms |
244216 KB |
Output is correct |
195 |
Correct |
155 ms |
244180 KB |
Output is correct |
196 |
Correct |
149 ms |
218628 KB |
Output is correct |
197 |
Correct |
131 ms |
218884 KB |
Output is correct |
198 |
Correct |
134 ms |
218816 KB |
Output is correct |
199 |
Correct |
142 ms |
218696 KB |
Output is correct |
200 |
Correct |
158 ms |
218740 KB |
Output is correct |
201 |
Correct |
172 ms |
218572 KB |
Output is correct |
202 |
Correct |
140 ms |
218440 KB |
Output is correct |
203 |
Correct |
300 ms |
248400 KB |
Output is correct |
204 |
Correct |
168 ms |
219568 KB |
Output is correct |
205 |
Correct |
221 ms |
225400 KB |
Output is correct |
206 |
Correct |
273 ms |
248908 KB |
Output is correct |
207 |
Correct |
271 ms |
273400 KB |
Output is correct |
208 |
Correct |
303 ms |
248540 KB |
Output is correct |
209 |
Correct |
224 ms |
248648 KB |
Output is correct |
210 |
Correct |
223 ms |
273404 KB |
Output is correct |
211 |
Correct |
223 ms |
248280 KB |
Output is correct |
212 |
Correct |
311 ms |
248424 KB |
Output is correct |
213 |
Correct |
227 ms |
298452 KB |
Output is correct |
214 |
Correct |
233 ms |
298448 KB |
Output is correct |
215 |
Correct |
228 ms |
248764 KB |
Output is correct |
216 |
Correct |
207 ms |
248660 KB |
Output is correct |
217 |
Correct |
244 ms |
248800 KB |
Output is correct |
218 |
Correct |
223 ms |
249292 KB |
Output is correct |
219 |
Correct |
257 ms |
253192 KB |
Output is correct |
220 |
Correct |
285 ms |
258104 KB |
Output is correct |
221 |
Correct |
291 ms |
264484 KB |
Output is correct |
222 |
Correct |
290 ms |
264596 KB |
Output is correct |
223 |
Correct |
336 ms |
248832 KB |
Output is correct |
224 |
Correct |
302 ms |
248536 KB |
Output is correct |
225 |
Correct |
258 ms |
248424 KB |
Output is correct |