摘要: 注意传参的 类型。。。模版啊。。。 1 /* 2 ID:cuizhe 3 LANG: C++ 4 TASK: fc 5 */ 6 #include <cstdio> 7 #include <cstring> 8 #include <cmath> 9 #include <queue>10 #include <iostream>11 #include <algorithm>12 using namespace std;13 #define eps 1e-614 struct Point15 {16 double x,y;17 阅读全文
posted @ 2013-05-17 16:50 Naix_x 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 终于结束了第4章。。倒数第二个题,卡了2个月。。。这个题,实现起来,还挺麻烦的,看懂题意,建好图,就是裸的拓扑排序了。 1 /* 2 ID:cuizhe 3 LANG: C++ 4 TASK: frameup 5 */ 6 #include <cstdio> 7 #include <cstring> 8 #include <cmath> 9 #include <queue> 10 #include <iostream> 11 using namespace std; 12 int lx[30],ly[30],rx[30],ry[30] 阅读全文
posted @ 2013-05-17 10:39 Naix_x 阅读(177) 评论(0) 推荐(0) 编辑