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 "icc.h"
#include<bits/stdc++.h>
using namespace std;
void run(int n) {
vector<vector<bool>> vis(n+1,vector<bool>(n+1, 0));
for(int c = 1;c<n;c++) {
for(int i = 1;i<=n;i++) {
for(int j = 1;j<=n;j++) {
if(i == j)continue;
int A[1] = {i}, B[1] = {j};
int k = query(1,1,A,B);
if(k>0 and !vis[i][j]) {
// cout << i << " " << j << endl;
setRoad(i,j);
vis[i][j]=1;
}
}
}
}
}
# | 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... |