Submission #718427

#TimeUsernameProblemLanguageResultExecution timeMemory
718427pafag93064Towns (IOI15_towns)C++14
0 / 100
11 ms848 KiB
#include "towns.h" #include<bits/stdc++.h> using namespace std; int hubDistance(int N,int sub) { int maxd=0; for(int i=0;i<N;i++) { for(int j=0;j<i;j++) { maxd=max(maxd,getDistance(i,j)); } } return maxd/2; }

Compilation message (stderr)

towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:4:27: warning: unused parameter 'sub' [-Wunused-parameter]
    4 | 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...