# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
579190 | Vanilla | Vision Program (IOI19_vision) | C++17 | 15 ms | 1716 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "vision.h"
using namespace std;
void construct_network(int H, int W, int K) {int op=0;vector<int>row,col;vector<int>T;vector<int>v;for(int i=0;i<H;i++){for(int j=0;j<W;j++){v.push_back(i*W+j);}T.push_back(add_xor(v));v={T.back()};}for(int j=0;j<W;j++){for(int i=0;i<H;i++){v.push_back(i*W+j);}T.push_back(add_xor(v));v={T.back()};}int last=T.back();vector<int>rs;for(int i=0;i<9;i++){rs.push_back(add_xor(T));if(K&(1<<i))rs[i]=add_not(rs[i]);vector<int>hl;int now=last;for(int i:T){hl.push_back(add_and({now,i}));now=add_xor({now,i});}T=hl;}add_not(add_or(rs));}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |