# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1033407 | 2024-07-24T18:38:58 Z | ALeonidou | Vision Program (IOI19_vision) | C++17 | 1000 ms | 348 KB |
#include "vision.h" #include <bits/stdc++.h> using namespace std; #define ll int #define pb push_back #define sz(x) (ll)x.size() #define F first #define S second #define endl "\n" typedef vector <ll> vi; typedef pair <ll,ll> ii; typedef vector <ii> vii; #define dbg(x) cout<<#x<<": "<<x<<endl; #define dbg2(x,y) cout<<#x<<": "<<x<<" "<<#y<<": "<<y<<endl; #define dbg3(x,y,z) cout<<#x<<": "<<x<<" "<<#y<<": "<<y<<" "<<#z<<": "<<z<<endl; void printVct(vi &v){ for (ll i =0; i<sz(v); i++){ cout<<v[i]<<" "; } cout<<endl; } ll h, w, k; ll get_point(ll x, ll y){ return (x * w) + y; } void construct_network(int H, int W, int K) { h = H, w = W, k = K; ll c = 0; for (ll x1 =0; x1<h; x1++){ for (ll y1 =0; y1<w; y1++){ for (ll x2 = 0; x2<h; x2++){ for (ll y2 = 0; y2 < w; y2++){ ll d = abs(x1-x2) + abs(y1+y2); if (d == k){ ll x = add_and({get_point(x1,y1), get_point(x2,y2)}); c++; } } } } } vi v; for (ll i =h*w; i<h*w+c; i++){ v.pb(i); } add_or(v); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 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 | 1 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 | 1 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 | 1 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 | 344 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 | Correct | 0 ms | 348 KB | Output is correct |
2 | Incorrect | 0 ms | 348 KB | on inputs (0, 0), (0, 1), expected 0, but computed 1 |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1066 ms | 348 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | on inputs (0, 1), (0, 2), expected 1, but computed 0 |
2 | Halted | 0 ms | 0 KB | - |