Submission #548804

#TimeUsernameProblemLanguageResultExecution timeMemory
548804usukhbaatarCity Mapping (NOI18_citymapping)C++14
9 / 100
50 ms468 KiB
#include "citymapping.h" #include <vector> using namespace std; void find_roads(int N, int Q, int A[], int B[], int W[]) { vector<pair<int, pair<int, int>>> e; int xx = 0; for (int i = 1; i <= N; i++) { for (int j = i + 1; j <= N; j++) { int temp = get_distance(i, j); if (temp == 1) { A[xx] = i; B[xx] = j; W[xx] = 1; xx++; } } } 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...