Submission #1052725

#TimeUsernameProblemLanguageResultExecution timeMemory
1052725XJP12Vision Program (IOI19_vision)C++14
0 / 100
361 ms1080 KiB
#include<bits/stdc++.h> #include "vision.h" using namespace std; typedef vector<int> vi; void construct_network(int h, int w, int k){ int ans=0; for(int i=0; i<h*w; i++){ for(int j=i+1; j<h*w; j++){ int x1,x2; int y1,y2; x1=i/w; y1=i%w; x2=j/w; y2=j%w; if(abs(x2-x1) + abs(y2-y1) == k){ vi ns = {i,j}; add_and(ns); ans++; } } } vi ora; for(int i=h*w; i<=h*w+ans; i++){ ora.push_back(i); } add_or(ora); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...