Commit 95880b9f authored by Yuncong Yu's avatar Yuncong Yu
Browse files

Use squared distance

parent fb104e97
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
#include <random> #include <random>
#define INF 1e20 // Pseudo-infinite number for this code #define INF 1e20 // Pseudo-infinite number for this code
//#define dist(x,y) ((x-y)*(x-y)) #define dist(x,y) ((x-y)*(x-y))
#define dist(x,y) (abs(x-y)) //#define dist(x,y) (abs(x-y))
using namespace std; using namespace std;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment