
模拟
文章平均质量分 78
Benzema67
北京邮电大学学生
展开
-
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原创 2012-03-24 22:28:45 · 821 阅读 · 0 评论 -
POJ 1521 Entropy
霍夫曼树#include#include#include#includeusing namespace std;#define LEFT(i) 2*i#define RIGHT(i) 2*i+1#define PARENT(i) i/2int heapsize,root;int finalcode[200];struct Word{ int num,number;原创 2012-04-20 22:16:07 · 825 阅读 · 0 评论 -
hdu 4119 && hdu 4082 && hdu 4054
下午重新写了去年区域赛的三道模拟题hdu 4119#include#include#include#include#include#define N 60#define P 1000000007using namespace std;typedef unsigned long long ull;char map[N][N],cha[4][N][N]原创 2012-10-04 14:13:46 · 1184 阅读 · 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 · 1276 阅读 · 0 评论 -
分数与小数的相互转换
小数转化为分数 题目:http://acm.hdu.edu.cn/showproblem.php?pid=1717 题意:把小数转化为分数,循环部分用()表示。[cpp] view plaincopyvoid Work(char str[]) { int len = strlen(str);原创 2013-11-25 22:27:45 · 4973 阅读 · 1 评论