답안 #390546

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
390546 2021-04-16T09:44:04 Z qwerasdfzxcl Vision Program (IOI19_vision) C++14
0 / 100
2 ms 968 KB
#include "vision.h"
#include <bits/stdc++.h>

typedef long long ll;
using namespace std;

void construct_network(int H, int W, int K) {
    int idx=-1;
	for (int i=0;i<H;i++){
        for (int j=0;j<W;j++){
            for (int i1=0;i1<H;i1++){
                int d = K-abs(i1-i);
                if (j-d>=0){
                    vector<int> v = {i*W+j, i1*W+(j-d)};
                    idx = add_and(v);
                }
                if (j+d<W){
                    vector<int> v = {i*W+j, i1*W+(j+d)};
                    idx = add_and(v);
                }
            }
        }
	}
	assert(idx!=-1);
    vector<int> v;
    for (int i=H*W;i<=idx;i++) v.push_back(i);
    add_or(v);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 204 KB WA in grader: Invalid index
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 204 KB WA in grader: Invalid index
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 204 KB WA in grader: Invalid index
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 204 KB WA in grader: Invalid index
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 332 KB Output is correct
2 Correct 1 ms 208 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Incorrect 1 ms 332 KB WA in grader: Invalid index
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 2 ms 968 KB WA in grader: Too many instructions
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 968 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 204 KB WA in grader: Invalid index
4 Halted 0 ms 0 KB -