Submission #1052721

# Submission time Handle Problem Language Result Execution time Memory
1052721 2024-08-10T19:54:49 Z XJP12 Vision Program (IOI19_vision) C++14
0 / 100
0 ms 348 KB
#include<bits/stdc++.h>
#include "vision.h"
using namespace std;
typedef vector<int> vi;

void construct_network(int h, int w, int k){
	int ans=0;	
	for(int i=0; i<h; i++){
		for(int j=i; j<w; j++){
			int x1,x2;
			int y1,y2;
			x1=i/w;
			y1=i%w;
			x2=j/w;
			y2=j%w;
			if(abs(x2-x1) + abs(y2-y1) == k){
				vi ns = {i,j};
				add_and(ns);
				ans++;
			}
		}
	}
	vi ora;
	for(int i=h*w; i<=h*w+ans; i++){
		ora.push_back(i);
	}
	add_or(ora);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB WA in grader: Invalid index
2 Halted 0 ms 0 KB -