제출 #383820

#제출 시각아이디문제언어결과실행 시간메모리
383820thiago4532도시들 (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); }

컴파일 시 표준 에러 (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...