摘要: View Code #include<iostream>#include<cstdio>#include<cstring>using namespace std;int len[501];int a[501],b[501];int main(){ int cas;int n,m; scanf("%d",&cas); while(cas--) { memset(len,0,sizeof(len)); scanf("%d",&n); for(int i=1;i<=n;i++) scanf(" 阅读全文
posted @ 2012-03-18 19:57 静静的等待_93 阅读(236) 评论(0) 推荐(0) 编辑
摘要: View Code 1 #include<iostream> 2 #include<cstdio> 3 #define inf 0x7ffffff 4 using namespace std; 5 int x,y,z,r; 6 int lx,ly,mx,my,nx,ny; 7 void work() 8 { 9 lx=max(lx,x);10 ly=min(ly,x+r);11 mx=max(mx,y);12 my=min(my,y+r);13 nx=max(nx,z);14 ny=min(ny,z+r);15 }16 int main()17... 阅读全文
posted @ 2012-03-18 19:05 静静的等待_93 阅读(145) 评论(0) 推荐(0) 编辑