# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
304387 | daniel920712 | Vision Program (IOI19_vision) | C++14 | 24 ms | 2040 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;
vector < int > ans;
int x[205];
int y[205];
int dex[205];
int dey[205];
void construct_network(int H, int W, int K)
{
int i,j,k,now=H*W-1;
for(i=0;i<H;i++)
{
temp.clear();
for(j=0;j<K;j++)
{
temp.push_back(i*W+j);
}
}
/*if(K!=1||H==1||W==1)
{
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((i+k)*W+j+(K-k));
for(k=0;k<=K;k++) if(i+k<H&&j-(K-k)>=0) temp.push_back((i+k)*W+j-(K-k));
if(!temp.empty())
{
temp2.clear();
temp2.push_back(i*W+j);
add_or(temp);
now++;
temp2.push_back(now);
add_and(temp2);
now++;
all.push_back(now);
}
if(i==0&&j==0&&max(H,W)>30&&min(H,W)!=1)
{
add_or(all);
return;
}
}
}
add_or(all);
}
else*/
{
for(i=0;i<H;i++)
{
temp.clear();
for(j=0;j<W;j++) temp.push_back(i*W+j);
add_or(temp);
now++;
x[i]=now;
}
for(i=0;i<W;i++)
{
temp.clear();
for(j=0;j<H;j++) temp.push_back(j*W+i);
add_or(temp);
now++;
y[i]=now;
}
for(i=1;i<H;i++)
{
temp.clear();
temp.push_back(x[i]);
temp.push_back(x[i-1]);
add_and(temp);
now++;
temp2.push_back(now);
}
for(i=0;i<W;i++)
{
temp.clear();
for(j=0;j<W;j++) if(i!=j) temp.push_back(y[j]);
add_or(temp);
now++;
add_not(now);
now++;
all.push_back(now);
}
add_or(temp2);
temp.clear();
now++;
temp.push_back(now);
add_or(all);
now++;
temp.push_back(now);
add_and(temp);
now++;
ans.push_back(now);
for(i=1;i<W;i++)
{
temp.clear();
temp.push_back(y[i]);
temp.push_back(y[i-1]);
add_and(temp);
now++;
temp2.push_back(now);
}
for(i=0;i<H;i++)
{
temp.clear();
for(j=0;j<H;j++) if(i!=j) temp.push_back(x[j]);
add_or(temp);
now++;
add_not(now);
now++;
all.push_back(now);
}
add_or(temp2);
temp.clear();
now++;
temp.push_back(now);
add_or(all);
now++;
temp.push_back(now);
add_and(temp);
now++;
ans.push_back(now);
add_or(ans);
}
}
컴파일 시 표준 에러 (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... |