Submission #147485

#TimeUsernameProblemLanguageResultExecution timeMemory
147485JovanK26City Mapping (NOI18_citymapping)C++14
0 / 100
3 ms504 KiB
#include "citymapping.h" #include<bits/stdc++.h> bool vis[1001][1001]; void find_roads(int N, int Q, int A[], int B[], int W[]) { int br=0; for(int i=0;i<N;i++) { for(int j=0;j<N;j++) { if(i==j)continue; if(vis[i][j] || vis[j][i])continue; vis[i][j]=1; vis[j][i]=1; int temp=get_distance(i, j); if(temp==1) { A[br]=i; B[br]=j; W[br]=1; br++; } } } return; }
#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...