摘要:
不完整,待补充#include #include #include using namespace std;const double eps = 1e-10;struct Point{ double x, y; Point( double x = 0, double y = 0 ):x(x), y(y) { }};typedef Point Vector;Vector operator+( Vector A, Vector B ) //向量加{ return Vector( A.x + B.x, A.y + B.y );}Vector operator-( Vec... 阅读全文
posted @ 2013-06-16 21:00
冰鸮
阅读(259)
评论(0)
推荐(0)
摘要:
因为两段圆弧在同一个圆上,所以该圆是矩形的外接圆,由此可通过圆心角解得两段圆弧长,设矩形的长为x,宽为y,列出方程可解得:x = 400.0 / ( 2.0 + ( 2.0 * atan( b / a ) * sqrt( a*a + b*b ) ) / a )y = x * b / a; 1 #include <cstdio> 2 #include <cmath> 3 #include <algorithm> 4 5 using namespace std; 6 7 int main() 8 { 9 int cas = 0;10 double a, b;11 阅读全文
posted @ 2013-06-16 14:00
冰鸮
阅读(264)
评论(0)
推荐(0)

浙公网安备 33010602011771号