摘要: 设宽度为w,二分w。 1 #include <cstdio> 2 #include <cmath> 3 #include <algorithm> 4 5 #define eps 1e-6 6 7 using namespace std; 8 9 int main()10 {11 double x, y, c;12 while ( ~scanf( "%lf%lf%lf", &x, &y, &c ) )13 {14 double high = min( x, y );15 double low = 0.0;16 dou 阅读全文
posted @ 2013-06-15 23:44 冰鸮 阅读(357) 评论(0) 推荐(0)
摘要: 我是求出来所有点的坐标用叉积算的面积……据说可以证明出来S△PQR = S△ABC/7 1 #include <cstdio> 2 #include <cmath> 3 4 struct Point 5 { 6 double x, y; 7 Point( double x = 0, double y = 0 ):x(x), y(y) { } 8 }; 9 10 Point operator+( Point A, Point B ) 11 { 12 return Point( A.x + B.x, A.y + B.y ); 13 } 14 15 P... 阅读全文
posted @ 2013-06-15 20:52 冰鸮 阅读(331) 评论(0) 推荐(0)