随笔分类 -  模拟

POJ 1521 Entropy
摘要:霍夫曼树#include<cstdio> #include<string.h> #include<iostream> #include<string> using namespace std; #define LEFT(i) 2*i #define RIGHT(i) 2*i+1 #define PARENT(i) i/2 int heapsize,root; int finalcode[200]; struct Word{ int num,number; double freq; }word[200]; struct Node{ int num, 阅读全文

posted @ 2012-04-20 22:16 c语言源码 阅读(384) 评论(0) 推荐(0)

BOI 383
摘要:Problem A. Ponding WaterDescriptionThere is a strange building on planet VOID. It is made up of N*Mrectangular parallelepipeds on N*M grids, whose bottom surfaces are 1*1squares. Since heights of these rectangular parallelepipeds are different,they form a number of “holes” inside the building. After 阅读全文

posted @ 2012-03-24 22:28 c语言源码 阅读(167) 评论(0) 推荐(0)

导航