# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
823759 | 2023-08-13T06:04:56 Z | ZHIRDILBILDIZ | Vision Program (IOI19_vision) | C++14 | 1 ms | 976 KB |
#include<bits/stdc++.h> #include "vision.h" #define fi first #define se second #define ll long long using namespace std ; const int N = 200, M = 200 ; //int add_not(int n) //{ //} //int add_and(vector<int> v) //{ //} //int add_or(vector<int> v) //{ //} //int add_xor(vector<int> v) //{ //} void construct_network(int n, int m, int k) { bool flag = 0 ; vector<pair<int, int>> pn ; for(int x1 = 0 ; x1 < n ; x1++) for(int y1 = 0 ; y1 < m ; y1++) { vector<int> v ; v.push_back(x1 * m + y1) ; if(add_and(v) == 1) pn.push_back({x1, y1}) ; } pair<int, int> p1 = pn[0], p2 = pn[1] ; if(abs(p1.fi - p2.fi) + abs(p1.se - p2.se) == k) { vector<int> v = {p1.fi * m + p1.se, p2.fi * m + p2.se} ; add_and(v) ; } else add_not(p1.fi * m + p1.se) ; return ; } //signed main() //{ // int n, m, k ; // cin >> n >> m >> k ; // for(int i = 0 ; i < n ; i++) // for(int j = 0 ; j < n ; j++) // cin >> a[i][j] ; // construct_network(n, m, k) ; // return 0 ; //}
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 340 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 340 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 340 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 340 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 340 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 0 ms | 340 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 976 KB | WA in grader: Too many instructions |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 340 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |