Submission #427724

# Submission time Handle Problem Language Result Execution time Memory
427724 2021-06-14T20:09:01 Z MDario Vision Program (IOI19_vision) C++17
0 / 100
1 ms 296 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++){
            if(i+t==K)r.push_back(i*m+t);
//            ns.clear();
//            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);
//                }
//            }
//            if(ns.size()==0)continue;
//            add_or(ns);
//            ns.clear();
//            ns.push_back(i*m+t);
//            add_and(ns);
//            ns.clear();
//            c++;
//            ns.push_back(c-1);
//            ns.push_back(c);
//            c++;
//            add_and(ns);
//            r.push_back(c);
//            c++;
        }
	}
	add_or(r);
	return;
}
//add_and(ns);
//add_or(ns);
//add_xor(ns);
//add_not(c);

Compilation message

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:9:5: warning: unused variable 'c' [-Wunused-variable]
    9 |  ll c=n*m;
      |     ^
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 296 KB Output is correct
7 Incorrect 1 ms 204 KB on inputs (0, 0), (100, 0), expected 0, but computed 1
8 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 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 1 ms 204 KB WA in grader: Instruction with no inputs
2 Halted 0 ms 0 KB -