# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1062204 |
2024-08-16T21:27:02 Z |
beaconmc |
Toy (CEOI24_toy) |
C++14 |
|
29 ms |
38316 KB |
#include <bits/stdc++.h>
typedef long long ll;
#define FOR(i,x,y) for(ll i=x; i<y; i++)
#define FORNEG(i,x,y) for(ll i=x; i>y; i--)
using namespace std;
ll grid[2000][2000];
vector<ll> rows[2000];
vector<ll> cols[2000];
bool visited[2000][2000];
ll rowdist(ll a, ll b, ll c){
ll sus = upper_bound(rows[a].begin(), rows[a].end(), b) - rows[a].begin();
ll sus2 = upper_bound(rows[c].begin(), rows[c].end(), b) - rows[c].begin();
ll left = max(rows[a][sus-1], rows[c][sus2-1]);
ll right = min(rows[a][sus], rows[c][sus2]);
ll ans = 1;
ans += right-b-1;
ans += b-left-1;
return ans;
}
ll coldist(ll a, ll b, ll c){
ll sus = upper_bound(cols[b].begin(), cols[b].end(), a) - cols[b].begin();
ll sus2 = upper_bound(cols[c].begin(), cols[c].end(), a) - cols[c].begin();
ll left = max(cols[b][sus-1], cols[c][sus2-1]);
ll right = min(cols[b][sus], cols[c][sus2]);
ll ans = 1;
ans += right-a-1;
ans += a-left-1;
return ans;
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
FOR(i,0,2000) rows[i].clear(), cols[i].clear();
FOR(i,0,2000) FOR(j,0,2000) grid[i][j] = 0, visited[i][j] = 0;
ll w,h,k,l;
cin >> w >> h >> k >> l;
ll a,b,c,d;
cin >> a >> b >> c >> d;
a = b; b = c;
ll x,y;
FOR(i,0,h){
string temp;
cin >> temp;
FOR(j,0,w){
visited[i][j] = 0;
grid[i][j] = temp[j];
if (grid[i][j] == 'X'){
rows[i].push_back(j);
cols[j].push_back(i);
}
if (grid[i][j] == '*'){
x=i;
y=j;
}
}
}
FOR(i,0,h) rows[i].push_back(-1), rows[i].push_back(w), sort(rows[i].begin(), rows[i].end());
FOR(i,0,w) cols[i].push_back(-1), cols[i].push_back(h), sort(cols[i].begin(), cols[i].end());
// FOR(i,0,h){
// FOR(j,0,w){
// cout << (char) grid[i][j];
// }
// cout << endl;
// }
bool flag = false;
vector<vector<ll>> stack;
stack.push_back({a,b});
visited[a][b] = true;
while (stack.size()){
vector<ll> node = stack[stack.size()-1];
if (node[0] == x && node[1] == y){
flag = true;
break;
}
stack.pop_back();
vector<vector<ll>> nxt = {{node[0], node[1]+1},{node[0], node[1]-1}};
vector<vector<ll>> nxt2 = {{node[0]+1, node[1]},{node[0]-1, node[1]}};
for (auto&i : nxt){
if (0<=i[0] && i[0] < h && 0<=i[1] && i[1] < w && grid[i[0]][i[1]] != 'X' && !visited[i[0]][i[1]]){
visited[i[0]][i[1]] = 1;
if (coldist(i[0], i[1], node[1]) < l) continue;
stack.push_back({i[0], i[1]});
}
}
for (auto&i : nxt2){
if (0<=i[0] && i[0] < h && 0<=i[1] && i[1] < w && grid[i[0]][i[1]] != 'X' && !visited[i[0]][i[1]]){
visited[i[0]][i[1]] = 1;
if (rowdist(i[0], i[1], node[0]) < k) continue;
stack.push_back({i[0], i[1]});
}
}
}
if (flag) cout << "YES";
else cout << "NO";
}
Compilation message
Main.cpp: In function 'int main()':
Main.cpp:108:20: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
108 | if (node[0] == x && node[1] == y){
Main.cpp:108:20: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
35676 KB |
Output is correct |
2 |
Correct |
4 ms |
35676 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
35676 KB |
Output is correct |
2 |
Correct |
4 ms |
35676 KB |
Output is correct |
3 |
Correct |
4 ms |
35676 KB |
Output is correct |
4 |
Correct |
5 ms |
35800 KB |
Output is correct |
5 |
Correct |
5 ms |
35672 KB |
Output is correct |
6 |
Correct |
4 ms |
35676 KB |
Output is correct |
7 |
Correct |
4 ms |
35676 KB |
Output is correct |
8 |
Correct |
4 ms |
35676 KB |
Output is correct |
9 |
Correct |
4 ms |
35676 KB |
Output is correct |
10 |
Correct |
5 ms |
35676 KB |
Output is correct |
11 |
Correct |
4 ms |
35548 KB |
Output is correct |
12 |
Correct |
5 ms |
35676 KB |
Output is correct |
13 |
Correct |
5 ms |
35676 KB |
Output is correct |
14 |
Correct |
4 ms |
35676 KB |
Output is correct |
15 |
Correct |
5 ms |
35676 KB |
Output is correct |
16 |
Correct |
4 ms |
35676 KB |
Output is correct |
17 |
Correct |
5 ms |
35676 KB |
Output is correct |
18 |
Correct |
5 ms |
35712 KB |
Output is correct |
19 |
Correct |
5 ms |
35676 KB |
Output is correct |
20 |
Correct |
5 ms |
35676 KB |
Output is correct |
21 |
Correct |
5 ms |
35676 KB |
Output is correct |
22 |
Correct |
4 ms |
35836 KB |
Output is correct |
23 |
Correct |
5 ms |
35676 KB |
Output is correct |
24 |
Correct |
4 ms |
35676 KB |
Output is correct |
25 |
Correct |
5 ms |
35676 KB |
Output is correct |
26 |
Correct |
4 ms |
35596 KB |
Output is correct |
27 |
Correct |
5 ms |
35672 KB |
Output is correct |
28 |
Correct |
5 ms |
35676 KB |
Output is correct |
29 |
Correct |
5 ms |
35672 KB |
Output is correct |
30 |
Correct |
4 ms |
35676 KB |
Output is correct |
31 |
Correct |
4 ms |
35604 KB |
Output is correct |
32 |
Correct |
4 ms |
35676 KB |
Output is correct |
33 |
Correct |
4 ms |
35676 KB |
Output is correct |
34 |
Correct |
4 ms |
35676 KB |
Output is correct |
35 |
Correct |
5 ms |
35676 KB |
Output is correct |
36 |
Correct |
4 ms |
35676 KB |
Output is correct |
37 |
Correct |
4 ms |
35676 KB |
Output is correct |
38 |
Correct |
4 ms |
35672 KB |
Output is correct |
39 |
Correct |
4 ms |
35676 KB |
Output is correct |
40 |
Correct |
4 ms |
35676 KB |
Output is correct |
41 |
Correct |
4 ms |
35580 KB |
Output is correct |
42 |
Correct |
4 ms |
35676 KB |
Output is correct |
43 |
Correct |
4 ms |
35840 KB |
Output is correct |
44 |
Correct |
4 ms |
35676 KB |
Output is correct |
45 |
Correct |
4 ms |
35676 KB |
Output is correct |
46 |
Correct |
4 ms |
35672 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
35676 KB |
Output is correct |
2 |
Correct |
4 ms |
35676 KB |
Output is correct |
3 |
Correct |
4 ms |
35676 KB |
Output is correct |
4 |
Correct |
5 ms |
35800 KB |
Output is correct |
5 |
Correct |
5 ms |
35672 KB |
Output is correct |
6 |
Correct |
4 ms |
35676 KB |
Output is correct |
7 |
Correct |
4 ms |
35676 KB |
Output is correct |
8 |
Correct |
4 ms |
35676 KB |
Output is correct |
9 |
Correct |
4 ms |
35676 KB |
Output is correct |
10 |
Correct |
5 ms |
35676 KB |
Output is correct |
11 |
Correct |
4 ms |
35548 KB |
Output is correct |
12 |
Correct |
5 ms |
35676 KB |
Output is correct |
13 |
Correct |
5 ms |
35676 KB |
Output is correct |
14 |
Correct |
4 ms |
35676 KB |
Output is correct |
15 |
Correct |
5 ms |
35676 KB |
Output is correct |
16 |
Correct |
4 ms |
35676 KB |
Output is correct |
17 |
Correct |
5 ms |
35676 KB |
Output is correct |
18 |
Correct |
5 ms |
35712 KB |
Output is correct |
19 |
Correct |
5 ms |
35676 KB |
Output is correct |
20 |
Correct |
5 ms |
35676 KB |
Output is correct |
21 |
Correct |
5 ms |
35676 KB |
Output is correct |
22 |
Correct |
4 ms |
35836 KB |
Output is correct |
23 |
Correct |
5 ms |
35676 KB |
Output is correct |
24 |
Correct |
4 ms |
35676 KB |
Output is correct |
25 |
Correct |
5 ms |
35676 KB |
Output is correct |
26 |
Correct |
4 ms |
35596 KB |
Output is correct |
27 |
Correct |
5 ms |
35672 KB |
Output is correct |
28 |
Correct |
5 ms |
35676 KB |
Output is correct |
29 |
Correct |
5 ms |
35672 KB |
Output is correct |
30 |
Correct |
4 ms |
35676 KB |
Output is correct |
31 |
Correct |
4 ms |
35604 KB |
Output is correct |
32 |
Correct |
4 ms |
35676 KB |
Output is correct |
33 |
Correct |
4 ms |
35676 KB |
Output is correct |
34 |
Correct |
4 ms |
35676 KB |
Output is correct |
35 |
Correct |
5 ms |
35676 KB |
Output is correct |
36 |
Correct |
4 ms |
35676 KB |
Output is correct |
37 |
Correct |
4 ms |
35676 KB |
Output is correct |
38 |
Correct |
4 ms |
35672 KB |
Output is correct |
39 |
Correct |
4 ms |
35676 KB |
Output is correct |
40 |
Correct |
4 ms |
35676 KB |
Output is correct |
41 |
Correct |
4 ms |
35580 KB |
Output is correct |
42 |
Correct |
4 ms |
35676 KB |
Output is correct |
43 |
Correct |
4 ms |
35840 KB |
Output is correct |
44 |
Correct |
4 ms |
35676 KB |
Output is correct |
45 |
Correct |
4 ms |
35676 KB |
Output is correct |
46 |
Correct |
4 ms |
35672 KB |
Output is correct |
47 |
Correct |
6 ms |
35676 KB |
Output is correct |
48 |
Correct |
5 ms |
35676 KB |
Output is correct |
49 |
Correct |
4 ms |
35676 KB |
Output is correct |
50 |
Correct |
5 ms |
35672 KB |
Output is correct |
51 |
Correct |
5 ms |
35676 KB |
Output is correct |
52 |
Correct |
4 ms |
35676 KB |
Output is correct |
53 |
Correct |
4 ms |
35676 KB |
Output is correct |
54 |
Correct |
5 ms |
35776 KB |
Output is correct |
55 |
Correct |
5 ms |
35672 KB |
Output is correct |
56 |
Correct |
5 ms |
35672 KB |
Output is correct |
57 |
Correct |
6 ms |
35676 KB |
Output is correct |
58 |
Correct |
5 ms |
35676 KB |
Output is correct |
59 |
Correct |
6 ms |
35804 KB |
Output is correct |
60 |
Correct |
7 ms |
35932 KB |
Output is correct |
61 |
Correct |
6 ms |
35688 KB |
Output is correct |
62 |
Correct |
6 ms |
35932 KB |
Output is correct |
63 |
Correct |
6 ms |
35844 KB |
Output is correct |
64 |
Correct |
6 ms |
35932 KB |
Output is correct |
65 |
Correct |
5 ms |
35932 KB |
Output is correct |
66 |
Correct |
5 ms |
35932 KB |
Output is correct |
67 |
Correct |
5 ms |
35932 KB |
Output is correct |
68 |
Correct |
5 ms |
35932 KB |
Output is correct |
69 |
Correct |
5 ms |
35932 KB |
Output is correct |
70 |
Correct |
5 ms |
35844 KB |
Output is correct |
71 |
Correct |
5 ms |
35932 KB |
Output is correct |
72 |
Correct |
5 ms |
35928 KB |
Output is correct |
73 |
Correct |
5 ms |
35932 KB |
Output is correct |
74 |
Correct |
5 ms |
35932 KB |
Output is correct |
75 |
Correct |
5 ms |
35932 KB |
Output is correct |
76 |
Correct |
5 ms |
35824 KB |
Output is correct |
77 |
Correct |
6 ms |
35848 KB |
Output is correct |
78 |
Correct |
7 ms |
35932 KB |
Output is correct |
79 |
Correct |
5 ms |
35932 KB |
Output is correct |
80 |
Correct |
4 ms |
35676 KB |
Output is correct |
81 |
Correct |
5 ms |
35676 KB |
Output is correct |
82 |
Correct |
5 ms |
35676 KB |
Output is correct |
83 |
Correct |
5 ms |
35836 KB |
Output is correct |
84 |
Correct |
5 ms |
35676 KB |
Output is correct |
85 |
Correct |
4 ms |
35836 KB |
Output is correct |
86 |
Correct |
6 ms |
35932 KB |
Output is correct |
87 |
Correct |
6 ms |
35840 KB |
Output is correct |
88 |
Correct |
5 ms |
35932 KB |
Output is correct |
89 |
Correct |
7 ms |
35676 KB |
Output is correct |
90 |
Correct |
4 ms |
35932 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
35676 KB |
Output is correct |
2 |
Correct |
4 ms |
35676 KB |
Output is correct |
3 |
Correct |
5 ms |
35676 KB |
Output is correct |
4 |
Correct |
11 ms |
37236 KB |
Output is correct |
5 |
Correct |
13 ms |
37016 KB |
Output is correct |
6 |
Correct |
5 ms |
35828 KB |
Output is correct |
7 |
Correct |
10 ms |
36504 KB |
Output is correct |
8 |
Correct |
16 ms |
36936 KB |
Output is correct |
9 |
Correct |
4 ms |
35676 KB |
Output is correct |
10 |
Correct |
5 ms |
35932 KB |
Output is correct |
11 |
Correct |
5 ms |
35928 KB |
Output is correct |
12 |
Correct |
4 ms |
35932 KB |
Output is correct |
13 |
Correct |
5 ms |
36620 KB |
Output is correct |
14 |
Correct |
6 ms |
36440 KB |
Output is correct |
15 |
Correct |
20 ms |
38164 KB |
Output is correct |
16 |
Correct |
21 ms |
38152 KB |
Output is correct |
17 |
Correct |
25 ms |
38316 KB |
Output is correct |
18 |
Correct |
29 ms |
38164 KB |
Output is correct |
19 |
Correct |
22 ms |
38164 KB |
Output is correct |
20 |
Correct |
22 ms |
38164 KB |
Output is correct |
21 |
Correct |
16 ms |
38300 KB |
Output is correct |
22 |
Correct |
16 ms |
38252 KB |
Output is correct |
23 |
Correct |
15 ms |
38164 KB |
Output is correct |
24 |
Correct |
16 ms |
38160 KB |
Output is correct |
25 |
Correct |
15 ms |
38160 KB |
Output is correct |
26 |
Correct |
16 ms |
37140 KB |
Output is correct |
27 |
Correct |
19 ms |
37140 KB |
Output is correct |
28 |
Correct |
21 ms |
37280 KB |
Output is correct |
29 |
Correct |
14 ms |
37136 KB |
Output is correct |
30 |
Correct |
24 ms |
38164 KB |
Output is correct |
31 |
Correct |
23 ms |
38164 KB |
Output is correct |
32 |
Correct |
18 ms |
38164 KB |
Output is correct |
33 |
Correct |
25 ms |
38192 KB |
Output is correct |
34 |
Correct |
16 ms |
38160 KB |
Output is correct |
35 |
Incorrect |
20 ms |
38164 KB |
Output isn't correct |
36 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
35676 KB |
Output is correct |
2 |
Correct |
4 ms |
35676 KB |
Output is correct |
3 |
Correct |
4 ms |
35676 KB |
Output is correct |
4 |
Correct |
5 ms |
35800 KB |
Output is correct |
5 |
Correct |
5 ms |
35672 KB |
Output is correct |
6 |
Correct |
4 ms |
35676 KB |
Output is correct |
7 |
Correct |
4 ms |
35676 KB |
Output is correct |
8 |
Correct |
4 ms |
35676 KB |
Output is correct |
9 |
Correct |
4 ms |
35676 KB |
Output is correct |
10 |
Correct |
5 ms |
35676 KB |
Output is correct |
11 |
Correct |
4 ms |
35548 KB |
Output is correct |
12 |
Correct |
5 ms |
35676 KB |
Output is correct |
13 |
Correct |
5 ms |
35676 KB |
Output is correct |
14 |
Correct |
4 ms |
35676 KB |
Output is correct |
15 |
Correct |
5 ms |
35676 KB |
Output is correct |
16 |
Correct |
4 ms |
35676 KB |
Output is correct |
17 |
Correct |
5 ms |
35676 KB |
Output is correct |
18 |
Correct |
5 ms |
35712 KB |
Output is correct |
19 |
Correct |
5 ms |
35676 KB |
Output is correct |
20 |
Correct |
5 ms |
35676 KB |
Output is correct |
21 |
Correct |
5 ms |
35676 KB |
Output is correct |
22 |
Correct |
4 ms |
35836 KB |
Output is correct |
23 |
Correct |
5 ms |
35676 KB |
Output is correct |
24 |
Correct |
4 ms |
35676 KB |
Output is correct |
25 |
Correct |
5 ms |
35676 KB |
Output is correct |
26 |
Correct |
4 ms |
35596 KB |
Output is correct |
27 |
Correct |
5 ms |
35672 KB |
Output is correct |
28 |
Correct |
5 ms |
35676 KB |
Output is correct |
29 |
Correct |
5 ms |
35672 KB |
Output is correct |
30 |
Correct |
4 ms |
35676 KB |
Output is correct |
31 |
Correct |
4 ms |
35604 KB |
Output is correct |
32 |
Correct |
4 ms |
35676 KB |
Output is correct |
33 |
Correct |
4 ms |
35676 KB |
Output is correct |
34 |
Correct |
4 ms |
35676 KB |
Output is correct |
35 |
Correct |
5 ms |
35676 KB |
Output is correct |
36 |
Correct |
4 ms |
35676 KB |
Output is correct |
37 |
Correct |
4 ms |
35676 KB |
Output is correct |
38 |
Correct |
4 ms |
35672 KB |
Output is correct |
39 |
Correct |
4 ms |
35676 KB |
Output is correct |
40 |
Correct |
4 ms |
35676 KB |
Output is correct |
41 |
Correct |
4 ms |
35580 KB |
Output is correct |
42 |
Correct |
4 ms |
35676 KB |
Output is correct |
43 |
Correct |
4 ms |
35840 KB |
Output is correct |
44 |
Correct |
4 ms |
35676 KB |
Output is correct |
45 |
Correct |
4 ms |
35676 KB |
Output is correct |
46 |
Correct |
4 ms |
35672 KB |
Output is correct |
47 |
Correct |
6 ms |
35676 KB |
Output is correct |
48 |
Correct |
5 ms |
35676 KB |
Output is correct |
49 |
Correct |
4 ms |
35676 KB |
Output is correct |
50 |
Correct |
5 ms |
35672 KB |
Output is correct |
51 |
Correct |
5 ms |
35676 KB |
Output is correct |
52 |
Correct |
4 ms |
35676 KB |
Output is correct |
53 |
Correct |
4 ms |
35676 KB |
Output is correct |
54 |
Correct |
5 ms |
35776 KB |
Output is correct |
55 |
Correct |
5 ms |
35672 KB |
Output is correct |
56 |
Correct |
5 ms |
35672 KB |
Output is correct |
57 |
Correct |
6 ms |
35676 KB |
Output is correct |
58 |
Correct |
5 ms |
35676 KB |
Output is correct |
59 |
Correct |
6 ms |
35804 KB |
Output is correct |
60 |
Correct |
7 ms |
35932 KB |
Output is correct |
61 |
Correct |
6 ms |
35688 KB |
Output is correct |
62 |
Correct |
6 ms |
35932 KB |
Output is correct |
63 |
Correct |
6 ms |
35844 KB |
Output is correct |
64 |
Correct |
6 ms |
35932 KB |
Output is correct |
65 |
Correct |
5 ms |
35932 KB |
Output is correct |
66 |
Correct |
5 ms |
35932 KB |
Output is correct |
67 |
Correct |
5 ms |
35932 KB |
Output is correct |
68 |
Correct |
5 ms |
35932 KB |
Output is correct |
69 |
Correct |
5 ms |
35932 KB |
Output is correct |
70 |
Correct |
5 ms |
35844 KB |
Output is correct |
71 |
Correct |
5 ms |
35932 KB |
Output is correct |
72 |
Correct |
5 ms |
35928 KB |
Output is correct |
73 |
Correct |
5 ms |
35932 KB |
Output is correct |
74 |
Correct |
5 ms |
35932 KB |
Output is correct |
75 |
Correct |
5 ms |
35932 KB |
Output is correct |
76 |
Correct |
5 ms |
35824 KB |
Output is correct |
77 |
Correct |
6 ms |
35848 KB |
Output is correct |
78 |
Correct |
7 ms |
35932 KB |
Output is correct |
79 |
Correct |
5 ms |
35932 KB |
Output is correct |
80 |
Correct |
4 ms |
35676 KB |
Output is correct |
81 |
Correct |
5 ms |
35676 KB |
Output is correct |
82 |
Correct |
5 ms |
35676 KB |
Output is correct |
83 |
Correct |
5 ms |
35836 KB |
Output is correct |
84 |
Correct |
5 ms |
35676 KB |
Output is correct |
85 |
Correct |
4 ms |
35836 KB |
Output is correct |
86 |
Correct |
6 ms |
35932 KB |
Output is correct |
87 |
Correct |
6 ms |
35840 KB |
Output is correct |
88 |
Correct |
5 ms |
35932 KB |
Output is correct |
89 |
Correct |
7 ms |
35676 KB |
Output is correct |
90 |
Correct |
4 ms |
35932 KB |
Output is correct |
91 |
Correct |
5 ms |
35676 KB |
Output is correct |
92 |
Correct |
11 ms |
37236 KB |
Output is correct |
93 |
Correct |
13 ms |
37016 KB |
Output is correct |
94 |
Correct |
5 ms |
35828 KB |
Output is correct |
95 |
Correct |
10 ms |
36504 KB |
Output is correct |
96 |
Correct |
16 ms |
36936 KB |
Output is correct |
97 |
Correct |
4 ms |
35676 KB |
Output is correct |
98 |
Correct |
5 ms |
35932 KB |
Output is correct |
99 |
Correct |
5 ms |
35928 KB |
Output is correct |
100 |
Correct |
4 ms |
35932 KB |
Output is correct |
101 |
Correct |
5 ms |
36620 KB |
Output is correct |
102 |
Correct |
6 ms |
36440 KB |
Output is correct |
103 |
Correct |
20 ms |
38164 KB |
Output is correct |
104 |
Correct |
21 ms |
38152 KB |
Output is correct |
105 |
Correct |
25 ms |
38316 KB |
Output is correct |
106 |
Correct |
29 ms |
38164 KB |
Output is correct |
107 |
Correct |
22 ms |
38164 KB |
Output is correct |
108 |
Correct |
22 ms |
38164 KB |
Output is correct |
109 |
Correct |
16 ms |
38300 KB |
Output is correct |
110 |
Correct |
16 ms |
38252 KB |
Output is correct |
111 |
Correct |
15 ms |
38164 KB |
Output is correct |
112 |
Correct |
16 ms |
38160 KB |
Output is correct |
113 |
Correct |
15 ms |
38160 KB |
Output is correct |
114 |
Correct |
16 ms |
37140 KB |
Output is correct |
115 |
Correct |
19 ms |
37140 KB |
Output is correct |
116 |
Correct |
21 ms |
37280 KB |
Output is correct |
117 |
Correct |
14 ms |
37136 KB |
Output is correct |
118 |
Correct |
24 ms |
38164 KB |
Output is correct |
119 |
Correct |
23 ms |
38164 KB |
Output is correct |
120 |
Correct |
18 ms |
38164 KB |
Output is correct |
121 |
Correct |
25 ms |
38192 KB |
Output is correct |
122 |
Correct |
16 ms |
38160 KB |
Output is correct |
123 |
Incorrect |
20 ms |
38164 KB |
Output isn't correct |
124 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
35676 KB |
Output is correct |
2 |
Correct |
4 ms |
35676 KB |
Output is correct |
3 |
Correct |
4 ms |
35676 KB |
Output is correct |
4 |
Correct |
5 ms |
35800 KB |
Output is correct |
5 |
Correct |
5 ms |
35672 KB |
Output is correct |
6 |
Correct |
4 ms |
35676 KB |
Output is correct |
7 |
Correct |
4 ms |
35676 KB |
Output is correct |
8 |
Correct |
4 ms |
35676 KB |
Output is correct |
9 |
Correct |
4 ms |
35676 KB |
Output is correct |
10 |
Correct |
5 ms |
35676 KB |
Output is correct |
11 |
Correct |
4 ms |
35548 KB |
Output is correct |
12 |
Correct |
5 ms |
35676 KB |
Output is correct |
13 |
Correct |
5 ms |
35676 KB |
Output is correct |
14 |
Correct |
4 ms |
35676 KB |
Output is correct |
15 |
Correct |
5 ms |
35676 KB |
Output is correct |
16 |
Correct |
4 ms |
35676 KB |
Output is correct |
17 |
Correct |
5 ms |
35676 KB |
Output is correct |
18 |
Correct |
5 ms |
35712 KB |
Output is correct |
19 |
Correct |
5 ms |
35676 KB |
Output is correct |
20 |
Correct |
5 ms |
35676 KB |
Output is correct |
21 |
Correct |
5 ms |
35676 KB |
Output is correct |
22 |
Correct |
4 ms |
35836 KB |
Output is correct |
23 |
Correct |
5 ms |
35676 KB |
Output is correct |
24 |
Correct |
4 ms |
35676 KB |
Output is correct |
25 |
Correct |
5 ms |
35676 KB |
Output is correct |
26 |
Correct |
4 ms |
35596 KB |
Output is correct |
27 |
Correct |
5 ms |
35672 KB |
Output is correct |
28 |
Correct |
5 ms |
35676 KB |
Output is correct |
29 |
Correct |
5 ms |
35672 KB |
Output is correct |
30 |
Correct |
4 ms |
35676 KB |
Output is correct |
31 |
Correct |
4 ms |
35604 KB |
Output is correct |
32 |
Correct |
4 ms |
35676 KB |
Output is correct |
33 |
Correct |
4 ms |
35676 KB |
Output is correct |
34 |
Correct |
4 ms |
35676 KB |
Output is correct |
35 |
Correct |
5 ms |
35676 KB |
Output is correct |
36 |
Correct |
4 ms |
35676 KB |
Output is correct |
37 |
Correct |
4 ms |
35676 KB |
Output is correct |
38 |
Correct |
4 ms |
35672 KB |
Output is correct |
39 |
Correct |
4 ms |
35676 KB |
Output is correct |
40 |
Correct |
4 ms |
35676 KB |
Output is correct |
41 |
Correct |
4 ms |
35580 KB |
Output is correct |
42 |
Correct |
4 ms |
35676 KB |
Output is correct |
43 |
Correct |
4 ms |
35840 KB |
Output is correct |
44 |
Correct |
4 ms |
35676 KB |
Output is correct |
45 |
Correct |
4 ms |
35676 KB |
Output is correct |
46 |
Correct |
4 ms |
35672 KB |
Output is correct |
47 |
Correct |
6 ms |
35676 KB |
Output is correct |
48 |
Correct |
5 ms |
35676 KB |
Output is correct |
49 |
Correct |
4 ms |
35676 KB |
Output is correct |
50 |
Correct |
5 ms |
35672 KB |
Output is correct |
51 |
Correct |
5 ms |
35676 KB |
Output is correct |
52 |
Correct |
4 ms |
35676 KB |
Output is correct |
53 |
Correct |
4 ms |
35676 KB |
Output is correct |
54 |
Correct |
5 ms |
35776 KB |
Output is correct |
55 |
Correct |
5 ms |
35672 KB |
Output is correct |
56 |
Correct |
5 ms |
35672 KB |
Output is correct |
57 |
Correct |
6 ms |
35676 KB |
Output is correct |
58 |
Correct |
5 ms |
35676 KB |
Output is correct |
59 |
Correct |
6 ms |
35804 KB |
Output is correct |
60 |
Correct |
7 ms |
35932 KB |
Output is correct |
61 |
Correct |
6 ms |
35688 KB |
Output is correct |
62 |
Correct |
6 ms |
35932 KB |
Output is correct |
63 |
Correct |
6 ms |
35844 KB |
Output is correct |
64 |
Correct |
6 ms |
35932 KB |
Output is correct |
65 |
Correct |
5 ms |
35932 KB |
Output is correct |
66 |
Correct |
5 ms |
35932 KB |
Output is correct |
67 |
Correct |
5 ms |
35932 KB |
Output is correct |
68 |
Correct |
5 ms |
35932 KB |
Output is correct |
69 |
Correct |
5 ms |
35932 KB |
Output is correct |
70 |
Correct |
5 ms |
35844 KB |
Output is correct |
71 |
Correct |
5 ms |
35932 KB |
Output is correct |
72 |
Correct |
5 ms |
35928 KB |
Output is correct |
73 |
Correct |
5 ms |
35932 KB |
Output is correct |
74 |
Correct |
5 ms |
35932 KB |
Output is correct |
75 |
Correct |
5 ms |
35932 KB |
Output is correct |
76 |
Correct |
5 ms |
35824 KB |
Output is correct |
77 |
Correct |
6 ms |
35848 KB |
Output is correct |
78 |
Correct |
7 ms |
35932 KB |
Output is correct |
79 |
Correct |
5 ms |
35932 KB |
Output is correct |
80 |
Correct |
4 ms |
35676 KB |
Output is correct |
81 |
Correct |
5 ms |
35676 KB |
Output is correct |
82 |
Correct |
5 ms |
35676 KB |
Output is correct |
83 |
Correct |
5 ms |
35836 KB |
Output is correct |
84 |
Correct |
5 ms |
35676 KB |
Output is correct |
85 |
Correct |
4 ms |
35836 KB |
Output is correct |
86 |
Correct |
6 ms |
35932 KB |
Output is correct |
87 |
Correct |
6 ms |
35840 KB |
Output is correct |
88 |
Correct |
5 ms |
35932 KB |
Output is correct |
89 |
Correct |
7 ms |
35676 KB |
Output is correct |
90 |
Correct |
4 ms |
35932 KB |
Output is correct |
91 |
Correct |
5 ms |
35676 KB |
Output is correct |
92 |
Correct |
11 ms |
37236 KB |
Output is correct |
93 |
Correct |
13 ms |
37016 KB |
Output is correct |
94 |
Correct |
5 ms |
35828 KB |
Output is correct |
95 |
Correct |
10 ms |
36504 KB |
Output is correct |
96 |
Correct |
16 ms |
36936 KB |
Output is correct |
97 |
Correct |
4 ms |
35676 KB |
Output is correct |
98 |
Correct |
5 ms |
35932 KB |
Output is correct |
99 |
Correct |
5 ms |
35928 KB |
Output is correct |
100 |
Correct |
4 ms |
35932 KB |
Output is correct |
101 |
Correct |
5 ms |
36620 KB |
Output is correct |
102 |
Correct |
6 ms |
36440 KB |
Output is correct |
103 |
Correct |
20 ms |
38164 KB |
Output is correct |
104 |
Correct |
21 ms |
38152 KB |
Output is correct |
105 |
Correct |
25 ms |
38316 KB |
Output is correct |
106 |
Correct |
29 ms |
38164 KB |
Output is correct |
107 |
Correct |
22 ms |
38164 KB |
Output is correct |
108 |
Correct |
22 ms |
38164 KB |
Output is correct |
109 |
Correct |
16 ms |
38300 KB |
Output is correct |
110 |
Correct |
16 ms |
38252 KB |
Output is correct |
111 |
Correct |
15 ms |
38164 KB |
Output is correct |
112 |
Correct |
16 ms |
38160 KB |
Output is correct |
113 |
Correct |
15 ms |
38160 KB |
Output is correct |
114 |
Correct |
16 ms |
37140 KB |
Output is correct |
115 |
Correct |
19 ms |
37140 KB |
Output is correct |
116 |
Correct |
21 ms |
37280 KB |
Output is correct |
117 |
Correct |
14 ms |
37136 KB |
Output is correct |
118 |
Correct |
24 ms |
38164 KB |
Output is correct |
119 |
Correct |
23 ms |
38164 KB |
Output is correct |
120 |
Correct |
18 ms |
38164 KB |
Output is correct |
121 |
Correct |
25 ms |
38192 KB |
Output is correct |
122 |
Correct |
16 ms |
38160 KB |
Output is correct |
123 |
Incorrect |
20 ms |
38164 KB |
Output isn't correct |
124 |
Halted |
0 ms |
0 KB |
- |