Submission #359798

#TimeUsernameProblemLanguageResultExecution timeMemory
359798kylych03Towns (IOI15_towns)C++14
Compilation error
0 ms0 KiB
#include "towns.h" #include <bits/stdc++.h> #include "grader.cpp" using namespace std; int d1[1000]; int d2[1000]; int hubDistance(int N, int sub) { int mx = 0, u1, x , u2; for(int i = 1; i < N; i++){ x = getDistance(0,i); if(x > mx){ mx = x; u1 = i; } } d1[0]=mx; mx = 0; for(int i = 0; i < N; i++){ d1[i]=getDistance(u1,i); if(d1[i] > mx){ mx = d1[i]; u2 = i; } } d2[u1] = mx; int diam = mx; int res = diam; for(int i = 0; i < N; i++){ d2[i]=getDistance(u2,i); int len = (d1[i] + d2[i] - diam ) / 2; len = d2[i] - len; res = min(res, max(len, diam - len)); } for(int i = 0 ; i < N ;i++) d1[i] = d2[i] = 0; return res; }

Compilation message (stderr)

towns.cpp:3:10: fatal error: grader.cpp: No such file or directory
    3 | #include "grader.cpp"
      |          ^~~~~~~~~~~~
compilation terminated.