#include #include #include using namespace std; const int N=1010; const int H=10007; int ptx[N], pty[N]; struct Node { int x; int y; int next; }; Node node[N]; int cur; int n; long ans; int hashTable[H]; void initHash() { for(int i=0;i>=2; printf("%ld\n", ans); } return 0; }