Submission #383820

#TimeUsernameProblemLanguageResultExecution timeMemory
383820thiago4532Towns (IOI15_towns)C++17
0 / 100
18 ms364 KiB
#include <bits/stdc++.h> #include "towns.h" using namespace std; int dist[150][150]; int hubDistance(int N, int sub) { int n = N; int maior = 0; for (int i = 1; i <= n; i++) { for (int j = i + 1; j <= n; j++) { maior = max(maior, getDistance(i, j)); } } return (maior>>1) + !(maior&1); }

Compilation message (stderr)

towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:8:28: warning: unused parameter 'sub' [-Wunused-parameter]
    8 | int hubDistance(int N, int sub) {
      |                        ~~~~^~~
#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...