#include "vision.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 1e5;
int a[N];
void MakeItGood(int h, int w) {
for(int i = 0; i < h * w - 1; i++) {
a[i] = 0;
}
}
/*int add_and(vector<int> x) {
for(int i = 0; i < x.size(); i++) {
if(a[x[i]] != 1)
return 0;
}
return 1;
}*/
void construct_network(int H, int W, int K) {
//doing for 12 points
int curPos = H * W;
if(H > W)
swap(H, W);
/*for(int i = 0; i < H * W; i++) {
cout << a[i];
}
cout << endl;*/
if(H == 1) {
vector<int> lol;
lol.push_back(0);
lol.push_back(K);
int z = 0;
while(lol[1] < W) {
z = add_and(lol);
if(z == 1)
break;
lol[0]++;
lol[1]++;
}
//cout << z << endl;
return;
}
/*std::vector<int> Ns;
Ns = {0, 1};
int a = add_and(Ns);
Ns = {0, a};
int b = add_or(Ns);
Ns = {0, 1, b};
int c = add_xor(Ns);
add_not(c);*/
}
/*int main() {
int h, w, k;
cin >> h >> w >> k;
while(true) {
int r1;
cin >> r1;
if(r1 == -1)
break;
int c1, r2, c2;
cin >> c1 >> r2 >> c2;
MakeItGood(h, w);
a[r1 * w + c1] = 1;
a[r2 * w + c2] = 1;
construct_network(h, w, k);
}
}*/
Compilation message
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:23:9: warning: unused variable 'curPos' [-Wunused-variable]
23 | int curPos = H * W;
| ^~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
504 KB |
on inputs (0, 0), (0, 1), expected 1, but computed 0 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
504 KB |
on inputs (0, 0), (0, 1), expected 1, but computed 0 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
504 KB |
on inputs (0, 0), (0, 1), expected 1, but computed 0 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
504 KB |
on inputs (0, 0), (0, 1), expected 1, but computed 0 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
364 KB |
on inputs (0, 0), (0, 1), expected 1, but computed 0 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
364 KB |
Integer parameter [name=num_gates] equals to 0, violates the range [1, 10000] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
364 KB |
Integer parameter [name=num_gates] equals to 0, violates the range [1, 10000] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
504 KB |
on inputs (0, 0), (0, 1), expected 1, but computed 0 |
2 |
Halted |
0 ms |
0 KB |
- |