Submission #1048683

# Submission time Handle Problem Language Result Execution time Memory
1048683 2024-08-08T09:04:18 Z fuad27 Vision Program (IOI19_vision) C++17
0 / 100
0 ms 348 KB
#include "vision.h"
using namespace std;
void construct_network(int H, int W, int k) {
		vector<int> rs;
		for(int i = 0;i<1;i++) {
			for(int j = 0;j<1;j++){
				vector<int> idxs;
				for(int i1 = 0;i1<=i;i1++) {
					for(int j1 = 0;j1<W;j1++) {
						if(abs(i-i1) + abs(j-j1) == k) {
							idxs.push_back(i1*W+j1);
						}
					}
				}
				if(idxs.size()) {
					int id = add_or(idxs);
					rs.push_back(add_and({W*i+j, id}));
				}
			}
		}
		add_or(rs);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB on inputs (0, 0), (1, 0), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB on inputs (80, 199), (81, 199), expected 1, but computed 0
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB on inputs (0, 1), (0, 2), expected 1, but computed 0
2 Halted 0 ms 0 KB -