# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
436830 | Belgutei | Vision Program (IOI19_vision) | C++17 | 3 ms | 968 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "vision.h"
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mk make_pair
vector<int> v;
void construct_network(int H, int W, int K) {
freopen("01.in", "r", stdin);
freopen("01.out", "w", stdout);
v.clear();
for(int i=0; i<H*W; i++){
vector<int> tur;
tur.clear();
tur.pb(i);
int x=add_not(i);
if(x==0){
v.pb(i);
}
}
int a=v[0]%W;
int b=v[0]%W;
int c=v[1]%W;
int d=v[2]%W;
if(abs(a-c)+abs(b-d)==K){
add_not(0);
}
else add_not(1);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |