Submission #383824

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

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...