模拟
文章平均质量分 78
Benzema67
北京邮电大学学生
展开
-
BOI 383
Problem A. Ponding Water Description There is a strange building on planet VOID. It is made up of N*M rectangular parallelepipeds on N*M grids, whose bottom surfaces are 1*1 squares. Since heights原创 2012-03-24 22:28:45 · 792 阅读 · 0 评论 -
POJ 1521 Entropy
霍夫曼树 #include #include #include #include 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;原创 2012-04-20 22:16:07 · 787 阅读 · 0 评论 -
hdu 4119 && hdu 4082 && hdu 4054
下午重新写了去年区域赛的三道模拟题 hdu 4119 #include #include #include #include #include #define N 60 #define P 1000000007 using namespace std; typedef unsigned long long ull; char map[N][N],cha[4][N][N]原创 2012-10-04 14:13:46 · 1133 阅读 · 0 评论 -
BOJ 387
直接模拟即可,最近码力太渣多敲敲 #include #include #include #include using namespace std; char map[10][10]; int ans; struct Node{ int x,y; }; int dir[2][8]={1,-1,0,0,1,1,-1,-1,0,0,1,-1,-1,1,1,-1}; bool ok(i原创 2013-03-17 23:14:29 · 1239 阅读 · 0 评论 -
分数与小数的相互转换
小数转化为分数 题目:http://acm.hdu.edu.cn/showproblem.php?pid=1717 题意:把小数转化为分数,循环部分用()表示。 [cpp] view plaincopy void Work(char str[]) { int len = strlen(str);原创 2013-11-25 22:27:45 · 4843 阅读 · 1 评论