2011年8月20日

hdu 1115 lift the stone<求多边形的重心>

摘要: #include<iostream>#include<cmath>using namespace std;struct point{ double x,y; point (double xx=0,double yy=0){ x=xx; y=yy; } double operator *(point b){ return x*b.y-y*b.x; }}p[1000001];int main(){ int T,N,i; scanf("%d",&T); while(T--) { scanf("%d",&N); for(i 阅读全文

posted @ 2011-08-20 15:52 Goal 阅读(150) 评论(0) 推荐(0) 编辑

导航