// -------------------- Includes -------------------- //
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <stdio.h>
#include <cstdlib>
#include <stdlib.h>
#include <array>
#include <string>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <math.h>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <bitset>
#include <list>
#include <iterator>
#include <numeric>
#include <complex>
#include <tuple>
#include <utility>
#include <cassert>
#include <assert.h>
#include <climits>
#include <limits.h>
#include <ctime>
#include <time.h>
#include <random>
#include <chrono>
#include <fstream>
using namespace std;
// -------------------- Typedefs -------------------- //
typedef long long ll;
typedef unsigned long long ull;
typedef double db;
typedef long double ld;
// -------------------- Defines -------------------- //
#define pr pair
#define mpr make_pair
#define ff first
#define ss second
#define mset multiset
#define mmap multimap
#define uset unordered_set
#define umap unordered_map
#define umset unordered_multiset
#define ummap unordered_multimap
#define pqueue priority_queue
#define sz(x) (int((x).size()))
#define len(x) (int((x).length()))
#define all(x) (x).begin(), (x).end()
#define clr(x) (x).clear()
#define ft front
#define bk back
#define pf push_front
#define pb push_back
#define popf pop_front
#define popb pop_back
#define lb lower_bound
#define ub upper_bound
#define bs binary_search
// -------------------- Constants -------------------- //
const int MAX = int(1e9 + 5);
const ll MAXL = ll(1e18 + 5);
const ll MOD = ll(1e9 + 7);
const ll MOD2 = ll(998244353);
// -------------------- Functions -------------------- //
void fastio()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
return;
}
void precision(int x)
{
cout << fixed << setprecision(x);
return;
}
ll gcd0(ll a, ll b)
{
while (b) {
a %= b;
swap(a, b);
}
return a;
}
ll lcm0(ll a, ll b)
{
return a / gcd0(a, b) * b;
}
bool is_prime(ll a)
{
if (a == 1) return false;
for (ll i = 2; i * i <= a; i++) if (a % i == 0) return false;
return true;
}
bool is_square(ll a)
{
ll b = ll(sqrtl(ld(a)));
return (b * b == a);
}
bool is_cube(ll a)
{
ll b = ll(cbrtl(ld(a)));
return (b * b * b == a);
}
int digit_sum(ll a)
{
int sum = 0;
while (a) {
sum += int(a % 10);
a /= 10;
}
return sum;
}
ll binpow(ll a, int b)
{
ll ans = 1;
while (b) {
if (b & 1) ans *= a;
b >>= 1;
a *= a;
}
return ans;
}
ll binpow_mod(ll a, ll b, ll mod)
{
ll ans = 1;
while (b) {
if (b & 1) ans = (ans * a) % mod;
b >>= 1;
a = (a * a) % mod;
}
return ans;
}
ll factorial(int a)
{
ll ans = 1;
for (int i = 2; i <= a; i++) ans *= ll(i);
return ans;
}
ll factorial_mod(int a, ll mod)
{
ll ans = 1;
for (int i = 2; i <= a; i++) ans = (ans * ll(i)) % mod;
return ans;
}
// -------------------- Solution -------------------- //
const int N = 1505, M = 1505;
char a[N][M];
int px[N], py[M];
vector<pr<int, int>> g[N][M];
int n, m, k, l;
int xh, yh, xv, yv, tx, ty;
vector<int> vx[N], vy[M];
bool used[N][M];
void dfs(int x, int y)
{
if (a[x][y] == 'X') return;
used[x][y] = true;
for (int i = 0; i < sz(g[x][y]); i++) {
if (!used[g[x][y][i].ff][g[x][y][i].ss]) dfs(g[x][y][i].ff, g[x][y][i].ss);
}
return;
}
void solve()
{
int i, j;
cin >> m >> n >> k >> l;
cin >> yh >> xh >> yv >> xv;
for (i = 1; i <= n; i++) {
for (j = 1; j <= m; j++) {
cin >> a[i][j];
if (a[i][j] == '*') {
tx = i;
ty = j;
}
else if (a[i][j] == 'X') {
vx[i].pb(j);
vy[j].pb(i);
}
}
}
for (j = 1; j <= m; j++) sort(all(vy[j]));
int h, cnt;
int lx, rx, ly, ry;
for (i = 1; i <= n; i++) {
for (j = 1; j <= m; j++) {
if (a[i][j] == 'X') continue;
h = ub(all(vy[j]), i) - vy[j].begin();
if (h == sz(vy[j])) rx = n;
else rx = vy[j][h] - 1;
rx = min(rx, i + l - 1);
h--;
if (h < 0) lx = 1;
else lx = vy[j][h] + 1;
lx = max(lx, i - l + 1);
h = ub(all(vx[i]), j) - vx[i].begin();
if (h == sz(vx[i])) ry = m;
else ry = vx[i][h] - 1;
ry = min(ry, j + k - 1);
h--;
if (h < 0) ly = 1;
else ly = vx[i][h] + 1;
ly = max(ly, j - k + 1);
if (l > rx - lx + 1 || k > ry - ly + 1) continue;
if (i < n && rx >= i + 1 && a[i + 1][j] != 'X') {
cnt = 0;
for (h = ly; h <= ry; h++) {
if (a[i + 1][h] == 'X') cnt = 0;
else cnt++;
if (cnt >= k) {
g[i][j].pb(mpr(i + 1, j));
g[i + 1][j].pb(mpr(i, j));
break;
}
}
}
if (j < m && ry >= j + 1 && a[i][j + 1] != 'X') {
cnt = 0;
for (h = lx; h <= rx; h++) {
if (a[h][j + 1] == 'X') cnt = 0;
else cnt++;
if (cnt >= l) {
g[i][j].pb(mpr(i, j + 1));
g[i][j + 1].pb(mpr(i, j));
break;
}
}
}
}
}
dfs(xh + 1, yv + 1);
if (used[tx][ty]) cout << "YES\n";
else cout << "NO\n";
return;
}
void precalc()
{
return;
}
int main()
{
fastio();
precalc();
int tests = 1, tc;
//cin >> tests;
for (tc = 1; tc <= tests; tc++) {
solve();
}
return 0;
}
/*
# # # # # # # # # # # # # # # # #
# # # # # # # # # #
# # # # # # # # # # # # #
# # # # # # # # # # # #
# # # # # # # # # # # # # #
*/
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
9 ms |
55644 KB |
Output is correct |
2 |
Correct |
10 ms |
55644 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
9 ms |
55644 KB |
Output is correct |
2 |
Correct |
10 ms |
55644 KB |
Output is correct |
3 |
Correct |
8 ms |
55900 KB |
Output is correct |
4 |
Correct |
10 ms |
56156 KB |
Output is correct |
5 |
Correct |
8 ms |
55900 KB |
Output is correct |
6 |
Correct |
8 ms |
55936 KB |
Output is correct |
7 |
Correct |
9 ms |
55824 KB |
Output is correct |
8 |
Correct |
10 ms |
55900 KB |
Output is correct |
9 |
Correct |
9 ms |
55816 KB |
Output is correct |
10 |
Correct |
8 ms |
55872 KB |
Output is correct |
11 |
Correct |
8 ms |
55644 KB |
Output is correct |
12 |
Correct |
9 ms |
55828 KB |
Output is correct |
13 |
Correct |
8 ms |
55644 KB |
Output is correct |
14 |
Correct |
8 ms |
55768 KB |
Output is correct |
15 |
Correct |
10 ms |
56000 KB |
Output is correct |
16 |
Correct |
8 ms |
55900 KB |
Output is correct |
17 |
Correct |
7 ms |
56076 KB |
Output is correct |
18 |
Correct |
8 ms |
56152 KB |
Output is correct |
19 |
Correct |
8 ms |
56156 KB |
Output is correct |
20 |
Correct |
10 ms |
56156 KB |
Output is correct |
21 |
Correct |
10 ms |
56152 KB |
Output is correct |
22 |
Correct |
8 ms |
56156 KB |
Output is correct |
23 |
Correct |
8 ms |
56152 KB |
Output is correct |
24 |
Correct |
8 ms |
56052 KB |
Output is correct |
25 |
Correct |
9 ms |
56088 KB |
Output is correct |
26 |
Correct |
9 ms |
56148 KB |
Output is correct |
27 |
Correct |
7 ms |
56140 KB |
Output is correct |
28 |
Correct |
9 ms |
56136 KB |
Output is correct |
29 |
Correct |
8 ms |
55900 KB |
Output is correct |
30 |
Correct |
8 ms |
56156 KB |
Output is correct |
31 |
Correct |
10 ms |
56016 KB |
Output is correct |
32 |
Correct |
8 ms |
55900 KB |
Output is correct |
33 |
Correct |
10 ms |
56052 KB |
Output is correct |
34 |
Correct |
8 ms |
55900 KB |
Output is correct |
35 |
Correct |
10 ms |
55900 KB |
Output is correct |
36 |
Correct |
9 ms |
55744 KB |
Output is correct |
37 |
Correct |
10 ms |
55900 KB |
Output is correct |
38 |
Correct |
9 ms |
56020 KB |
Output is correct |
39 |
Correct |
8 ms |
55900 KB |
Output is correct |
40 |
Correct |
7 ms |
56028 KB |
Output is correct |
41 |
Correct |
10 ms |
55900 KB |
Output is correct |
42 |
Correct |
7 ms |
56024 KB |
Output is correct |
43 |
Correct |
8 ms |
56156 KB |
Output is correct |
44 |
Correct |
10 ms |
56172 KB |
Output is correct |
45 |
Correct |
7 ms |
56156 KB |
Output is correct |
46 |
Correct |
7 ms |
55900 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
9 ms |
55644 KB |
Output is correct |
2 |
Correct |
10 ms |
55644 KB |
Output is correct |
3 |
Correct |
8 ms |
55900 KB |
Output is correct |
4 |
Correct |
10 ms |
56156 KB |
Output is correct |
5 |
Correct |
8 ms |
55900 KB |
Output is correct |
6 |
Correct |
8 ms |
55936 KB |
Output is correct |
7 |
Correct |
9 ms |
55824 KB |
Output is correct |
8 |
Correct |
10 ms |
55900 KB |
Output is correct |
9 |
Correct |
9 ms |
55816 KB |
Output is correct |
10 |
Correct |
8 ms |
55872 KB |
Output is correct |
11 |
Correct |
8 ms |
55644 KB |
Output is correct |
12 |
Correct |
9 ms |
55828 KB |
Output is correct |
13 |
Correct |
8 ms |
55644 KB |
Output is correct |
14 |
Correct |
8 ms |
55768 KB |
Output is correct |
15 |
Correct |
10 ms |
56000 KB |
Output is correct |
16 |
Correct |
8 ms |
55900 KB |
Output is correct |
17 |
Correct |
7 ms |
56076 KB |
Output is correct |
18 |
Correct |
8 ms |
56152 KB |
Output is correct |
19 |
Correct |
8 ms |
56156 KB |
Output is correct |
20 |
Correct |
10 ms |
56156 KB |
Output is correct |
21 |
Correct |
10 ms |
56152 KB |
Output is correct |
22 |
Correct |
8 ms |
56156 KB |
Output is correct |
23 |
Correct |
8 ms |
56152 KB |
Output is correct |
24 |
Correct |
8 ms |
56052 KB |
Output is correct |
25 |
Correct |
9 ms |
56088 KB |
Output is correct |
26 |
Correct |
9 ms |
56148 KB |
Output is correct |
27 |
Correct |
7 ms |
56140 KB |
Output is correct |
28 |
Correct |
9 ms |
56136 KB |
Output is correct |
29 |
Correct |
8 ms |
55900 KB |
Output is correct |
30 |
Correct |
8 ms |
56156 KB |
Output is correct |
31 |
Correct |
10 ms |
56016 KB |
Output is correct |
32 |
Correct |
8 ms |
55900 KB |
Output is correct |
33 |
Correct |
10 ms |
56052 KB |
Output is correct |
34 |
Correct |
8 ms |
55900 KB |
Output is correct |
35 |
Correct |
10 ms |
55900 KB |
Output is correct |
36 |
Correct |
9 ms |
55744 KB |
Output is correct |
37 |
Correct |
10 ms |
55900 KB |
Output is correct |
38 |
Correct |
9 ms |
56020 KB |
Output is correct |
39 |
Correct |
8 ms |
55900 KB |
Output is correct |
40 |
Correct |
7 ms |
56028 KB |
Output is correct |
41 |
Correct |
10 ms |
55900 KB |
Output is correct |
42 |
Correct |
7 ms |
56024 KB |
Output is correct |
43 |
Correct |
8 ms |
56156 KB |
Output is correct |
44 |
Correct |
10 ms |
56172 KB |
Output is correct |
45 |
Correct |
7 ms |
56156 KB |
Output is correct |
46 |
Correct |
7 ms |
55900 KB |
Output is correct |
47 |
Correct |
10 ms |
55900 KB |
Output is correct |
48 |
Correct |
8 ms |
58276 KB |
Output is correct |
49 |
Correct |
10 ms |
58200 KB |
Output is correct |
50 |
Correct |
9 ms |
57768 KB |
Output is correct |
51 |
Correct |
8 ms |
58204 KB |
Output is correct |
52 |
Correct |
8 ms |
57928 KB |
Output is correct |
53 |
Correct |
8 ms |
55644 KB |
Output is correct |
54 |
Correct |
8 ms |
57876 KB |
Output is correct |
55 |
Correct |
7 ms |
57692 KB |
Output is correct |
56 |
Correct |
8 ms |
57692 KB |
Output is correct |
57 |
Correct |
8 ms |
57948 KB |
Output is correct |
58 |
Correct |
8 ms |
57948 KB |
Output is correct |
59 |
Correct |
8 ms |
58724 KB |
Output is correct |
60 |
Correct |
11 ms |
58596 KB |
Output is correct |
61 |
Correct |
8 ms |
58456 KB |
Output is correct |
62 |
Correct |
9 ms |
58572 KB |
Output is correct |
63 |
Correct |
9 ms |
58716 KB |
Output is correct |
64 |
Correct |
9 ms |
58588 KB |
Output is correct |
65 |
Correct |
9 ms |
58812 KB |
Output is correct |
66 |
Correct |
9 ms |
58716 KB |
Output is correct |
67 |
Correct |
9 ms |
58820 KB |
Output is correct |
68 |
Correct |
10 ms |
58716 KB |
Output is correct |
69 |
Correct |
9 ms |
58716 KB |
Output is correct |
70 |
Correct |
8 ms |
58688 KB |
Output is correct |
71 |
Correct |
10 ms |
58456 KB |
Output is correct |
72 |
Correct |
9 ms |
58568 KB |
Output is correct |
73 |
Correct |
8 ms |
58660 KB |
Output is correct |
74 |
Correct |
11 ms |
58572 KB |
Output is correct |
75 |
Correct |
8 ms |
58456 KB |
Output is correct |
76 |
Correct |
8 ms |
58716 KB |
Output is correct |
77 |
Correct |
8 ms |
58680 KB |
Output is correct |
78 |
Correct |
8 ms |
58592 KB |
Output is correct |
79 |
Correct |
9 ms |
58716 KB |
Output is correct |
80 |
Correct |
7 ms |
57816 KB |
Output is correct |
81 |
Correct |
9 ms |
58200 KB |
Output is correct |
82 |
Correct |
8 ms |
58460 KB |
Output is correct |
83 |
Correct |
8 ms |
58296 KB |
Output is correct |
84 |
Correct |
9 ms |
58460 KB |
Output is correct |
85 |
Correct |
8 ms |
58316 KB |
Output is correct |
86 |
Correct |
11 ms |
58744 KB |
Output is correct |
87 |
Correct |
10 ms |
58812 KB |
Output is correct |
88 |
Correct |
11 ms |
58816 KB |
Output is correct |
89 |
Correct |
9 ms |
58636 KB |
Output is correct |
90 |
Correct |
9 ms |
57812 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
9 ms |
55644 KB |
Output is correct |
2 |
Correct |
10 ms |
55644 KB |
Output is correct |
3 |
Correct |
8 ms |
56156 KB |
Output is correct |
4 |
Correct |
20 ms |
66396 KB |
Output is correct |
5 |
Correct |
29 ms |
66348 KB |
Output is correct |
6 |
Correct |
13 ms |
58972 KB |
Output is correct |
7 |
Correct |
21 ms |
64856 KB |
Output is correct |
8 |
Correct |
30 ms |
65228 KB |
Output is correct |
9 |
Correct |
11 ms |
58460 KB |
Output is correct |
10 |
Correct |
19 ms |
60512 KB |
Output is correct |
11 |
Correct |
16 ms |
59484 KB |
Output is correct |
12 |
Correct |
9 ms |
57948 KB |
Output is correct |
13 |
Correct |
12 ms |
58204 KB |
Output is correct |
14 |
Correct |
12 ms |
58344 KB |
Output is correct |
15 |
Correct |
19 ms |
66016 KB |
Output is correct |
16 |
Correct |
18 ms |
65628 KB |
Output is correct |
17 |
Correct |
21 ms |
65624 KB |
Output is correct |
18 |
Correct |
30 ms |
66388 KB |
Output is correct |
19 |
Correct |
19 ms |
66396 KB |
Output is correct |
20 |
Correct |
19 ms |
66396 KB |
Output is correct |
21 |
Correct |
19 ms |
66392 KB |
Output is correct |
22 |
Correct |
19 ms |
66552 KB |
Output is correct |
23 |
Correct |
33 ms |
66392 KB |
Output is correct |
24 |
Correct |
20 ms |
66392 KB |
Output is correct |
25 |
Correct |
30 ms |
66396 KB |
Output is correct |
26 |
Correct |
20 ms |
64832 KB |
Output is correct |
27 |
Correct |
19 ms |
64860 KB |
Output is correct |
28 |
Correct |
18 ms |
64880 KB |
Output is correct |
29 |
Correct |
21 ms |
64680 KB |
Output is correct |
30 |
Correct |
18 ms |
66136 KB |
Output is correct |
31 |
Correct |
20 ms |
65884 KB |
Output is correct |
32 |
Correct |
22 ms |
66376 KB |
Output is correct |
33 |
Correct |
19 ms |
65628 KB |
Output is correct |
34 |
Correct |
17 ms |
65536 KB |
Output is correct |
35 |
Correct |
28 ms |
65624 KB |
Output is correct |
36 |
Correct |
9 ms |
58204 KB |
Output is correct |
37 |
Correct |
16 ms |
63500 KB |
Output is correct |
38 |
Correct |
15 ms |
63064 KB |
Output is correct |
39 |
Correct |
17 ms |
63096 KB |
Output is correct |
40 |
Correct |
19 ms |
63412 KB |
Output is correct |
41 |
Correct |
16 ms |
63064 KB |
Output is correct |
42 |
Correct |
23 ms |
66396 KB |
Output is correct |
43 |
Correct |
21 ms |
66392 KB |
Output is correct |
44 |
Correct |
23 ms |
66392 KB |
Output is correct |
45 |
Correct |
23 ms |
66392 KB |
Output is correct |
46 |
Correct |
10 ms |
58972 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
9 ms |
55644 KB |
Output is correct |
2 |
Correct |
10 ms |
55644 KB |
Output is correct |
3 |
Correct |
8 ms |
55900 KB |
Output is correct |
4 |
Correct |
10 ms |
56156 KB |
Output is correct |
5 |
Correct |
8 ms |
55900 KB |
Output is correct |
6 |
Correct |
8 ms |
55936 KB |
Output is correct |
7 |
Correct |
9 ms |
55824 KB |
Output is correct |
8 |
Correct |
10 ms |
55900 KB |
Output is correct |
9 |
Correct |
9 ms |
55816 KB |
Output is correct |
10 |
Correct |
8 ms |
55872 KB |
Output is correct |
11 |
Correct |
8 ms |
55644 KB |
Output is correct |
12 |
Correct |
9 ms |
55828 KB |
Output is correct |
13 |
Correct |
8 ms |
55644 KB |
Output is correct |
14 |
Correct |
8 ms |
55768 KB |
Output is correct |
15 |
Correct |
10 ms |
56000 KB |
Output is correct |
16 |
Correct |
8 ms |
55900 KB |
Output is correct |
17 |
Correct |
7 ms |
56076 KB |
Output is correct |
18 |
Correct |
8 ms |
56152 KB |
Output is correct |
19 |
Correct |
8 ms |
56156 KB |
Output is correct |
20 |
Correct |
10 ms |
56156 KB |
Output is correct |
21 |
Correct |
10 ms |
56152 KB |
Output is correct |
22 |
Correct |
8 ms |
56156 KB |
Output is correct |
23 |
Correct |
8 ms |
56152 KB |
Output is correct |
24 |
Correct |
8 ms |
56052 KB |
Output is correct |
25 |
Correct |
9 ms |
56088 KB |
Output is correct |
26 |
Correct |
9 ms |
56148 KB |
Output is correct |
27 |
Correct |
7 ms |
56140 KB |
Output is correct |
28 |
Correct |
9 ms |
56136 KB |
Output is correct |
29 |
Correct |
8 ms |
55900 KB |
Output is correct |
30 |
Correct |
8 ms |
56156 KB |
Output is correct |
31 |
Correct |
10 ms |
56016 KB |
Output is correct |
32 |
Correct |
8 ms |
55900 KB |
Output is correct |
33 |
Correct |
10 ms |
56052 KB |
Output is correct |
34 |
Correct |
8 ms |
55900 KB |
Output is correct |
35 |
Correct |
10 ms |
55900 KB |
Output is correct |
36 |
Correct |
9 ms |
55744 KB |
Output is correct |
37 |
Correct |
10 ms |
55900 KB |
Output is correct |
38 |
Correct |
9 ms |
56020 KB |
Output is correct |
39 |
Correct |
8 ms |
55900 KB |
Output is correct |
40 |
Correct |
7 ms |
56028 KB |
Output is correct |
41 |
Correct |
10 ms |
55900 KB |
Output is correct |
42 |
Correct |
7 ms |
56024 KB |
Output is correct |
43 |
Correct |
8 ms |
56156 KB |
Output is correct |
44 |
Correct |
10 ms |
56172 KB |
Output is correct |
45 |
Correct |
7 ms |
56156 KB |
Output is correct |
46 |
Correct |
7 ms |
55900 KB |
Output is correct |
47 |
Correct |
10 ms |
55900 KB |
Output is correct |
48 |
Correct |
8 ms |
58276 KB |
Output is correct |
49 |
Correct |
10 ms |
58200 KB |
Output is correct |
50 |
Correct |
9 ms |
57768 KB |
Output is correct |
51 |
Correct |
8 ms |
58204 KB |
Output is correct |
52 |
Correct |
8 ms |
57928 KB |
Output is correct |
53 |
Correct |
8 ms |
55644 KB |
Output is correct |
54 |
Correct |
8 ms |
57876 KB |
Output is correct |
55 |
Correct |
7 ms |
57692 KB |
Output is correct |
56 |
Correct |
8 ms |
57692 KB |
Output is correct |
57 |
Correct |
8 ms |
57948 KB |
Output is correct |
58 |
Correct |
8 ms |
57948 KB |
Output is correct |
59 |
Correct |
8 ms |
58724 KB |
Output is correct |
60 |
Correct |
11 ms |
58596 KB |
Output is correct |
61 |
Correct |
8 ms |
58456 KB |
Output is correct |
62 |
Correct |
9 ms |
58572 KB |
Output is correct |
63 |
Correct |
9 ms |
58716 KB |
Output is correct |
64 |
Correct |
9 ms |
58588 KB |
Output is correct |
65 |
Correct |
9 ms |
58812 KB |
Output is correct |
66 |
Correct |
9 ms |
58716 KB |
Output is correct |
67 |
Correct |
9 ms |
58820 KB |
Output is correct |
68 |
Correct |
10 ms |
58716 KB |
Output is correct |
69 |
Correct |
9 ms |
58716 KB |
Output is correct |
70 |
Correct |
8 ms |
58688 KB |
Output is correct |
71 |
Correct |
10 ms |
58456 KB |
Output is correct |
72 |
Correct |
9 ms |
58568 KB |
Output is correct |
73 |
Correct |
8 ms |
58660 KB |
Output is correct |
74 |
Correct |
11 ms |
58572 KB |
Output is correct |
75 |
Correct |
8 ms |
58456 KB |
Output is correct |
76 |
Correct |
8 ms |
58716 KB |
Output is correct |
77 |
Correct |
8 ms |
58680 KB |
Output is correct |
78 |
Correct |
8 ms |
58592 KB |
Output is correct |
79 |
Correct |
9 ms |
58716 KB |
Output is correct |
80 |
Correct |
7 ms |
57816 KB |
Output is correct |
81 |
Correct |
9 ms |
58200 KB |
Output is correct |
82 |
Correct |
8 ms |
58460 KB |
Output is correct |
83 |
Correct |
8 ms |
58296 KB |
Output is correct |
84 |
Correct |
9 ms |
58460 KB |
Output is correct |
85 |
Correct |
8 ms |
58316 KB |
Output is correct |
86 |
Correct |
11 ms |
58744 KB |
Output is correct |
87 |
Correct |
10 ms |
58812 KB |
Output is correct |
88 |
Correct |
11 ms |
58816 KB |
Output is correct |
89 |
Correct |
9 ms |
58636 KB |
Output is correct |
90 |
Correct |
9 ms |
57812 KB |
Output is correct |
91 |
Correct |
8 ms |
56156 KB |
Output is correct |
92 |
Correct |
20 ms |
66396 KB |
Output is correct |
93 |
Correct |
29 ms |
66348 KB |
Output is correct |
94 |
Correct |
13 ms |
58972 KB |
Output is correct |
95 |
Correct |
21 ms |
64856 KB |
Output is correct |
96 |
Correct |
30 ms |
65228 KB |
Output is correct |
97 |
Correct |
11 ms |
58460 KB |
Output is correct |
98 |
Correct |
19 ms |
60512 KB |
Output is correct |
99 |
Correct |
16 ms |
59484 KB |
Output is correct |
100 |
Correct |
9 ms |
57948 KB |
Output is correct |
101 |
Correct |
12 ms |
58204 KB |
Output is correct |
102 |
Correct |
12 ms |
58344 KB |
Output is correct |
103 |
Correct |
19 ms |
66016 KB |
Output is correct |
104 |
Correct |
18 ms |
65628 KB |
Output is correct |
105 |
Correct |
21 ms |
65624 KB |
Output is correct |
106 |
Correct |
30 ms |
66388 KB |
Output is correct |
107 |
Correct |
19 ms |
66396 KB |
Output is correct |
108 |
Correct |
19 ms |
66396 KB |
Output is correct |
109 |
Correct |
19 ms |
66392 KB |
Output is correct |
110 |
Correct |
19 ms |
66552 KB |
Output is correct |
111 |
Correct |
33 ms |
66392 KB |
Output is correct |
112 |
Correct |
20 ms |
66392 KB |
Output is correct |
113 |
Correct |
30 ms |
66396 KB |
Output is correct |
114 |
Correct |
20 ms |
64832 KB |
Output is correct |
115 |
Correct |
19 ms |
64860 KB |
Output is correct |
116 |
Correct |
18 ms |
64880 KB |
Output is correct |
117 |
Correct |
21 ms |
64680 KB |
Output is correct |
118 |
Correct |
18 ms |
66136 KB |
Output is correct |
119 |
Correct |
20 ms |
65884 KB |
Output is correct |
120 |
Correct |
22 ms |
66376 KB |
Output is correct |
121 |
Correct |
19 ms |
65628 KB |
Output is correct |
122 |
Correct |
17 ms |
65536 KB |
Output is correct |
123 |
Correct |
28 ms |
65624 KB |
Output is correct |
124 |
Correct |
9 ms |
58204 KB |
Output is correct |
125 |
Correct |
16 ms |
63500 KB |
Output is correct |
126 |
Correct |
15 ms |
63064 KB |
Output is correct |
127 |
Correct |
17 ms |
63096 KB |
Output is correct |
128 |
Correct |
19 ms |
63412 KB |
Output is correct |
129 |
Correct |
16 ms |
63064 KB |
Output is correct |
130 |
Correct |
23 ms |
66396 KB |
Output is correct |
131 |
Correct |
21 ms |
66392 KB |
Output is correct |
132 |
Correct |
23 ms |
66392 KB |
Output is correct |
133 |
Correct |
23 ms |
66392 KB |
Output is correct |
134 |
Correct |
10 ms |
58972 KB |
Output is correct |
135 |
Correct |
18 ms |
59484 KB |
Output is correct |
136 |
Correct |
38 ms |
62932 KB |
Output is correct |
137 |
Correct |
42 ms |
60508 KB |
Output is correct |
138 |
Correct |
11 ms |
58460 KB |
Output is correct |
139 |
Correct |
19 ms |
58968 KB |
Output is correct |
140 |
Correct |
10 ms |
57784 KB |
Output is correct |
141 |
Correct |
9 ms |
57948 KB |
Output is correct |
142 |
Correct |
12 ms |
58124 KB |
Output is correct |
143 |
Correct |
13 ms |
57948 KB |
Output is correct |
144 |
Correct |
7 ms |
55900 KB |
Output is correct |
145 |
Correct |
14 ms |
58716 KB |
Output is correct |
146 |
Correct |
14 ms |
58648 KB |
Output is correct |
147 |
Correct |
46 ms |
68620 KB |
Output is correct |
148 |
Correct |
49 ms |
69272 KB |
Output is correct |
149 |
Correct |
45 ms |
68436 KB |
Output is correct |
150 |
Correct |
54 ms |
70224 KB |
Output is correct |
151 |
Correct |
56 ms |
70228 KB |
Output is correct |
152 |
Correct |
57 ms |
70228 KB |
Output is correct |
153 |
Correct |
53 ms |
70244 KB |
Output is correct |
154 |
Correct |
54 ms |
70252 KB |
Output is correct |
155 |
Correct |
56 ms |
70112 KB |
Output is correct |
156 |
Correct |
43 ms |
70424 KB |
Output is correct |
157 |
Correct |
41 ms |
70224 KB |
Output is correct |
158 |
Correct |
38 ms |
67920 KB |
Output is correct |
159 |
Correct |
38 ms |
67924 KB |
Output is correct |
160 |
Correct |
38 ms |
67932 KB |
Output is correct |
161 |
Correct |
40 ms |
67800 KB |
Output is correct |
162 |
Correct |
23 ms |
69212 KB |
Output is correct |
163 |
Correct |
23 ms |
68956 KB |
Output is correct |
164 |
Correct |
31 ms |
69724 KB |
Output is correct |
165 |
Correct |
23 ms |
68628 KB |
Output is correct |
166 |
Correct |
28 ms |
69660 KB |
Output is correct |
167 |
Correct |
25 ms |
68956 KB |
Output is correct |
168 |
Correct |
10 ms |
58200 KB |
Output is correct |
169 |
Correct |
33 ms |
65352 KB |
Output is correct |
170 |
Correct |
32 ms |
65616 KB |
Output is correct |
171 |
Correct |
31 ms |
65288 KB |
Output is correct |
172 |
Correct |
31 ms |
64860 KB |
Output is correct |
173 |
Correct |
31 ms |
65528 KB |
Output is correct |
174 |
Correct |
81 ms |
70136 KB |
Output is correct |
175 |
Correct |
79 ms |
70224 KB |
Output is correct |
176 |
Correct |
82 ms |
70060 KB |
Output is correct |
177 |
Correct |
84 ms |
70228 KB |
Output is correct |
178 |
Correct |
11 ms |
59224 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
9 ms |
55644 KB |
Output is correct |
2 |
Correct |
10 ms |
55644 KB |
Output is correct |
3 |
Correct |
8 ms |
55900 KB |
Output is correct |
4 |
Correct |
10 ms |
56156 KB |
Output is correct |
5 |
Correct |
8 ms |
55900 KB |
Output is correct |
6 |
Correct |
8 ms |
55936 KB |
Output is correct |
7 |
Correct |
9 ms |
55824 KB |
Output is correct |
8 |
Correct |
10 ms |
55900 KB |
Output is correct |
9 |
Correct |
9 ms |
55816 KB |
Output is correct |
10 |
Correct |
8 ms |
55872 KB |
Output is correct |
11 |
Correct |
8 ms |
55644 KB |
Output is correct |
12 |
Correct |
9 ms |
55828 KB |
Output is correct |
13 |
Correct |
8 ms |
55644 KB |
Output is correct |
14 |
Correct |
8 ms |
55768 KB |
Output is correct |
15 |
Correct |
10 ms |
56000 KB |
Output is correct |
16 |
Correct |
8 ms |
55900 KB |
Output is correct |
17 |
Correct |
7 ms |
56076 KB |
Output is correct |
18 |
Correct |
8 ms |
56152 KB |
Output is correct |
19 |
Correct |
8 ms |
56156 KB |
Output is correct |
20 |
Correct |
10 ms |
56156 KB |
Output is correct |
21 |
Correct |
10 ms |
56152 KB |
Output is correct |
22 |
Correct |
8 ms |
56156 KB |
Output is correct |
23 |
Correct |
8 ms |
56152 KB |
Output is correct |
24 |
Correct |
8 ms |
56052 KB |
Output is correct |
25 |
Correct |
9 ms |
56088 KB |
Output is correct |
26 |
Correct |
9 ms |
56148 KB |
Output is correct |
27 |
Correct |
7 ms |
56140 KB |
Output is correct |
28 |
Correct |
9 ms |
56136 KB |
Output is correct |
29 |
Correct |
8 ms |
55900 KB |
Output is correct |
30 |
Correct |
8 ms |
56156 KB |
Output is correct |
31 |
Correct |
10 ms |
56016 KB |
Output is correct |
32 |
Correct |
8 ms |
55900 KB |
Output is correct |
33 |
Correct |
10 ms |
56052 KB |
Output is correct |
34 |
Correct |
8 ms |
55900 KB |
Output is correct |
35 |
Correct |
10 ms |
55900 KB |
Output is correct |
36 |
Correct |
9 ms |
55744 KB |
Output is correct |
37 |
Correct |
10 ms |
55900 KB |
Output is correct |
38 |
Correct |
9 ms |
56020 KB |
Output is correct |
39 |
Correct |
8 ms |
55900 KB |
Output is correct |
40 |
Correct |
7 ms |
56028 KB |
Output is correct |
41 |
Correct |
10 ms |
55900 KB |
Output is correct |
42 |
Correct |
7 ms |
56024 KB |
Output is correct |
43 |
Correct |
8 ms |
56156 KB |
Output is correct |
44 |
Correct |
10 ms |
56172 KB |
Output is correct |
45 |
Correct |
7 ms |
56156 KB |
Output is correct |
46 |
Correct |
7 ms |
55900 KB |
Output is correct |
47 |
Correct |
10 ms |
55900 KB |
Output is correct |
48 |
Correct |
8 ms |
58276 KB |
Output is correct |
49 |
Correct |
10 ms |
58200 KB |
Output is correct |
50 |
Correct |
9 ms |
57768 KB |
Output is correct |
51 |
Correct |
8 ms |
58204 KB |
Output is correct |
52 |
Correct |
8 ms |
57928 KB |
Output is correct |
53 |
Correct |
8 ms |
55644 KB |
Output is correct |
54 |
Correct |
8 ms |
57876 KB |
Output is correct |
55 |
Correct |
7 ms |
57692 KB |
Output is correct |
56 |
Correct |
8 ms |
57692 KB |
Output is correct |
57 |
Correct |
8 ms |
57948 KB |
Output is correct |
58 |
Correct |
8 ms |
57948 KB |
Output is correct |
59 |
Correct |
8 ms |
58724 KB |
Output is correct |
60 |
Correct |
11 ms |
58596 KB |
Output is correct |
61 |
Correct |
8 ms |
58456 KB |
Output is correct |
62 |
Correct |
9 ms |
58572 KB |
Output is correct |
63 |
Correct |
9 ms |
58716 KB |
Output is correct |
64 |
Correct |
9 ms |
58588 KB |
Output is correct |
65 |
Correct |
9 ms |
58812 KB |
Output is correct |
66 |
Correct |
9 ms |
58716 KB |
Output is correct |
67 |
Correct |
9 ms |
58820 KB |
Output is correct |
68 |
Correct |
10 ms |
58716 KB |
Output is correct |
69 |
Correct |
9 ms |
58716 KB |
Output is correct |
70 |
Correct |
8 ms |
58688 KB |
Output is correct |
71 |
Correct |
10 ms |
58456 KB |
Output is correct |
72 |
Correct |
9 ms |
58568 KB |
Output is correct |
73 |
Correct |
8 ms |
58660 KB |
Output is correct |
74 |
Correct |
11 ms |
58572 KB |
Output is correct |
75 |
Correct |
8 ms |
58456 KB |
Output is correct |
76 |
Correct |
8 ms |
58716 KB |
Output is correct |
77 |
Correct |
8 ms |
58680 KB |
Output is correct |
78 |
Correct |
8 ms |
58592 KB |
Output is correct |
79 |
Correct |
9 ms |
58716 KB |
Output is correct |
80 |
Correct |
7 ms |
57816 KB |
Output is correct |
81 |
Correct |
9 ms |
58200 KB |
Output is correct |
82 |
Correct |
8 ms |
58460 KB |
Output is correct |
83 |
Correct |
8 ms |
58296 KB |
Output is correct |
84 |
Correct |
9 ms |
58460 KB |
Output is correct |
85 |
Correct |
8 ms |
58316 KB |
Output is correct |
86 |
Correct |
11 ms |
58744 KB |
Output is correct |
87 |
Correct |
10 ms |
58812 KB |
Output is correct |
88 |
Correct |
11 ms |
58816 KB |
Output is correct |
89 |
Correct |
9 ms |
58636 KB |
Output is correct |
90 |
Correct |
9 ms |
57812 KB |
Output is correct |
91 |
Correct |
8 ms |
56156 KB |
Output is correct |
92 |
Correct |
20 ms |
66396 KB |
Output is correct |
93 |
Correct |
29 ms |
66348 KB |
Output is correct |
94 |
Correct |
13 ms |
58972 KB |
Output is correct |
95 |
Correct |
21 ms |
64856 KB |
Output is correct |
96 |
Correct |
30 ms |
65228 KB |
Output is correct |
97 |
Correct |
11 ms |
58460 KB |
Output is correct |
98 |
Correct |
19 ms |
60512 KB |
Output is correct |
99 |
Correct |
16 ms |
59484 KB |
Output is correct |
100 |
Correct |
9 ms |
57948 KB |
Output is correct |
101 |
Correct |
12 ms |
58204 KB |
Output is correct |
102 |
Correct |
12 ms |
58344 KB |
Output is correct |
103 |
Correct |
19 ms |
66016 KB |
Output is correct |
104 |
Correct |
18 ms |
65628 KB |
Output is correct |
105 |
Correct |
21 ms |
65624 KB |
Output is correct |
106 |
Correct |
30 ms |
66388 KB |
Output is correct |
107 |
Correct |
19 ms |
66396 KB |
Output is correct |
108 |
Correct |
19 ms |
66396 KB |
Output is correct |
109 |
Correct |
19 ms |
66392 KB |
Output is correct |
110 |
Correct |
19 ms |
66552 KB |
Output is correct |
111 |
Correct |
33 ms |
66392 KB |
Output is correct |
112 |
Correct |
20 ms |
66392 KB |
Output is correct |
113 |
Correct |
30 ms |
66396 KB |
Output is correct |
114 |
Correct |
20 ms |
64832 KB |
Output is correct |
115 |
Correct |
19 ms |
64860 KB |
Output is correct |
116 |
Correct |
18 ms |
64880 KB |
Output is correct |
117 |
Correct |
21 ms |
64680 KB |
Output is correct |
118 |
Correct |
18 ms |
66136 KB |
Output is correct |
119 |
Correct |
20 ms |
65884 KB |
Output is correct |
120 |
Correct |
22 ms |
66376 KB |
Output is correct |
121 |
Correct |
19 ms |
65628 KB |
Output is correct |
122 |
Correct |
17 ms |
65536 KB |
Output is correct |
123 |
Correct |
28 ms |
65624 KB |
Output is correct |
124 |
Correct |
9 ms |
58204 KB |
Output is correct |
125 |
Correct |
16 ms |
63500 KB |
Output is correct |
126 |
Correct |
15 ms |
63064 KB |
Output is correct |
127 |
Correct |
17 ms |
63096 KB |
Output is correct |
128 |
Correct |
19 ms |
63412 KB |
Output is correct |
129 |
Correct |
16 ms |
63064 KB |
Output is correct |
130 |
Correct |
23 ms |
66396 KB |
Output is correct |
131 |
Correct |
21 ms |
66392 KB |
Output is correct |
132 |
Correct |
23 ms |
66392 KB |
Output is correct |
133 |
Correct |
23 ms |
66392 KB |
Output is correct |
134 |
Correct |
10 ms |
58972 KB |
Output is correct |
135 |
Correct |
18 ms |
59484 KB |
Output is correct |
136 |
Correct |
38 ms |
62932 KB |
Output is correct |
137 |
Correct |
42 ms |
60508 KB |
Output is correct |
138 |
Correct |
11 ms |
58460 KB |
Output is correct |
139 |
Correct |
19 ms |
58968 KB |
Output is correct |
140 |
Correct |
10 ms |
57784 KB |
Output is correct |
141 |
Correct |
9 ms |
57948 KB |
Output is correct |
142 |
Correct |
12 ms |
58124 KB |
Output is correct |
143 |
Correct |
13 ms |
57948 KB |
Output is correct |
144 |
Correct |
7 ms |
55900 KB |
Output is correct |
145 |
Correct |
14 ms |
58716 KB |
Output is correct |
146 |
Correct |
14 ms |
58648 KB |
Output is correct |
147 |
Correct |
46 ms |
68620 KB |
Output is correct |
148 |
Correct |
49 ms |
69272 KB |
Output is correct |
149 |
Correct |
45 ms |
68436 KB |
Output is correct |
150 |
Correct |
54 ms |
70224 KB |
Output is correct |
151 |
Correct |
56 ms |
70228 KB |
Output is correct |
152 |
Correct |
57 ms |
70228 KB |
Output is correct |
153 |
Correct |
53 ms |
70244 KB |
Output is correct |
154 |
Correct |
54 ms |
70252 KB |
Output is correct |
155 |
Correct |
56 ms |
70112 KB |
Output is correct |
156 |
Correct |
43 ms |
70424 KB |
Output is correct |
157 |
Correct |
41 ms |
70224 KB |
Output is correct |
158 |
Correct |
38 ms |
67920 KB |
Output is correct |
159 |
Correct |
38 ms |
67924 KB |
Output is correct |
160 |
Correct |
38 ms |
67932 KB |
Output is correct |
161 |
Correct |
40 ms |
67800 KB |
Output is correct |
162 |
Correct |
23 ms |
69212 KB |
Output is correct |
163 |
Correct |
23 ms |
68956 KB |
Output is correct |
164 |
Correct |
31 ms |
69724 KB |
Output is correct |
165 |
Correct |
23 ms |
68628 KB |
Output is correct |
166 |
Correct |
28 ms |
69660 KB |
Output is correct |
167 |
Correct |
25 ms |
68956 KB |
Output is correct |
168 |
Correct |
10 ms |
58200 KB |
Output is correct |
169 |
Correct |
33 ms |
65352 KB |
Output is correct |
170 |
Correct |
32 ms |
65616 KB |
Output is correct |
171 |
Correct |
31 ms |
65288 KB |
Output is correct |
172 |
Correct |
31 ms |
64860 KB |
Output is correct |
173 |
Correct |
31 ms |
65528 KB |
Output is correct |
174 |
Correct |
81 ms |
70136 KB |
Output is correct |
175 |
Correct |
79 ms |
70224 KB |
Output is correct |
176 |
Correct |
82 ms |
70060 KB |
Output is correct |
177 |
Correct |
84 ms |
70228 KB |
Output is correct |
178 |
Correct |
11 ms |
59224 KB |
Output is correct |
179 |
Correct |
164 ms |
79684 KB |
Output is correct |
180 |
Correct |
1139 ms |
93264 KB |
Output is correct |
181 |
Correct |
338 ms |
60756 KB |
Output is correct |
182 |
Correct |
23 ms |
57948 KB |
Output is correct |
183 |
Correct |
94 ms |
58316 KB |
Output is correct |
184 |
Correct |
70 ms |
58200 KB |
Output is correct |
185 |
Correct |
101 ms |
59996 KB |
Output is correct |
186 |
Correct |
133 ms |
61276 KB |
Output is correct |
187 |
Correct |
129 ms |
61272 KB |
Output is correct |
188 |
Correct |
83 ms |
62548 KB |
Output is correct |
189 |
Correct |
159 ms |
70992 KB |
Output is correct |
190 |
Correct |
167 ms |
70992 KB |
Output is correct |
191 |
Execution timed out |
1595 ms |
135704 KB |
Time limit exceeded |
192 |
Halted |
0 ms |
0 KB |
- |