#include "vision.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include <map>
#include <bitset>
#include <iomanip>
#include <deque>
#include <queue>
#include <algorithm>
#include <string>
#include <cassert>
#include <memory>
#include <numeric>
#include <functional>
#include <random>
#define ll long long
#define null NULL
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define length(a) ((int)a.size())
using namespace std;
template<class iterator> void output(iterator begin, iterator end, ostream &out = cerr) {
while (begin != end) {
out << (*begin) << " ";
begin++;
}
out << endl;
}
template<class T> void output(const T &x, ostream &out = cerr) {
output(all(x), out);
}
template<class T> int chkmin(T &a, const T &b) {
if (b < a) {
a = b;
return 1;
}
return 0;
}
template<class T> int chkmax(T &a, const T &b) {
if (b > a) {
a = b;
return 1;
}
return 0;
}
int ONE, ZERO;
vector<int> to_number(const vector<int> &A, int B) {
vector<int> res;
for (int b = 0; b < B; ++b) {
vector<int> cur;
for (int i = 0; i < A.size(); ++i) {
if ((i >> b) & 1) {
cur.push_back(A[i]);
}
}
if (cur.empty()) {
res.push_back(ZERO);
} else {
res.push_back(add_or(cur));
}
}
return res;
}
void flip(vector<int> &a) {
for (int i = 0; i < a.size(); ++i) {
a[i] = add_not(a[i]);
}
}
vector<int> sum(const vector<int> &a, const vector<int> &b) {
int B = a.size();
vector<int> res(B);
int p = -1;
for (int i = 0; i < B; ++i) {
if (p == -1) {
res[i] = add_xor({a[i], b[i]});
p = add_and({a[i], b[i]});
} else {
res[i] = add_xor({a[i], b[i], p});
p = add_or({add_and({a[i], b[i]}), add_and({a[i], p}), add_and({b[i], p})});
}
}
return res;
}
vector<int> from_bits(const vector<int> &a, int n, int B) {
vector<int> res(n);
for (int i = 0; i < n; ++i) {
vector<int> cur;
for (int j = 0; j < B; ++j) {
if ((i >> j) & 1) {
cur.push_back(a[j]);
} else {
cur.push_back(add_not(a[j]));
}
}
res[i] = add_and(cur);
}
return res;
}
vector<int> substract_from(const vector<int> &a) {
int p = ZERO;
vector<int> res(a.size());
for (int i = 0; i < a.size(); ++i) {
res[i] = add_xor({a[i], p});
p = add_or({a[i], p});
}
return res;
}
vector<int> diff(const vector<int> &R, const vector<int> &L) {
int n = R.size();
int B = 1;
while ((1 << B) < n) {
B++;
}
// cerr << "kek" << endl;
vector<int> num1 = to_number(R, B);
vector<int> num2 = to_number(L, B);
num2 = substract_from(num2);
// cerr << "num1" << endl;
// output(all(num1));
// cerr << "num2" << endl;
// output(all(num2));
// cerr << "_num2" << endl;
// output(all(num2));
vector<int> res = sum(num1, num2);
// cerr << "_res" << endl;
// output(all(res));
// cerr << "res" << endl;
// output(all(res));
vector<int> res_diff = from_bits(res, n, B);
return res_diff;
}
vector<int> diff(const vector<int> &a) {
// cerr << "diff" << endl;
// output(all(a));
int n = a.size();
vector<int> pref(n), suf(n);
pref[0] = add_not(a[0]);
for (int i = 1; i < n; ++i) {
pref[i] = add_and({add_not(a[i]), pref[i - 1]});
}
suf[n - 1] = add_not(a[n - 1]);
for (int i = n - 2; i >= 0; --i) {
suf[i] = add_and({add_not(a[i]), suf[i + 1]});
}
vector<int> L(n), R(n);
L[0] = a[0];
for (int i = 1; i < n; ++i) {
L[i] = add_and({a[i], pref[i - 1]});
}
R[n - 1] = a[n - 1];
for (int i = n - 2; i >= 0; --i) {
R[i] = add_and({a[i], suf[i + 1]});
}
// cerr << "LR = " << endl;
// output(all(L));
// output(all(R));
return diff(R, L);
}
int n, m, k;
int get(int r, int c) {
return r * m + c;
}
void construct_network(int _n, int _m, int _k) {
n = _n;
m = _m;
k = _k;
ONE = add_or({0, add_not(0)});
ZERO = add_and({0, add_not(0)});
vector<int> rows, columns;
for (int i = 0; i < n; ++i) {
vector<int> cur_row;
for (int j = 0; j < m; ++j) {
cur_row.push_back(get(i, j));
}
rows.push_back(add_or(cur_row));
}
for (int i = 0; i < m; ++i) {
vector<int> cur_column;
for (int j = 0; j < n; ++j) {
cur_column.push_back(get(j, i));
}
columns.push_back(add_or(cur_column));
}
// cerr << "rows" << endl;
// output(all(rows));
// cerr << "columns" << endl;
// output(all(columns));
vector<int> row_d = diff(rows);
vector<int> col_d = diff(columns);
// cerr << "row_d" << endl;
// output(all(row_d));
// cerr << "col_d" << endl;
// output(all(col_d));
vector<int> poss;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < m; ++j) {
if (i + j == k) {
poss.push_back(add_and({row_d[i], col_d[j]}));
}
}
}
add_or(poss);
}
Compilation message
vision.cpp: In function 'std::vector<int> to_number(const std::vector<int>&, int)':
vision.cpp:60:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for (int i = 0; i < A.size(); ++i) {
| ~~^~~~~~~~~~
vision.cpp: In function 'void flip(std::vector<int>&)':
vision.cpp:75:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | for (int i = 0; i < a.size(); ++i) {
| ~~^~~~~~~~~~
vision.cpp: In function 'std::vector<int> substract_from(const std::vector<int>&)':
vision.cpp:115:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
115 | for (int i = 0; i < a.size(); ++i) {
| ~~^~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
256 KB |
Output is correct |
2 |
Correct |
1 ms |
256 KB |
Output is correct |
3 |
Correct |
0 ms |
256 KB |
Output is correct |
4 |
Correct |
0 ms |
256 KB |
Output is correct |
5 |
Correct |
0 ms |
256 KB |
Output is correct |
6 |
Correct |
1 ms |
256 KB |
Output is correct |
7 |
Correct |
0 ms |
256 KB |
Output is correct |
8 |
Correct |
0 ms |
256 KB |
Output is correct |
9 |
Correct |
1 ms |
256 KB |
Output is correct |
10 |
Correct |
0 ms |
256 KB |
Output is correct |
11 |
Correct |
0 ms |
256 KB |
Output is correct |
12 |
Correct |
0 ms |
256 KB |
Output is correct |
13 |
Correct |
0 ms |
256 KB |
Output is correct |
14 |
Correct |
1 ms |
256 KB |
Output is correct |
15 |
Correct |
1 ms |
256 KB |
Output is correct |
16 |
Correct |
1 ms |
256 KB |
Output is correct |
17 |
Correct |
0 ms |
256 KB |
Output is correct |
18 |
Correct |
0 ms |
256 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
256 KB |
Output is correct |
2 |
Correct |
1 ms |
256 KB |
Output is correct |
3 |
Correct |
0 ms |
256 KB |
Output is correct |
4 |
Correct |
0 ms |
256 KB |
Output is correct |
5 |
Correct |
0 ms |
256 KB |
Output is correct |
6 |
Correct |
1 ms |
256 KB |
Output is correct |
7 |
Correct |
0 ms |
256 KB |
Output is correct |
8 |
Correct |
0 ms |
256 KB |
Output is correct |
9 |
Correct |
1 ms |
256 KB |
Output is correct |
10 |
Correct |
0 ms |
256 KB |
Output is correct |
11 |
Correct |
0 ms |
256 KB |
Output is correct |
12 |
Correct |
0 ms |
256 KB |
Output is correct |
13 |
Correct |
0 ms |
256 KB |
Output is correct |
14 |
Correct |
1 ms |
256 KB |
Output is correct |
15 |
Correct |
1 ms |
256 KB |
Output is correct |
16 |
Correct |
1 ms |
256 KB |
Output is correct |
17 |
Correct |
0 ms |
256 KB |
Output is correct |
18 |
Correct |
0 ms |
256 KB |
Output is correct |
19 |
Correct |
1 ms |
384 KB |
Output is correct |
20 |
Correct |
0 ms |
256 KB |
Output is correct |
21 |
Correct |
1 ms |
384 KB |
Output is correct |
22 |
Correct |
1 ms |
384 KB |
Output is correct |
23 |
Correct |
1 ms |
384 KB |
Output is correct |
24 |
Correct |
1 ms |
384 KB |
Output is correct |
25 |
Correct |
1 ms |
384 KB |
Output is correct |
26 |
Correct |
1 ms |
384 KB |
Output is correct |
27 |
Correct |
1 ms |
384 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
256 KB |
Output is correct |
2 |
Correct |
1 ms |
256 KB |
Output is correct |
3 |
Correct |
0 ms |
256 KB |
Output is correct |
4 |
Correct |
0 ms |
256 KB |
Output is correct |
5 |
Correct |
0 ms |
256 KB |
Output is correct |
6 |
Correct |
1 ms |
256 KB |
Output is correct |
7 |
Correct |
0 ms |
256 KB |
Output is correct |
8 |
Correct |
0 ms |
256 KB |
Output is correct |
9 |
Correct |
1 ms |
256 KB |
Output is correct |
10 |
Correct |
0 ms |
256 KB |
Output is correct |
11 |
Correct |
0 ms |
256 KB |
Output is correct |
12 |
Correct |
0 ms |
256 KB |
Output is correct |
13 |
Correct |
0 ms |
256 KB |
Output is correct |
14 |
Correct |
1 ms |
256 KB |
Output is correct |
15 |
Correct |
1 ms |
256 KB |
Output is correct |
16 |
Correct |
1 ms |
256 KB |
Output is correct |
17 |
Correct |
0 ms |
256 KB |
Output is correct |
18 |
Correct |
0 ms |
256 KB |
Output is correct |
19 |
Correct |
1 ms |
384 KB |
Output is correct |
20 |
Correct |
0 ms |
256 KB |
Output is correct |
21 |
Correct |
1 ms |
384 KB |
Output is correct |
22 |
Correct |
1 ms |
384 KB |
Output is correct |
23 |
Correct |
1 ms |
384 KB |
Output is correct |
24 |
Correct |
1 ms |
384 KB |
Output is correct |
25 |
Correct |
1 ms |
384 KB |
Output is correct |
26 |
Correct |
1 ms |
384 KB |
Output is correct |
27 |
Correct |
1 ms |
384 KB |
Output is correct |
28 |
Correct |
1 ms |
384 KB |
Output is correct |
29 |
Correct |
1 ms |
384 KB |
Output is correct |
30 |
Correct |
1 ms |
384 KB |
Output is correct |
31 |
Correct |
1 ms |
384 KB |
Output is correct |
32 |
Correct |
1 ms |
384 KB |
Output is correct |
33 |
Correct |
1 ms |
384 KB |
Output is correct |
34 |
Correct |
1 ms |
384 KB |
Output is correct |
35 |
Correct |
1 ms |
384 KB |
Output is correct |
36 |
Correct |
2 ms |
384 KB |
Output is correct |
37 |
Correct |
1 ms |
384 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
256 KB |
Output is correct |
2 |
Correct |
1 ms |
256 KB |
Output is correct |
3 |
Correct |
0 ms |
256 KB |
Output is correct |
4 |
Correct |
0 ms |
256 KB |
Output is correct |
5 |
Correct |
0 ms |
256 KB |
Output is correct |
6 |
Correct |
1 ms |
256 KB |
Output is correct |
7 |
Correct |
0 ms |
256 KB |
Output is correct |
8 |
Correct |
0 ms |
256 KB |
Output is correct |
9 |
Correct |
1 ms |
256 KB |
Output is correct |
10 |
Correct |
0 ms |
256 KB |
Output is correct |
11 |
Correct |
0 ms |
256 KB |
Output is correct |
12 |
Correct |
0 ms |
256 KB |
Output is correct |
13 |
Correct |
0 ms |
256 KB |
Output is correct |
14 |
Correct |
1 ms |
256 KB |
Output is correct |
15 |
Correct |
1 ms |
256 KB |
Output is correct |
16 |
Correct |
1 ms |
256 KB |
Output is correct |
17 |
Correct |
0 ms |
256 KB |
Output is correct |
18 |
Correct |
0 ms |
256 KB |
Output is correct |
19 |
Correct |
1 ms |
384 KB |
Output is correct |
20 |
Correct |
0 ms |
256 KB |
Output is correct |
21 |
Correct |
1 ms |
384 KB |
Output is correct |
22 |
Correct |
1 ms |
384 KB |
Output is correct |
23 |
Correct |
1 ms |
384 KB |
Output is correct |
24 |
Correct |
1 ms |
384 KB |
Output is correct |
25 |
Correct |
1 ms |
384 KB |
Output is correct |
26 |
Correct |
1 ms |
384 KB |
Output is correct |
27 |
Correct |
1 ms |
384 KB |
Output is correct |
28 |
Correct |
1 ms |
384 KB |
Output is correct |
29 |
Correct |
1 ms |
384 KB |
Output is correct |
30 |
Correct |
1 ms |
384 KB |
Output is correct |
31 |
Correct |
1 ms |
384 KB |
Output is correct |
32 |
Correct |
1 ms |
384 KB |
Output is correct |
33 |
Correct |
1 ms |
384 KB |
Output is correct |
34 |
Correct |
1 ms |
384 KB |
Output is correct |
35 |
Correct |
1 ms |
384 KB |
Output is correct |
36 |
Correct |
2 ms |
384 KB |
Output is correct |
37 |
Correct |
1 ms |
384 KB |
Output is correct |
38 |
Correct |
4 ms |
768 KB |
Output is correct |
39 |
Correct |
1 ms |
384 KB |
Output is correct |
40 |
Correct |
1 ms |
384 KB |
Output is correct |
41 |
Correct |
3 ms |
512 KB |
Output is correct |
42 |
Correct |
3 ms |
512 KB |
Output is correct |
43 |
Correct |
7 ms |
768 KB |
Output is correct |
44 |
Correct |
4 ms |
768 KB |
Output is correct |
45 |
Correct |
5 ms |
768 KB |
Output is correct |
46 |
Correct |
4 ms |
768 KB |
Output is correct |
47 |
Correct |
5 ms |
768 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
512 KB |
Output is correct |
2 |
Correct |
2 ms |
640 KB |
Output is correct |
3 |
Correct |
2 ms |
512 KB |
Output is correct |
4 |
Correct |
2 ms |
512 KB |
Output is correct |
5 |
Correct |
2 ms |
512 KB |
Output is correct |
6 |
Correct |
2 ms |
512 KB |
Output is correct |
7 |
Correct |
2 ms |
512 KB |
Output is correct |
8 |
Correct |
3 ms |
512 KB |
Output is correct |
9 |
Correct |
2 ms |
512 KB |
Output is correct |
10 |
Correct |
2 ms |
640 KB |
Output is correct |
11 |
Correct |
2 ms |
640 KB |
Output is correct |
12 |
Correct |
2 ms |
512 KB |
Output is correct |
13 |
Correct |
3 ms |
640 KB |
Output is correct |
14 |
Correct |
2 ms |
640 KB |
Output is correct |
15 |
Correct |
2 ms |
512 KB |
Output is correct |
16 |
Correct |
2 ms |
512 KB |
Output is correct |
17 |
Correct |
3 ms |
640 KB |
Output is correct |
18 |
Correct |
3 ms |
512 KB |
Output is correct |
19 |
Correct |
2 ms |
640 KB |
Output is correct |
20 |
Correct |
2 ms |
512 KB |
Output is correct |
21 |
Correct |
0 ms |
308 KB |
Output is correct |
22 |
Correct |
1 ms |
256 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
256 KB |
Output is correct |
2 |
Correct |
1 ms |
256 KB |
Output is correct |
3 |
Correct |
2 ms |
512 KB |
Output is correct |
4 |
Correct |
2 ms |
512 KB |
Output is correct |
5 |
Correct |
2 ms |
512 KB |
Output is correct |
6 |
Correct |
2 ms |
512 KB |
Output is correct |
7 |
Correct |
2 ms |
512 KB |
Output is correct |
8 |
Correct |
3 ms |
640 KB |
Output is correct |
9 |
Correct |
3 ms |
640 KB |
Output is correct |
10 |
Correct |
4 ms |
640 KB |
Output is correct |
11 |
Correct |
3 ms |
640 KB |
Output is correct |
12 |
Correct |
3 ms |
640 KB |
Output is correct |
13 |
Correct |
2 ms |
512 KB |
Output is correct |
14 |
Correct |
2 ms |
512 KB |
Output is correct |
15 |
Correct |
2 ms |
512 KB |
Output is correct |
16 |
Correct |
2 ms |
512 KB |
Output is correct |
17 |
Correct |
2 ms |
640 KB |
Output is correct |
18 |
Correct |
2 ms |
512 KB |
Output is correct |
19 |
Correct |
2 ms |
512 KB |
Output is correct |
20 |
Correct |
7 ms |
1024 KB |
Output is correct |
21 |
Correct |
8 ms |
1024 KB |
Output is correct |
22 |
Correct |
8 ms |
1024 KB |
Output is correct |
23 |
Correct |
8 ms |
1024 KB |
Output is correct |
24 |
Correct |
8 ms |
1024 KB |
Output is correct |
25 |
Correct |
8 ms |
1024 KB |
Output is correct |
26 |
Correct |
8 ms |
1024 KB |
Output is correct |
27 |
Correct |
13 ms |
1532 KB |
Output is correct |
28 |
Correct |
14 ms |
1532 KB |
Output is correct |
29 |
Correct |
13 ms |
1532 KB |
Output is correct |
30 |
Correct |
13 ms |
1532 KB |
Output is correct |
31 |
Correct |
14 ms |
1532 KB |
Output is correct |
32 |
Correct |
1 ms |
256 KB |
Output is correct |
33 |
Correct |
0 ms |
256 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
13 ms |
1532 KB |
Output is correct |
2 |
Correct |
0 ms |
256 KB |
Output is correct |
3 |
Correct |
2 ms |
512 KB |
Output is correct |
4 |
Correct |
3 ms |
640 KB |
Output is correct |
5 |
Correct |
3 ms |
512 KB |
Output is correct |
6 |
Correct |
3 ms |
512 KB |
Output is correct |
7 |
Correct |
8 ms |
1024 KB |
Output is correct |
8 |
Correct |
8 ms |
1024 KB |
Output is correct |
9 |
Correct |
14 ms |
1532 KB |
Output is correct |
10 |
Correct |
1 ms |
256 KB |
Output is correct |
11 |
Correct |
0 ms |
256 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
256 KB |
Output is correct |
2 |
Correct |
1 ms |
256 KB |
Output is correct |
3 |
Correct |
0 ms |
256 KB |
Output is correct |
4 |
Correct |
0 ms |
256 KB |
Output is correct |
5 |
Correct |
0 ms |
256 KB |
Output is correct |
6 |
Correct |
1 ms |
256 KB |
Output is correct |
7 |
Correct |
0 ms |
256 KB |
Output is correct |
8 |
Correct |
0 ms |
256 KB |
Output is correct |
9 |
Correct |
1 ms |
256 KB |
Output is correct |
10 |
Correct |
0 ms |
256 KB |
Output is correct |
11 |
Correct |
0 ms |
256 KB |
Output is correct |
12 |
Correct |
0 ms |
256 KB |
Output is correct |
13 |
Correct |
0 ms |
256 KB |
Output is correct |
14 |
Correct |
1 ms |
256 KB |
Output is correct |
15 |
Correct |
1 ms |
256 KB |
Output is correct |
16 |
Correct |
1 ms |
256 KB |
Output is correct |
17 |
Correct |
0 ms |
256 KB |
Output is correct |
18 |
Correct |
0 ms |
256 KB |
Output is correct |
19 |
Correct |
1 ms |
384 KB |
Output is correct |
20 |
Correct |
0 ms |
256 KB |
Output is correct |
21 |
Correct |
1 ms |
384 KB |
Output is correct |
22 |
Correct |
1 ms |
384 KB |
Output is correct |
23 |
Correct |
1 ms |
384 KB |
Output is correct |
24 |
Correct |
1 ms |
384 KB |
Output is correct |
25 |
Correct |
1 ms |
384 KB |
Output is correct |
26 |
Correct |
1 ms |
384 KB |
Output is correct |
27 |
Correct |
1 ms |
384 KB |
Output is correct |
28 |
Correct |
1 ms |
384 KB |
Output is correct |
29 |
Correct |
1 ms |
384 KB |
Output is correct |
30 |
Correct |
1 ms |
384 KB |
Output is correct |
31 |
Correct |
1 ms |
384 KB |
Output is correct |
32 |
Correct |
1 ms |
384 KB |
Output is correct |
33 |
Correct |
1 ms |
384 KB |
Output is correct |
34 |
Correct |
1 ms |
384 KB |
Output is correct |
35 |
Correct |
1 ms |
384 KB |
Output is correct |
36 |
Correct |
2 ms |
384 KB |
Output is correct |
37 |
Correct |
1 ms |
384 KB |
Output is correct |
38 |
Correct |
4 ms |
768 KB |
Output is correct |
39 |
Correct |
1 ms |
384 KB |
Output is correct |
40 |
Correct |
1 ms |
384 KB |
Output is correct |
41 |
Correct |
3 ms |
512 KB |
Output is correct |
42 |
Correct |
3 ms |
512 KB |
Output is correct |
43 |
Correct |
7 ms |
768 KB |
Output is correct |
44 |
Correct |
4 ms |
768 KB |
Output is correct |
45 |
Correct |
5 ms |
768 KB |
Output is correct |
46 |
Correct |
4 ms |
768 KB |
Output is correct |
47 |
Correct |
5 ms |
768 KB |
Output is correct |
48 |
Correct |
2 ms |
512 KB |
Output is correct |
49 |
Correct |
2 ms |
640 KB |
Output is correct |
50 |
Correct |
2 ms |
512 KB |
Output is correct |
51 |
Correct |
2 ms |
512 KB |
Output is correct |
52 |
Correct |
2 ms |
512 KB |
Output is correct |
53 |
Correct |
2 ms |
512 KB |
Output is correct |
54 |
Correct |
2 ms |
512 KB |
Output is correct |
55 |
Correct |
3 ms |
512 KB |
Output is correct |
56 |
Correct |
2 ms |
512 KB |
Output is correct |
57 |
Correct |
2 ms |
640 KB |
Output is correct |
58 |
Correct |
2 ms |
640 KB |
Output is correct |
59 |
Correct |
2 ms |
512 KB |
Output is correct |
60 |
Correct |
3 ms |
640 KB |
Output is correct |
61 |
Correct |
2 ms |
640 KB |
Output is correct |
62 |
Correct |
2 ms |
512 KB |
Output is correct |
63 |
Correct |
2 ms |
512 KB |
Output is correct |
64 |
Correct |
3 ms |
640 KB |
Output is correct |
65 |
Correct |
3 ms |
512 KB |
Output is correct |
66 |
Correct |
2 ms |
640 KB |
Output is correct |
67 |
Correct |
2 ms |
512 KB |
Output is correct |
68 |
Correct |
0 ms |
308 KB |
Output is correct |
69 |
Correct |
1 ms |
256 KB |
Output is correct |
70 |
Correct |
0 ms |
256 KB |
Output is correct |
71 |
Correct |
1 ms |
256 KB |
Output is correct |
72 |
Correct |
2 ms |
512 KB |
Output is correct |
73 |
Correct |
2 ms |
512 KB |
Output is correct |
74 |
Correct |
2 ms |
512 KB |
Output is correct |
75 |
Correct |
2 ms |
512 KB |
Output is correct |
76 |
Correct |
2 ms |
512 KB |
Output is correct |
77 |
Correct |
3 ms |
640 KB |
Output is correct |
78 |
Correct |
3 ms |
640 KB |
Output is correct |
79 |
Correct |
4 ms |
640 KB |
Output is correct |
80 |
Correct |
3 ms |
640 KB |
Output is correct |
81 |
Correct |
3 ms |
640 KB |
Output is correct |
82 |
Correct |
2 ms |
512 KB |
Output is correct |
83 |
Correct |
2 ms |
512 KB |
Output is correct |
84 |
Correct |
2 ms |
512 KB |
Output is correct |
85 |
Correct |
2 ms |
512 KB |
Output is correct |
86 |
Correct |
2 ms |
640 KB |
Output is correct |
87 |
Correct |
2 ms |
512 KB |
Output is correct |
88 |
Correct |
2 ms |
512 KB |
Output is correct |
89 |
Correct |
7 ms |
1024 KB |
Output is correct |
90 |
Correct |
8 ms |
1024 KB |
Output is correct |
91 |
Correct |
8 ms |
1024 KB |
Output is correct |
92 |
Correct |
8 ms |
1024 KB |
Output is correct |
93 |
Correct |
8 ms |
1024 KB |
Output is correct |
94 |
Correct |
8 ms |
1024 KB |
Output is correct |
95 |
Correct |
8 ms |
1024 KB |
Output is correct |
96 |
Correct |
13 ms |
1532 KB |
Output is correct |
97 |
Correct |
14 ms |
1532 KB |
Output is correct |
98 |
Correct |
13 ms |
1532 KB |
Output is correct |
99 |
Correct |
13 ms |
1532 KB |
Output is correct |
100 |
Correct |
14 ms |
1532 KB |
Output is correct |
101 |
Correct |
1 ms |
256 KB |
Output is correct |
102 |
Correct |
0 ms |
256 KB |
Output is correct |
103 |
Correct |
13 ms |
1532 KB |
Output is correct |
104 |
Correct |
0 ms |
256 KB |
Output is correct |
105 |
Correct |
2 ms |
512 KB |
Output is correct |
106 |
Correct |
3 ms |
640 KB |
Output is correct |
107 |
Correct |
3 ms |
512 KB |
Output is correct |
108 |
Correct |
3 ms |
512 KB |
Output is correct |
109 |
Correct |
8 ms |
1024 KB |
Output is correct |
110 |
Correct |
8 ms |
1024 KB |
Output is correct |
111 |
Correct |
14 ms |
1532 KB |
Output is correct |
112 |
Correct |
1 ms |
256 KB |
Output is correct |
113 |
Correct |
0 ms |
256 KB |
Output is correct |
114 |
Correct |
13 ms |
1532 KB |
Output is correct |
115 |
Correct |
2 ms |
512 KB |
Output is correct |
116 |
Correct |
2 ms |
512 KB |
Output is correct |
117 |
Correct |
8 ms |
1024 KB |
Output is correct |
118 |
Correct |
8 ms |
1024 KB |
Output is correct |
119 |
Correct |
14 ms |
1532 KB |
Output is correct |
120 |
Correct |
13 ms |
1532 KB |
Output is correct |
121 |
Correct |
14 ms |
1532 KB |
Output is correct |
122 |
Correct |
14 ms |
1532 KB |
Output is correct |
123 |
Correct |
13 ms |
1532 KB |
Output is correct |
124 |
Correct |
14 ms |
1532 KB |
Output is correct |
125 |
Correct |
15 ms |
1652 KB |
Output is correct |
126 |
Correct |
14 ms |
1532 KB |
Output is correct |
127 |
Correct |
14 ms |
1532 KB |
Output is correct |
128 |
Correct |
15 ms |
1532 KB |
Output is correct |