# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1055237 |
2024-08-12T15:47:19 Z |
CodeLakVN |
Maze (JOI23_ho_t3) |
C++17 |
|
434 ms |
82572 KB |
#include <bits/stdc++.h>
#define no "NO"
#define yes "YES"
#define F first
#define S second
#define vec vector
#define task "main"
#define ll long long
#define _mp make_pair
#define ii pair<int, int>
#define sz(x) (int)x.size()
#define all(x) x.begin(), x.end()
#define evoid(val) return void(std::cout << val)
#define FOR(i, a, b) for(int i = (a); i <= (b); ++i)
#define FOD(i, b, a) for(int i = (b); i >= (a); --i)
#define unq(x) sort(all(x)); x.resize(unique(all(x)) - x.begin())
using namespace std;
template<typename U, typename V> bool maximize(U &a, V b) {
if (a < b) { a = b; return 1; } return 0;
}
template<typename U, typename V> bool minimize(U &a, V b) {
if (a > b) { a = b; return 1; } return 0;
}
const int N = (int)2e5 + 9;
const int INF = (int)1e9;
const int MOD = (int)1e9 + 7;
const int dx[4] = {-1, 0, 1, 0};
const int dy[4] = {0, 1, 0, -1};
int numRow, numCol, numSize;
vector<string> a;
vector<vector<int>> dist;
struct Data {
int x, y, sizeVer, sizeHor;
};
bool inside(int i, int j) {
return i >= 1 && i <= numRow && j >= 1 && j <= numCol;
}
void main_code() {
int sR, sC, eR, eC;
cin >> numRow >> numCol >> numSize >> sR >> sC >> eR >> eC;
a.assign(numRow + 1, "");
FOR(i, 1, numRow) {
cin >> a[i];
a[i] = " " + a[i];
}
dist.assign(numRow + 1, vector<int> (numCol + 1, -1));
queue<ii> whiteQueue;
queue<Data> blackQueue;
dist[sR][sC] = 0;
whiteQueue.push(make_pair(sR, sC));
while (whiteQueue.size() + blackQueue.size()) {
while (whiteQueue.size()) {
int x = whiteQueue.front().F, y = whiteQueue.front().S;
whiteQueue.pop();
FOR(i, 0, 3) {
int u = x + dx[i], v = y + dy[i];
if (!inside(u, v) || dist[u][v] != -1) continue;
if (a[u][v] == '.') {
dist[u][v] = dist[x][y];
whiteQueue.push(make_pair(u, v));
}
else {
dist[u][v] = dist[x][y] + 1;
blackQueue.push({u, v, numSize - 1, numSize - 1});
}
}
}
while (blackQueue.size()) {
auto [x, y, sizeVer, sizeHor] = blackQueue.front();
blackQueue.pop();
if (sizeVer == 0 || sizeHor == 0) {
whiteQueue.push(make_pair(x, y));
}
FOR(i, 0, 3) {
int u = x + dx[i], v = y + dy[i];
if (!inside(u, v)|| dist[u][v] != -1) continue;
int newVer = sizeVer - (dy[i] != 0), newHor = sizeHor - (dx[i] != 0);
if (newVer < 0 || newHor < 0) continue;
dist[u][v] = dist[x][y];
blackQueue.push({u, v, newVer, newHor});
}
}
}
cout << dist[eR][eC];
}
int main() {
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
if (fopen(task".inp", "r")) {
freopen(task".inp", "r", stdin);
freopen(task".out", "w", stdout);
}
const bool MULTITEST = 0;
int num_test = 1; if (MULTITEST) cin >> num_test;
while (num_test--) { main_code(); cout << "\n"; }
}
/* Lak lu theo dieu nhac */
Compilation message
Main.cpp: In function 'int main()':
Main.cpp:104:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
104 | freopen(task".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:105:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
105 | freopen(task".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
456 KB |
Output is correct |
5 |
Correct |
0 ms |
460 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
1 ms |
344 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
3 ms |
604 KB |
Output is correct |
20 |
Correct |
2 ms |
1036 KB |
Output is correct |
21 |
Correct |
1 ms |
728 KB |
Output is correct |
22 |
Correct |
3 ms |
600 KB |
Output is correct |
23 |
Correct |
3 ms |
604 KB |
Output is correct |
24 |
Correct |
2 ms |
1372 KB |
Output is correct |
25 |
Correct |
2 ms |
1372 KB |
Output is correct |
26 |
Correct |
3 ms |
908 KB |
Output is correct |
27 |
Correct |
3 ms |
860 KB |
Output is correct |
28 |
Correct |
3 ms |
984 KB |
Output is correct |
29 |
Correct |
6 ms |
1236 KB |
Output is correct |
30 |
Correct |
3 ms |
900 KB |
Output is correct |
31 |
Correct |
4 ms |
1532 KB |
Output is correct |
32 |
Correct |
8 ms |
1488 KB |
Output is correct |
33 |
Correct |
7 ms |
1372 KB |
Output is correct |
34 |
Correct |
4 ms |
2644 KB |
Output is correct |
35 |
Correct |
4 ms |
2644 KB |
Output is correct |
36 |
Correct |
7 ms |
1492 KB |
Output is correct |
37 |
Correct |
6 ms |
1232 KB |
Output is correct |
38 |
Correct |
8 ms |
1372 KB |
Output is correct |
39 |
Correct |
75 ms |
9420 KB |
Output is correct |
40 |
Correct |
7 ms |
1572 KB |
Output is correct |
41 |
Correct |
4 ms |
3120 KB |
Output is correct |
42 |
Correct |
10 ms |
1760 KB |
Output is correct |
43 |
Correct |
8 ms |
2776 KB |
Output is correct |
44 |
Correct |
21 ms |
5860 KB |
Output is correct |
45 |
Correct |
32 ms |
6652 KB |
Output is correct |
46 |
Correct |
31 ms |
9524 KB |
Output is correct |
47 |
Correct |
73 ms |
9448 KB |
Output is correct |
48 |
Correct |
99 ms |
9440 KB |
Output is correct |
49 |
Correct |
22 ms |
21060 KB |
Output is correct |
50 |
Correct |
49 ms |
21064 KB |
Output is correct |
51 |
Correct |
67 ms |
9892 KB |
Output is correct |
52 |
Correct |
110 ms |
9536 KB |
Output is correct |
53 |
Correct |
75 ms |
9308 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
456 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
460 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
344 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
452 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
0 ms |
456 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
1 ms |
344 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
2 ms |
764 KB |
Output is correct |
26 |
Correct |
1 ms |
860 KB |
Output is correct |
27 |
Correct |
2 ms |
604 KB |
Output is correct |
28 |
Correct |
1 ms |
604 KB |
Output is correct |
29 |
Correct |
1 ms |
720 KB |
Output is correct |
30 |
Correct |
1 ms |
836 KB |
Output is correct |
31 |
Correct |
1 ms |
600 KB |
Output is correct |
32 |
Correct |
2 ms |
860 KB |
Output is correct |
33 |
Correct |
3 ms |
860 KB |
Output is correct |
34 |
Correct |
3 ms |
1488 KB |
Output is correct |
35 |
Correct |
3 ms |
1372 KB |
Output is correct |
36 |
Correct |
2 ms |
1360 KB |
Output is correct |
37 |
Correct |
3 ms |
1292 KB |
Output is correct |
38 |
Correct |
3 ms |
1236 KB |
Output is correct |
39 |
Correct |
11 ms |
4952 KB |
Output is correct |
40 |
Correct |
34 ms |
13396 KB |
Output is correct |
41 |
Correct |
33 ms |
9580 KB |
Output is correct |
42 |
Correct |
23 ms |
9552 KB |
Output is correct |
43 |
Correct |
29 ms |
9308 KB |
Output is correct |
44 |
Correct |
34 ms |
9332 KB |
Output is correct |
45 |
Correct |
48 ms |
17120 KB |
Output is correct |
46 |
Correct |
61 ms |
17416 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
456 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
460 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
344 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
3 ms |
604 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
344 KB |
Output is correct |
36 |
Correct |
2 ms |
680 KB |
Output is correct |
37 |
Correct |
2 ms |
1116 KB |
Output is correct |
38 |
Correct |
1 ms |
860 KB |
Output is correct |
39 |
Correct |
1 ms |
604 KB |
Output is correct |
40 |
Correct |
3 ms |
600 KB |
Output is correct |
41 |
Correct |
2 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
600 KB |
Output is correct |
43 |
Correct |
1 ms |
604 KB |
Output is correct |
44 |
Correct |
1 ms |
604 KB |
Output is correct |
45 |
Correct |
1 ms |
1372 KB |
Output is correct |
46 |
Correct |
2 ms |
1372 KB |
Output is correct |
47 |
Correct |
1 ms |
860 KB |
Output is correct |
48 |
Correct |
1 ms |
796 KB |
Output is correct |
49 |
Correct |
1 ms |
604 KB |
Output is correct |
50 |
Correct |
1 ms |
832 KB |
Output is correct |
51 |
Correct |
2 ms |
604 KB |
Output is correct |
52 |
Correct |
2 ms |
860 KB |
Output is correct |
53 |
Correct |
3 ms |
860 KB |
Output is correct |
54 |
Correct |
2 ms |
604 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
0 ms |
456 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
460 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
344 KB |
Output is correct |
19 |
Correct |
0 ms |
348 KB |
Output is correct |
20 |
Correct |
0 ms |
348 KB |
Output is correct |
21 |
Correct |
0 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
344 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
0 ms |
348 KB |
Output is correct |
27 |
Correct |
0 ms |
348 KB |
Output is correct |
28 |
Correct |
0 ms |
348 KB |
Output is correct |
29 |
Correct |
0 ms |
348 KB |
Output is correct |
30 |
Correct |
1 ms |
348 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
348 KB |
Output is correct |
33 |
Correct |
3 ms |
604 KB |
Output is correct |
34 |
Correct |
0 ms |
348 KB |
Output is correct |
35 |
Correct |
1 ms |
344 KB |
Output is correct |
36 |
Correct |
2 ms |
680 KB |
Output is correct |
37 |
Correct |
2 ms |
1116 KB |
Output is correct |
38 |
Correct |
1 ms |
860 KB |
Output is correct |
39 |
Correct |
1 ms |
604 KB |
Output is correct |
40 |
Correct |
3 ms |
600 KB |
Output is correct |
41 |
Correct |
2 ms |
604 KB |
Output is correct |
42 |
Correct |
1 ms |
600 KB |
Output is correct |
43 |
Correct |
1 ms |
604 KB |
Output is correct |
44 |
Correct |
1 ms |
604 KB |
Output is correct |
45 |
Correct |
1 ms |
1372 KB |
Output is correct |
46 |
Correct |
2 ms |
1372 KB |
Output is correct |
47 |
Correct |
1 ms |
860 KB |
Output is correct |
48 |
Correct |
1 ms |
796 KB |
Output is correct |
49 |
Correct |
1 ms |
604 KB |
Output is correct |
50 |
Correct |
1 ms |
832 KB |
Output is correct |
51 |
Correct |
2 ms |
604 KB |
Output is correct |
52 |
Correct |
2 ms |
860 KB |
Output is correct |
53 |
Correct |
3 ms |
860 KB |
Output is correct |
54 |
Correct |
2 ms |
604 KB |
Output is correct |
55 |
Correct |
6 ms |
1380 KB |
Output is correct |
56 |
Correct |
2 ms |
860 KB |
Output is correct |
57 |
Correct |
3 ms |
1628 KB |
Output is correct |
58 |
Correct |
6 ms |
1116 KB |
Output is correct |
59 |
Correct |
2 ms |
1236 KB |
Output is correct |
60 |
Correct |
7 ms |
1404 KB |
Output is correct |
61 |
Correct |
9 ms |
1368 KB |
Output is correct |
62 |
Correct |
4 ms |
1408 KB |
Output is correct |
63 |
Correct |
3 ms |
1244 KB |
Output is correct |
64 |
Correct |
2 ms |
1372 KB |
Output is correct |
65 |
Correct |
3 ms |
2496 KB |
Output is correct |
66 |
Correct |
5 ms |
2652 KB |
Output is correct |
67 |
Correct |
4 ms |
1876 KB |
Output is correct |
68 |
Correct |
3 ms |
1372 KB |
Output is correct |
69 |
Correct |
3 ms |
1372 KB |
Output is correct |
70 |
Correct |
3 ms |
1372 KB |
Output is correct |
71 |
Correct |
3 ms |
1116 KB |
Output is correct |
72 |
Correct |
7 ms |
1372 KB |
Output is correct |
73 |
Correct |
6 ms |
1460 KB |
Output is correct |
74 |
Correct |
7 ms |
1368 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
456 KB |
Output is correct |
5 |
Correct |
0 ms |
460 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
1 ms |
344 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
3 ms |
604 KB |
Output is correct |
20 |
Correct |
2 ms |
1036 KB |
Output is correct |
21 |
Correct |
1 ms |
728 KB |
Output is correct |
22 |
Correct |
3 ms |
600 KB |
Output is correct |
23 |
Correct |
3 ms |
604 KB |
Output is correct |
24 |
Correct |
2 ms |
1372 KB |
Output is correct |
25 |
Correct |
2 ms |
1372 KB |
Output is correct |
26 |
Correct |
3 ms |
908 KB |
Output is correct |
27 |
Correct |
3 ms |
860 KB |
Output is correct |
28 |
Correct |
3 ms |
984 KB |
Output is correct |
29 |
Correct |
6 ms |
1236 KB |
Output is correct |
30 |
Correct |
3 ms |
900 KB |
Output is correct |
31 |
Correct |
4 ms |
1532 KB |
Output is correct |
32 |
Correct |
8 ms |
1488 KB |
Output is correct |
33 |
Correct |
7 ms |
1372 KB |
Output is correct |
34 |
Correct |
4 ms |
2644 KB |
Output is correct |
35 |
Correct |
4 ms |
2644 KB |
Output is correct |
36 |
Correct |
7 ms |
1492 KB |
Output is correct |
37 |
Correct |
6 ms |
1232 KB |
Output is correct |
38 |
Correct |
8 ms |
1372 KB |
Output is correct |
39 |
Correct |
75 ms |
9420 KB |
Output is correct |
40 |
Correct |
7 ms |
1572 KB |
Output is correct |
41 |
Correct |
4 ms |
3120 KB |
Output is correct |
42 |
Correct |
10 ms |
1760 KB |
Output is correct |
43 |
Correct |
8 ms |
2776 KB |
Output is correct |
44 |
Correct |
21 ms |
5860 KB |
Output is correct |
45 |
Correct |
32 ms |
6652 KB |
Output is correct |
46 |
Correct |
31 ms |
9524 KB |
Output is correct |
47 |
Correct |
73 ms |
9448 KB |
Output is correct |
48 |
Correct |
99 ms |
9440 KB |
Output is correct |
49 |
Correct |
22 ms |
21060 KB |
Output is correct |
50 |
Correct |
49 ms |
21064 KB |
Output is correct |
51 |
Correct |
67 ms |
9892 KB |
Output is correct |
52 |
Correct |
110 ms |
9536 KB |
Output is correct |
53 |
Correct |
75 ms |
9308 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
456 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
1 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
460 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
344 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
344 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
1 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
452 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
456 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
344 KB |
Output is correct |
107 |
Correct |
1 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
764 KB |
Output is correct |
111 |
Correct |
1 ms |
860 KB |
Output is correct |
112 |
Correct |
2 ms |
604 KB |
Output is correct |
113 |
Correct |
1 ms |
604 KB |
Output is correct |
114 |
Correct |
1 ms |
720 KB |
Output is correct |
115 |
Correct |
1 ms |
836 KB |
Output is correct |
116 |
Correct |
1 ms |
600 KB |
Output is correct |
117 |
Correct |
2 ms |
860 KB |
Output is correct |
118 |
Correct |
3 ms |
860 KB |
Output is correct |
119 |
Correct |
3 ms |
1488 KB |
Output is correct |
120 |
Correct |
3 ms |
1372 KB |
Output is correct |
121 |
Correct |
2 ms |
1360 KB |
Output is correct |
122 |
Correct |
3 ms |
1292 KB |
Output is correct |
123 |
Correct |
3 ms |
1236 KB |
Output is correct |
124 |
Correct |
11 ms |
4952 KB |
Output is correct |
125 |
Correct |
34 ms |
13396 KB |
Output is correct |
126 |
Correct |
33 ms |
9580 KB |
Output is correct |
127 |
Correct |
23 ms |
9552 KB |
Output is correct |
128 |
Correct |
29 ms |
9308 KB |
Output is correct |
129 |
Correct |
34 ms |
9332 KB |
Output is correct |
130 |
Correct |
48 ms |
17120 KB |
Output is correct |
131 |
Correct |
61 ms |
17416 KB |
Output is correct |
132 |
Correct |
3 ms |
604 KB |
Output is correct |
133 |
Correct |
0 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
344 KB |
Output is correct |
135 |
Correct |
2 ms |
680 KB |
Output is correct |
136 |
Correct |
2 ms |
1116 KB |
Output is correct |
137 |
Correct |
1 ms |
860 KB |
Output is correct |
138 |
Correct |
1 ms |
604 KB |
Output is correct |
139 |
Correct |
3 ms |
600 KB |
Output is correct |
140 |
Correct |
2 ms |
604 KB |
Output is correct |
141 |
Correct |
1 ms |
600 KB |
Output is correct |
142 |
Correct |
1 ms |
604 KB |
Output is correct |
143 |
Correct |
1 ms |
604 KB |
Output is correct |
144 |
Correct |
1 ms |
1372 KB |
Output is correct |
145 |
Correct |
2 ms |
1372 KB |
Output is correct |
146 |
Correct |
1 ms |
860 KB |
Output is correct |
147 |
Correct |
1 ms |
796 KB |
Output is correct |
148 |
Correct |
1 ms |
604 KB |
Output is correct |
149 |
Correct |
1 ms |
832 KB |
Output is correct |
150 |
Correct |
2 ms |
604 KB |
Output is correct |
151 |
Correct |
2 ms |
860 KB |
Output is correct |
152 |
Correct |
3 ms |
860 KB |
Output is correct |
153 |
Correct |
2 ms |
604 KB |
Output is correct |
154 |
Correct |
6 ms |
1380 KB |
Output is correct |
155 |
Correct |
2 ms |
860 KB |
Output is correct |
156 |
Correct |
3 ms |
1628 KB |
Output is correct |
157 |
Correct |
6 ms |
1116 KB |
Output is correct |
158 |
Correct |
2 ms |
1236 KB |
Output is correct |
159 |
Correct |
7 ms |
1404 KB |
Output is correct |
160 |
Correct |
9 ms |
1368 KB |
Output is correct |
161 |
Correct |
4 ms |
1408 KB |
Output is correct |
162 |
Correct |
3 ms |
1244 KB |
Output is correct |
163 |
Correct |
2 ms |
1372 KB |
Output is correct |
164 |
Correct |
3 ms |
2496 KB |
Output is correct |
165 |
Correct |
5 ms |
2652 KB |
Output is correct |
166 |
Correct |
4 ms |
1876 KB |
Output is correct |
167 |
Correct |
3 ms |
1372 KB |
Output is correct |
168 |
Correct |
3 ms |
1372 KB |
Output is correct |
169 |
Correct |
3 ms |
1372 KB |
Output is correct |
170 |
Correct |
3 ms |
1116 KB |
Output is correct |
171 |
Correct |
7 ms |
1372 KB |
Output is correct |
172 |
Correct |
6 ms |
1460 KB |
Output is correct |
173 |
Correct |
7 ms |
1368 KB |
Output is correct |
174 |
Correct |
6 ms |
1628 KB |
Output is correct |
175 |
Correct |
7 ms |
2264 KB |
Output is correct |
176 |
Correct |
24 ms |
7404 KB |
Output is correct |
177 |
Correct |
26 ms |
6748 KB |
Output is correct |
178 |
Correct |
53 ms |
8540 KB |
Output is correct |
179 |
Correct |
28 ms |
9560 KB |
Output is correct |
180 |
Correct |
28 ms |
9560 KB |
Output is correct |
181 |
Correct |
30 ms |
9424 KB |
Output is correct |
182 |
Correct |
31 ms |
9308 KB |
Output is correct |
183 |
Correct |
58 ms |
10616 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
456 KB |
Output is correct |
5 |
Correct |
0 ms |
460 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
1 ms |
344 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
3 ms |
604 KB |
Output is correct |
20 |
Correct |
2 ms |
1036 KB |
Output is correct |
21 |
Correct |
1 ms |
728 KB |
Output is correct |
22 |
Correct |
3 ms |
600 KB |
Output is correct |
23 |
Correct |
3 ms |
604 KB |
Output is correct |
24 |
Correct |
2 ms |
1372 KB |
Output is correct |
25 |
Correct |
2 ms |
1372 KB |
Output is correct |
26 |
Correct |
3 ms |
908 KB |
Output is correct |
27 |
Correct |
3 ms |
860 KB |
Output is correct |
28 |
Correct |
3 ms |
984 KB |
Output is correct |
29 |
Correct |
6 ms |
1236 KB |
Output is correct |
30 |
Correct |
3 ms |
900 KB |
Output is correct |
31 |
Correct |
4 ms |
1532 KB |
Output is correct |
32 |
Correct |
8 ms |
1488 KB |
Output is correct |
33 |
Correct |
7 ms |
1372 KB |
Output is correct |
34 |
Correct |
4 ms |
2644 KB |
Output is correct |
35 |
Correct |
4 ms |
2644 KB |
Output is correct |
36 |
Correct |
7 ms |
1492 KB |
Output is correct |
37 |
Correct |
6 ms |
1232 KB |
Output is correct |
38 |
Correct |
8 ms |
1372 KB |
Output is correct |
39 |
Correct |
75 ms |
9420 KB |
Output is correct |
40 |
Correct |
7 ms |
1572 KB |
Output is correct |
41 |
Correct |
4 ms |
3120 KB |
Output is correct |
42 |
Correct |
10 ms |
1760 KB |
Output is correct |
43 |
Correct |
8 ms |
2776 KB |
Output is correct |
44 |
Correct |
21 ms |
5860 KB |
Output is correct |
45 |
Correct |
32 ms |
6652 KB |
Output is correct |
46 |
Correct |
31 ms |
9524 KB |
Output is correct |
47 |
Correct |
73 ms |
9448 KB |
Output is correct |
48 |
Correct |
99 ms |
9440 KB |
Output is correct |
49 |
Correct |
22 ms |
21060 KB |
Output is correct |
50 |
Correct |
49 ms |
21064 KB |
Output is correct |
51 |
Correct |
67 ms |
9892 KB |
Output is correct |
52 |
Correct |
110 ms |
9536 KB |
Output is correct |
53 |
Correct |
75 ms |
9308 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
456 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
1 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
460 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
344 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
344 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
1 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
452 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
456 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
344 KB |
Output is correct |
107 |
Correct |
1 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
764 KB |
Output is correct |
111 |
Correct |
1 ms |
860 KB |
Output is correct |
112 |
Correct |
2 ms |
604 KB |
Output is correct |
113 |
Correct |
1 ms |
604 KB |
Output is correct |
114 |
Correct |
1 ms |
720 KB |
Output is correct |
115 |
Correct |
1 ms |
836 KB |
Output is correct |
116 |
Correct |
1 ms |
600 KB |
Output is correct |
117 |
Correct |
2 ms |
860 KB |
Output is correct |
118 |
Correct |
3 ms |
860 KB |
Output is correct |
119 |
Correct |
3 ms |
1488 KB |
Output is correct |
120 |
Correct |
3 ms |
1372 KB |
Output is correct |
121 |
Correct |
2 ms |
1360 KB |
Output is correct |
122 |
Correct |
3 ms |
1292 KB |
Output is correct |
123 |
Correct |
3 ms |
1236 KB |
Output is correct |
124 |
Correct |
11 ms |
4952 KB |
Output is correct |
125 |
Correct |
34 ms |
13396 KB |
Output is correct |
126 |
Correct |
33 ms |
9580 KB |
Output is correct |
127 |
Correct |
23 ms |
9552 KB |
Output is correct |
128 |
Correct |
29 ms |
9308 KB |
Output is correct |
129 |
Correct |
34 ms |
9332 KB |
Output is correct |
130 |
Correct |
48 ms |
17120 KB |
Output is correct |
131 |
Correct |
61 ms |
17416 KB |
Output is correct |
132 |
Correct |
3 ms |
604 KB |
Output is correct |
133 |
Correct |
0 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
344 KB |
Output is correct |
135 |
Correct |
2 ms |
680 KB |
Output is correct |
136 |
Correct |
2 ms |
1116 KB |
Output is correct |
137 |
Correct |
1 ms |
860 KB |
Output is correct |
138 |
Correct |
1 ms |
604 KB |
Output is correct |
139 |
Correct |
3 ms |
600 KB |
Output is correct |
140 |
Correct |
2 ms |
604 KB |
Output is correct |
141 |
Correct |
1 ms |
600 KB |
Output is correct |
142 |
Correct |
1 ms |
604 KB |
Output is correct |
143 |
Correct |
1 ms |
604 KB |
Output is correct |
144 |
Correct |
1 ms |
1372 KB |
Output is correct |
145 |
Correct |
2 ms |
1372 KB |
Output is correct |
146 |
Correct |
1 ms |
860 KB |
Output is correct |
147 |
Correct |
1 ms |
796 KB |
Output is correct |
148 |
Correct |
1 ms |
604 KB |
Output is correct |
149 |
Correct |
1 ms |
832 KB |
Output is correct |
150 |
Correct |
2 ms |
604 KB |
Output is correct |
151 |
Correct |
2 ms |
860 KB |
Output is correct |
152 |
Correct |
3 ms |
860 KB |
Output is correct |
153 |
Correct |
2 ms |
604 KB |
Output is correct |
154 |
Correct |
6 ms |
1380 KB |
Output is correct |
155 |
Correct |
2 ms |
860 KB |
Output is correct |
156 |
Correct |
3 ms |
1628 KB |
Output is correct |
157 |
Correct |
6 ms |
1116 KB |
Output is correct |
158 |
Correct |
2 ms |
1236 KB |
Output is correct |
159 |
Correct |
7 ms |
1404 KB |
Output is correct |
160 |
Correct |
9 ms |
1368 KB |
Output is correct |
161 |
Correct |
4 ms |
1408 KB |
Output is correct |
162 |
Correct |
3 ms |
1244 KB |
Output is correct |
163 |
Correct |
2 ms |
1372 KB |
Output is correct |
164 |
Correct |
3 ms |
2496 KB |
Output is correct |
165 |
Correct |
5 ms |
2652 KB |
Output is correct |
166 |
Correct |
4 ms |
1876 KB |
Output is correct |
167 |
Correct |
3 ms |
1372 KB |
Output is correct |
168 |
Correct |
3 ms |
1372 KB |
Output is correct |
169 |
Correct |
3 ms |
1372 KB |
Output is correct |
170 |
Correct |
3 ms |
1116 KB |
Output is correct |
171 |
Correct |
7 ms |
1372 KB |
Output is correct |
172 |
Correct |
6 ms |
1460 KB |
Output is correct |
173 |
Correct |
7 ms |
1368 KB |
Output is correct |
174 |
Correct |
6 ms |
1628 KB |
Output is correct |
175 |
Correct |
7 ms |
2264 KB |
Output is correct |
176 |
Correct |
24 ms |
7404 KB |
Output is correct |
177 |
Correct |
26 ms |
6748 KB |
Output is correct |
178 |
Correct |
53 ms |
8540 KB |
Output is correct |
179 |
Correct |
28 ms |
9560 KB |
Output is correct |
180 |
Correct |
28 ms |
9560 KB |
Output is correct |
181 |
Correct |
30 ms |
9424 KB |
Output is correct |
182 |
Correct |
31 ms |
9308 KB |
Output is correct |
183 |
Correct |
58 ms |
10616 KB |
Output is correct |
184 |
Correct |
146 ms |
18264 KB |
Output is correct |
185 |
Correct |
42 ms |
10716 KB |
Output is correct |
186 |
Correct |
50 ms |
17744 KB |
Output is correct |
187 |
Correct |
41 ms |
13148 KB |
Output is correct |
188 |
Correct |
50 ms |
18516 KB |
Output is correct |
189 |
Correct |
160 ms |
18396 KB |
Output is correct |
190 |
Correct |
131 ms |
18256 KB |
Output is correct |
191 |
Correct |
51 ms |
18512 KB |
Output is correct |
192 |
Correct |
47 ms |
18176 KB |
Output is correct |
193 |
Correct |
86 ms |
18256 KB |
Output is correct |
194 |
Correct |
48 ms |
41620 KB |
Output is correct |
195 |
Correct |
79 ms |
41608 KB |
Output is correct |
196 |
Correct |
53 ms |
18772 KB |
Output is correct |
197 |
Correct |
51 ms |
18524 KB |
Output is correct |
198 |
Correct |
80 ms |
18616 KB |
Output is correct |
199 |
Correct |
54 ms |
18520 KB |
Output is correct |
200 |
Correct |
149 ms |
18864 KB |
Output is correct |
201 |
Correct |
164 ms |
18512 KB |
Output is correct |
202 |
Correct |
165 ms |
18268 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
456 KB |
Output is correct |
5 |
Correct |
0 ms |
460 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
1 ms |
344 KB |
Output is correct |
16 |
Correct |
0 ms |
348 KB |
Output is correct |
17 |
Correct |
0 ms |
348 KB |
Output is correct |
18 |
Correct |
0 ms |
348 KB |
Output is correct |
19 |
Correct |
3 ms |
604 KB |
Output is correct |
20 |
Correct |
2 ms |
1036 KB |
Output is correct |
21 |
Correct |
1 ms |
728 KB |
Output is correct |
22 |
Correct |
3 ms |
600 KB |
Output is correct |
23 |
Correct |
3 ms |
604 KB |
Output is correct |
24 |
Correct |
2 ms |
1372 KB |
Output is correct |
25 |
Correct |
2 ms |
1372 KB |
Output is correct |
26 |
Correct |
3 ms |
908 KB |
Output is correct |
27 |
Correct |
3 ms |
860 KB |
Output is correct |
28 |
Correct |
3 ms |
984 KB |
Output is correct |
29 |
Correct |
6 ms |
1236 KB |
Output is correct |
30 |
Correct |
3 ms |
900 KB |
Output is correct |
31 |
Correct |
4 ms |
1532 KB |
Output is correct |
32 |
Correct |
8 ms |
1488 KB |
Output is correct |
33 |
Correct |
7 ms |
1372 KB |
Output is correct |
34 |
Correct |
4 ms |
2644 KB |
Output is correct |
35 |
Correct |
4 ms |
2644 KB |
Output is correct |
36 |
Correct |
7 ms |
1492 KB |
Output is correct |
37 |
Correct |
6 ms |
1232 KB |
Output is correct |
38 |
Correct |
8 ms |
1372 KB |
Output is correct |
39 |
Correct |
75 ms |
9420 KB |
Output is correct |
40 |
Correct |
7 ms |
1572 KB |
Output is correct |
41 |
Correct |
4 ms |
3120 KB |
Output is correct |
42 |
Correct |
10 ms |
1760 KB |
Output is correct |
43 |
Correct |
8 ms |
2776 KB |
Output is correct |
44 |
Correct |
21 ms |
5860 KB |
Output is correct |
45 |
Correct |
32 ms |
6652 KB |
Output is correct |
46 |
Correct |
31 ms |
9524 KB |
Output is correct |
47 |
Correct |
73 ms |
9448 KB |
Output is correct |
48 |
Correct |
99 ms |
9440 KB |
Output is correct |
49 |
Correct |
22 ms |
21060 KB |
Output is correct |
50 |
Correct |
49 ms |
21064 KB |
Output is correct |
51 |
Correct |
67 ms |
9892 KB |
Output is correct |
52 |
Correct |
110 ms |
9536 KB |
Output is correct |
53 |
Correct |
75 ms |
9308 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
0 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
0 ms |
348 KB |
Output is correct |
63 |
Correct |
0 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
0 ms |
456 KB |
Output is correct |
66 |
Correct |
0 ms |
348 KB |
Output is correct |
67 |
Correct |
1 ms |
348 KB |
Output is correct |
68 |
Correct |
0 ms |
460 KB |
Output is correct |
69 |
Correct |
0 ms |
348 KB |
Output is correct |
70 |
Correct |
0 ms |
348 KB |
Output is correct |
71 |
Correct |
0 ms |
344 KB |
Output is correct |
72 |
Correct |
0 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 ms |
348 KB |
Output is correct |
75 |
Correct |
0 ms |
348 KB |
Output is correct |
76 |
Correct |
0 ms |
344 KB |
Output is correct |
77 |
Correct |
0 ms |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
0 ms |
348 KB |
Output is correct |
81 |
Correct |
0 ms |
348 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
1 ms |
348 KB |
Output is correct |
84 |
Correct |
0 ms |
348 KB |
Output is correct |
85 |
Correct |
0 ms |
348 KB |
Output is correct |
86 |
Correct |
0 ms |
348 KB |
Output is correct |
87 |
Correct |
0 ms |
348 KB |
Output is correct |
88 |
Correct |
0 ms |
452 KB |
Output is correct |
89 |
Correct |
0 ms |
348 KB |
Output is correct |
90 |
Correct |
0 ms |
348 KB |
Output is correct |
91 |
Correct |
0 ms |
348 KB |
Output is correct |
92 |
Correct |
0 ms |
348 KB |
Output is correct |
93 |
Correct |
0 ms |
348 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
0 ms |
348 KB |
Output is correct |
96 |
Correct |
0 ms |
348 KB |
Output is correct |
97 |
Correct |
0 ms |
348 KB |
Output is correct |
98 |
Correct |
0 ms |
348 KB |
Output is correct |
99 |
Correct |
0 ms |
348 KB |
Output is correct |
100 |
Correct |
0 ms |
348 KB |
Output is correct |
101 |
Correct |
0 ms |
456 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
0 ms |
348 KB |
Output is correct |
104 |
Correct |
0 ms |
348 KB |
Output is correct |
105 |
Correct |
0 ms |
348 KB |
Output is correct |
106 |
Correct |
1 ms |
344 KB |
Output is correct |
107 |
Correct |
1 ms |
348 KB |
Output is correct |
108 |
Correct |
0 ms |
348 KB |
Output is correct |
109 |
Correct |
0 ms |
348 KB |
Output is correct |
110 |
Correct |
2 ms |
764 KB |
Output is correct |
111 |
Correct |
1 ms |
860 KB |
Output is correct |
112 |
Correct |
2 ms |
604 KB |
Output is correct |
113 |
Correct |
1 ms |
604 KB |
Output is correct |
114 |
Correct |
1 ms |
720 KB |
Output is correct |
115 |
Correct |
1 ms |
836 KB |
Output is correct |
116 |
Correct |
1 ms |
600 KB |
Output is correct |
117 |
Correct |
2 ms |
860 KB |
Output is correct |
118 |
Correct |
3 ms |
860 KB |
Output is correct |
119 |
Correct |
3 ms |
1488 KB |
Output is correct |
120 |
Correct |
3 ms |
1372 KB |
Output is correct |
121 |
Correct |
2 ms |
1360 KB |
Output is correct |
122 |
Correct |
3 ms |
1292 KB |
Output is correct |
123 |
Correct |
3 ms |
1236 KB |
Output is correct |
124 |
Correct |
11 ms |
4952 KB |
Output is correct |
125 |
Correct |
34 ms |
13396 KB |
Output is correct |
126 |
Correct |
33 ms |
9580 KB |
Output is correct |
127 |
Correct |
23 ms |
9552 KB |
Output is correct |
128 |
Correct |
29 ms |
9308 KB |
Output is correct |
129 |
Correct |
34 ms |
9332 KB |
Output is correct |
130 |
Correct |
48 ms |
17120 KB |
Output is correct |
131 |
Correct |
61 ms |
17416 KB |
Output is correct |
132 |
Correct |
3 ms |
604 KB |
Output is correct |
133 |
Correct |
0 ms |
348 KB |
Output is correct |
134 |
Correct |
1 ms |
344 KB |
Output is correct |
135 |
Correct |
2 ms |
680 KB |
Output is correct |
136 |
Correct |
2 ms |
1116 KB |
Output is correct |
137 |
Correct |
1 ms |
860 KB |
Output is correct |
138 |
Correct |
1 ms |
604 KB |
Output is correct |
139 |
Correct |
3 ms |
600 KB |
Output is correct |
140 |
Correct |
2 ms |
604 KB |
Output is correct |
141 |
Correct |
1 ms |
600 KB |
Output is correct |
142 |
Correct |
1 ms |
604 KB |
Output is correct |
143 |
Correct |
1 ms |
604 KB |
Output is correct |
144 |
Correct |
1 ms |
1372 KB |
Output is correct |
145 |
Correct |
2 ms |
1372 KB |
Output is correct |
146 |
Correct |
1 ms |
860 KB |
Output is correct |
147 |
Correct |
1 ms |
796 KB |
Output is correct |
148 |
Correct |
1 ms |
604 KB |
Output is correct |
149 |
Correct |
1 ms |
832 KB |
Output is correct |
150 |
Correct |
2 ms |
604 KB |
Output is correct |
151 |
Correct |
2 ms |
860 KB |
Output is correct |
152 |
Correct |
3 ms |
860 KB |
Output is correct |
153 |
Correct |
2 ms |
604 KB |
Output is correct |
154 |
Correct |
6 ms |
1380 KB |
Output is correct |
155 |
Correct |
2 ms |
860 KB |
Output is correct |
156 |
Correct |
3 ms |
1628 KB |
Output is correct |
157 |
Correct |
6 ms |
1116 KB |
Output is correct |
158 |
Correct |
2 ms |
1236 KB |
Output is correct |
159 |
Correct |
7 ms |
1404 KB |
Output is correct |
160 |
Correct |
9 ms |
1368 KB |
Output is correct |
161 |
Correct |
4 ms |
1408 KB |
Output is correct |
162 |
Correct |
3 ms |
1244 KB |
Output is correct |
163 |
Correct |
2 ms |
1372 KB |
Output is correct |
164 |
Correct |
3 ms |
2496 KB |
Output is correct |
165 |
Correct |
5 ms |
2652 KB |
Output is correct |
166 |
Correct |
4 ms |
1876 KB |
Output is correct |
167 |
Correct |
3 ms |
1372 KB |
Output is correct |
168 |
Correct |
3 ms |
1372 KB |
Output is correct |
169 |
Correct |
3 ms |
1372 KB |
Output is correct |
170 |
Correct |
3 ms |
1116 KB |
Output is correct |
171 |
Correct |
7 ms |
1372 KB |
Output is correct |
172 |
Correct |
6 ms |
1460 KB |
Output is correct |
173 |
Correct |
7 ms |
1368 KB |
Output is correct |
174 |
Correct |
6 ms |
1628 KB |
Output is correct |
175 |
Correct |
7 ms |
2264 KB |
Output is correct |
176 |
Correct |
24 ms |
7404 KB |
Output is correct |
177 |
Correct |
26 ms |
6748 KB |
Output is correct |
178 |
Correct |
53 ms |
8540 KB |
Output is correct |
179 |
Correct |
28 ms |
9560 KB |
Output is correct |
180 |
Correct |
28 ms |
9560 KB |
Output is correct |
181 |
Correct |
30 ms |
9424 KB |
Output is correct |
182 |
Correct |
31 ms |
9308 KB |
Output is correct |
183 |
Correct |
58 ms |
10616 KB |
Output is correct |
184 |
Correct |
146 ms |
18264 KB |
Output is correct |
185 |
Correct |
42 ms |
10716 KB |
Output is correct |
186 |
Correct |
50 ms |
17744 KB |
Output is correct |
187 |
Correct |
41 ms |
13148 KB |
Output is correct |
188 |
Correct |
50 ms |
18516 KB |
Output is correct |
189 |
Correct |
160 ms |
18396 KB |
Output is correct |
190 |
Correct |
131 ms |
18256 KB |
Output is correct |
191 |
Correct |
51 ms |
18512 KB |
Output is correct |
192 |
Correct |
47 ms |
18176 KB |
Output is correct |
193 |
Correct |
86 ms |
18256 KB |
Output is correct |
194 |
Correct |
48 ms |
41620 KB |
Output is correct |
195 |
Correct |
79 ms |
41608 KB |
Output is correct |
196 |
Correct |
53 ms |
18772 KB |
Output is correct |
197 |
Correct |
51 ms |
18524 KB |
Output is correct |
198 |
Correct |
80 ms |
18616 KB |
Output is correct |
199 |
Correct |
54 ms |
18520 KB |
Output is correct |
200 |
Correct |
149 ms |
18864 KB |
Output is correct |
201 |
Correct |
164 ms |
18512 KB |
Output is correct |
202 |
Correct |
165 ms |
18268 KB |
Output is correct |
203 |
Correct |
337 ms |
35880 KB |
Output is correct |
204 |
Correct |
54 ms |
19020 KB |
Output is correct |
205 |
Correct |
134 ms |
22384 KB |
Output is correct |
206 |
Correct |
248 ms |
37580 KB |
Output is correct |
207 |
Correct |
134 ms |
36692 KB |
Output is correct |
208 |
Correct |
434 ms |
35924 KB |
Output is correct |
209 |
Correct |
351 ms |
35840 KB |
Output is correct |
210 |
Correct |
148 ms |
36692 KB |
Output is correct |
211 |
Correct |
143 ms |
35916 KB |
Output is correct |
212 |
Correct |
139 ms |
35920 KB |
Output is correct |
213 |
Correct |
100 ms |
82552 KB |
Output is correct |
214 |
Correct |
161 ms |
82572 KB |
Output is correct |
215 |
Correct |
130 ms |
37000 KB |
Output is correct |
216 |
Correct |
118 ms |
36912 KB |
Output is correct |
217 |
Correct |
140 ms |
36428 KB |
Output is correct |
218 |
Correct |
135 ms |
36588 KB |
Output is correct |
219 |
Correct |
176 ms |
46488 KB |
Output is correct |
220 |
Correct |
187 ms |
56456 KB |
Output is correct |
221 |
Correct |
190 ms |
68392 KB |
Output is correct |
222 |
Correct |
223 ms |
68828 KB |
Output is correct |
223 |
Correct |
381 ms |
36640 KB |
Output is correct |
224 |
Correct |
393 ms |
36380 KB |
Output is correct |
225 |
Correct |
379 ms |
36056 KB |
Output is correct |