Submission #1052725

# Submission time Handle Problem Language Result Execution time Memory
1052725 2024-08-10T19:55:57 Z XJP12 Vision Program (IOI19_vision) C++14
0 / 100
361 ms 1080 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*w; i++){
		for(int j=i+1; j<h*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 1 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 361 ms 1080 KB WA in grader: Too many instructions
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 -