Search found 2 matches

by AirFishQi
Thu Feb 28, 2013 4:23 pm
Forum: Volume 102 (10200-10299)
Topic: 10245 - The Closest Pair Problem
Replies: 92
Views: 33855

Re: 10245 - The Closest Pair Problem

Thanks for your help.
by AirFishQi
Wed Feb 27, 2013 5:22 pm
Forum: Volume 102 (10200-10299)
Topic: 10245 - The Closest Pair Problem
Replies: 92
Views: 33855

10245 - The Closest Pair Problem

I still got a lot of WA... I Don't know why....
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#define MAX_NUM 10010
using namespace std;

struct POINT {
double x, y;
} point[ MAX_NUM ];

double distance( struct POINT *a, struct POINT *b )
{
double ...

Go to advanced search