|
@@ -50,16 +50,13 @@ struct E {
|
|
|
int v2;
|
|
|
double len;
|
|
|
E(int v1, int v2, double len) : v1(v1), v2(v2), len(len) {}
|
|
|
- bool operator<(const E &that) const {
|
|
|
- return this->len > that.len;
|
|
|
- }
|
|
|
+ bool operator<(const E &that) const { return this->len > that.len; }
|
|
|
};
|
|
|
|
|
|
int main() {
|
|
|
int n, e;
|
|
|
scanf("%d", &n);
|
|
|
- for (int i = 0; i < n; i++)
|
|
|
- scanf("%lf %lf", &v[i].x, &v[i].y);
|
|
|
+ for (int i = 0; i < n; i++) scanf("%lf %lf", &v[i].x, &v[i].y);
|
|
|
priority_queue<E> q;
|
|
|
for (int i = 0; i < n - 1; i++) {
|
|
|
for (int j = i + 1; j < n; j++) {
|