# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
826104 | tolbi | Vision Program (IOI19_vision) | C++17 | 6 ms | 1108 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.
#pragma optimize("Bismilahirrahmanirrahim")
//█▀█─█──█──█▀█─█▀█
//█▄█─█──█──█▄█─█■█
//█─█─█▄─█▄─█─█─█─█
//Allahuekber
//ahmet23 orz...
//FatihSultanMehmedHan
//YavuzSultanSelimHan
//AbdulhamidHan
//Sani buyuk Osman Pasa Plevneden cikmam diyor
#define author tolbi
#include <bits/stdc++.h>
using namespace std;
#define coutarr(x) for (auto &it : x) cout<<it<<" ";cout<<endl;
#define vint(x) vector<int> x
#define sortarr(x) sort(x.begin(), x.end())
#define sortrarr(x) sort(x.rbegin(), x.rend())
#define tol(bi) (1LL<<((int)(bi)))
typedef long long ll;
const int MOD = 1e9+7;
mt19937 ayahya(chrono::high_resolution_clock().now().time_since_epoch().count());
#include "vision.h"
void construct_network(int H, int W, int K) {
vector<int> columns;
for (int i = 0; i < H; i++){
vector<int> arr;
for (int j = 0; j < W; j++){
arr.push_back(i*W+j);
}
columns.push_back(add_xor(arr));
}
vector<int> rows;
for (int i = 0; i < W; i++){
vector<int> arr;
for (int j = 0; j < H; j++){
arr.push_back(j*W+i);
}
rows.push_back(add_xor(arr));
}
vector<int> final1;
vector<int> final2;
for (int i = 1; i < rows.size(); i++){
final1.push_back(add_and({rows[i],rows[i-1]}));
}
for (int i = 1; i < columns.size(); i++){
final2.push_back(add_and({columns[i],columns[i-1]}));
}
int a = add_or(final1);
int b = add_or(final2);
add_xor({a,b});
}
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... |