摘要:
题意:已知每个圆圆心的坐标和半径,求绳的长度。。思路:每个圆心围成的多边形的周长,加上圆的周长。代码:#include <iostream>#include <cmath>#include <iomanip>usingnamespace std;constdouble PI=3.141592;typedef struct{ double x,y;}Point;Point p[103];double a[103];int main(){ int n; double r; cin>>n>>r; cin>>p[0].x>& 阅读全文
posted @ 2011-06-11 12:54
andyidea
阅读(377)
评论(0)
推荐(0)

浙公网安备 33010602011771号