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;
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define all(s) s.begin(),s.end()
#define rall(s) s.rbegin(),s.rend()
void construct_network(int H,int W,int K){
vector<int>row,col;
int cur=H*W;
for(int i=0;i<H;i++){
vector<int>Ns;
for(int j=0;j<W;j++){
Ns.pb(i*W+j);
}
int a=add_or(Ns);
cur++;
if(a==1){
row.pb(i);
}
}
for(int j=0;j<W;j++){
vector<int>Ns;
for(int i=0;i<H;i++){
Ns.pb(i*W+j);
}
int a=add_or(Ns);
cur++;
if(a==1){
col.pb(j);
}
}
}
# | 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... |