poj 1595
摘要:
水题代码:#include<iostream>#include<fstream>using namespace std;int a[1201],n;int b[1201],top;void prim(){ int i,j,k; if(n==1) { a[1]=1; top=1; return; } if(n==2) { a[1]=1; a[2]=2; top=2; return; } a[1]=1;a[2]=2; memset(b,0,sizeof(b)); top=2; for(i=2;i<=n;i+=2) b[i]=1; for(i=3;i<=n;i+= 阅读全文
posted @ 2011-04-19 19:52 宇宙吾心 阅读(314) 评论(0) 推荐(0)
浙公网安备 33010602011771号