Submission #427716

# Submission time Handle Problem Language Result Execution time Memory
427716 2021-06-14T19:54:20 Z MDario Vision Program (IOI19_vision) C++17
0 / 100
206 ms 960 KB
#include "vision.h"
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define F first
#define S second
void construct_network(int n, int m, int K) {
	vector<int> ns, r;
	ll c=n*m;
	for(int i=0; i<n; i++){
        for(int t=0; t<n; t++){
            ns.clear();
            ns.push_back(i*m+t);
            add_and(ns);
            ns.clear();
            ns.push_back(c);
            c++;
            for(int i1=0; i1<n; i1++){
                for(int t1=0; t1<m; t1++){
                    if(abs(i-i1)+abs(t-t1)==K)ns.push_back(i1*m+t1);
                }
            }
            add_or(ns);
            r.push_back(c);
            c++;
        }
	}
	add_or(r);
	return;
}
//add_and(ns);
//add_or(ns);
//add_xor(ns);
//add_not(c);
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 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 206 ms 960 KB WA in grader: Too many instructions
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -