2013年11月12日

生成不重复的随机数对(C/C++)

摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int max_rand = 2001; 7 int a[max_rand], b[max_rand]; 8 struct node 9 {10 int x, y;11 bool operator < (const node q) const12 {13 if(x == q.x)14 return y < q.y;15 return x < q.x;16 ... 阅读全文

posted @ 2013-11-12 14:24 圣手摘星 阅读(731) 评论(0) 推荐(0) 编辑

导航