Submission #1048659

# Submission time Handle Problem Language Result Execution time Memory
1048659 2024-08-08T08:58:23 Z fuad27 Vision Program (IOI19_vision) C++17
0 / 100
120 ms 1152 KB
#include "vision.h"
using namespace std;
void construct_network(int H, int W, int k) {
	vector<int> rs;
	for(int i = 0;i<H;i++) {
		for(int j = 0;j<W;j++){
			vector<int> idxs;
			for(int i1 = 0;i1<H;i1++) {
				for(int j1 = 0;j1<W;j1++) {
					if(abs(i-i1) + abs(i1-j1) == k) {
						idxs.push_back(i1*W+j1);
					}
				}
			}
			int id = add_or(idxs);
			rs.push_back(add_and({W*i+j, id}));
		}
	}
	add_or(rs);
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB on inputs (0, 1), (0, 2), expected 0, but computed 1
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB on inputs (0, 1), (0, 2), expected 0, but computed 1
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB on inputs (0, 1), (0, 2), expected 0, but computed 1
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB on inputs (0, 1), (0, 2), expected 0, but computed 1
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB on inputs (0, 1), (0, 3), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB on inputs (0, 0), (1, 1), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 120 ms 1152 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB on inputs (0, 1), (0, 2), expected 0, but computed 1
3 Halted 0 ms 0 KB -