| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 144811 | cfalas | Vision Program (IOI19_vision) | C++14 | 4 ms | 1144 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;
void construct_network(int H, int W, int K) {
std::vector<int> Ns;
for(int x1=0;x1<W;x1++){
for(int y1=0;y1<H;y1++){
//cout<<endl<<x1+W*y1<<": \n";
vector<int> a(2);
a[0] = (y1*W + x1);
int origx=K+x1, origy=y1;
for(int i=0;i<K;i++){
//cout<<origx+origy*W<<" ";
if(origx<W && origx>=0 && origy<H && origy>=0){
a[1] = origy*W+origx;
Ns.push_back(add_and(a));
}
origy++;
origx--;
}
for(int i=0;i<K;i++){
//cout<<origx+origy*W<<" ";
if(origx<W && origx>=0 && origy<H && origy>=0){
a[1] = origy*W+origx;
Ns.push_back(add_and(a));
}
origy--;
origx--;
}
for(int i=0;i<K;i++){
//cout<<origx+origy*W<<" ";
if(origx<W && origx>=0 && origy<H && origy>=0){
a[1] = origy*W+origx;
Ns.push_back(add_and(a));
}
origy--;
origx++;
}
for(int i=0;i<K;i++){
//cout<<origx+origy*W<<" ";
if(origx<W && origx>=0 && origy<H && origy>=0){
a[1] = origy*W+origx;
Ns.push_back(add_and(a));
}
origy++;
origx++;
}
}
}
int a = add_or(Ns);
}
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... | ||||
