Submission #807142

# Submission time Handle Problem Language Result Execution time Memory
807142 2023-08-04T14:04:13 Z Benmath Vision Program (IOI19_vision) C++14
0 / 100
1000 ms 256 KB
#include "vision.h"
#include<bits/stdc++.h>
using namespace std;
void construct_network(int H, int W, int K) {
	std::vector<int> Ns;
	int a;

			for(int i=0;i<H;i++){
				for(int j=0;j<W;j++){
					Ns.clear();
						for(int k=0;k<H;K++){
							for(int t=0;t<W;t++){
								if((abs(i-k)+abs(j-t))==K){
									Ns.push_back(k*W+t);
								}
							}
						}
						a=add_or(Ns);
						int b=add_and({a,i*W+j});
						a=b;
				}
			}
		
	
	Ns.clear();
	for(int i=H*W+1;i<=a;i=i+2){
		Ns.push_back(i);
	}
	 a = add_or(Ns);
}

Compilation message

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:26:19: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
   26 |  for(int i=H*W+1;i<=a;i=i+2){
      |                  ~^~~
# Verdict Execution time Memory Grader output
1 Execution timed out 1083 ms 212 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1083 ms 212 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1083 ms 212 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1083 ms 212 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1059 ms 256 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1068 ms 212 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1079 ms 212 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1083 ms 212 KB Time limit exceeded
2 Halted 0 ms 0 KB -