# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
286786 | medmdg | Vision Program (IOI19_vision) | C++14 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#include "vision.h"
using namespace std;
void construct_network(int H, int W, int K){
int b1=-1,b2;
for(int i=0;i<H*W;i+=20){
vector<int> h:
for(int j=i;j<min(i+20,H*W);j++){
h.push_back(j);
}
if(add_or[h]){
for(int j=i;j<H*W;j++){
if(add_not[j]==0){
if(b1==-1){
b1=j;
}else{
b2=j;
}
}
}
}
int x1=b1%W;
int x2=b2%W;
int y1=b1/W;
int y2=b2/W;
bool tr=false;
if(abs(x1-x2)+abs(y1-y2)==K){
tr=true;
}
vector<int> h;
h.push_back(b1);
if(tr){
int f=add_or[h];
}else{
int f=add_not[b1];
}
}
}