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 <icc.h>
using namespace std;
set<pair<int,int>>st;
void run(int n){
for(int k = 1; k < n; k++){
int u = 0, v = 0;
for(int i = 1; i <= n; i++){
if(u)break;
for(int j = i+1; j <= n; j++){
if(st.find({i,j}) != st.end())continue;
int a[1],b[1];
a[0] = i; b[0] = j;
int x = query(1,1,a,b);
if(x){u = i; v = j; break;}
}
}
st.insert({u,v});
setRoad(u,v);
}
}
# | 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... |