自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 poj1240 Pre-Post-erous!

// #include #include #include using namespace std; char s1[27],s2[27]; int m,len; long long result; int comb(int r){  int re=1;  for(int i=0;i   re=re*(m-i)/(i+1);  return re; } void cal

2014-11-21 22:57:17 519

原创 poj2255 Tree Recovery

//前序遍历、中序遍历,求后序遍历(利用递归的非 )

2014-11-21 22:55:02 392

原创 poj2236 Wireless Network

//连通图的

2014-11-21 22:52:25 324

原创 poj1521 Entropy

//霍夫曼编码问题 #include #include #include #include using namespace std; int al[27],i,cnt; string s; int main(void){  while(cin>>s){   if(s=="END")break;   cnt=0;   for(i=0;i    al[i]=0;   for

2014-11-21 22:50:04 447

原创 Poj1006 Biorhythms

//中国剩余问题 #include #include #include #define N 21252 #define k1 23 #define k2 28 #define k3 33 using namespace std; int main(void){  int p,e,i,d,cnt=1;  int a0,S;  while(1){   scanf("%d%d%

2014-11-21 22:47:23 410

原创 Poj3254 Fence Repair

//霍夫曼编码

2014-11-21 22:44:19 412

原创 Poj2247 Humble Numbers

 #include #include using namespace std; int rank[5843],r=2,a2=1,a3=1,a5=1,a7=1; void cal(int x){  while(r   int count[5]={0,0,0,0,0};   if(rank[a2]*2    rank[r]=rank[a2]*2;    count[0

2014-11-21 22:42:13 358

原创 Poj1003 Hangover

 #include using namespace std; double x; int main(void){ double len[300]; for(int i=0;i300;i++) len[i]=0; while(1){ cin>>x; if(x==0.00)break; int i; for(i=1;;i++){ if(i==1)len[i]=1.00/2

2014-11-21 22:34:18 350

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除