Submission #604684

#TimeUsernameProblemLanguageResultExecution timeMemory
604684fuad27ICC (CEOI16_icc)C++17
0 / 100
389 ms492 KiB
#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 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...