| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 146710 | daniel920712 | Vision Program (IOI19_vision) | C++14 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <stdlib.h>
#include <vision.h>
using namespace std;
vector < int > temp;
vector < int > temp2;
vector < int > all;
void construct_network(int H, int W, int K)
{
int i,j;
for(i=0;i<H;i++)
{
for(j=0;j<W;j++)
{
temp.clear();
for(k=0;k<=K;k++) if(i+k<H&&j+(K-k)<W) temp.push_back(!add_not((i+K)*H+j+(K-k)));
if(!temp.empty())
{
temp2.clear();
temp2.push_back(!add_not(i*H+j));
temp2.push_back(add_or(temp));
all.push_back(add_and(temp2));
}
}
}
add_or(all);
}
