转载
2013-07-25 17:52:00
42 阅读
2评论
转载
2013-07-24 20:40:00
39 阅读
2评论
转载
2013-07-24 20:24:00
16 阅读
2评论
题目链接:hdu4198题目大意:求起点S到出口的最短花费,其中#为障碍物,无法通过,‘.’的花费为1 ,@的花费为d+1。需注意起点S可能就是出口,因为没考虑到这个,导致WA很多次.......#include#include#include#includeusing namespace std;char map[505][505];int d[4][2] = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};int n,m,t;int begin_x,begin_y,end_x,end_y;struct node{ int x,y,time; friend ...
转载
2013-07-24 20:16:00
23 阅读
2评论
转载
2013-07-24 20:14:00
30 阅读
2评论
转载
2013-07-24 20:06:00
31 阅读
2评论
求能出售多少个1*2的矩形,,将原图染色,(i+j)%2==0的染白色,其余为黑色,求白色跟黑色的最大匹配 #include#includeint n,m,ma[105][105],mark[105][105];int dir[4][2]={-1,0, 0,-1, 1,0, 0,1};struct linky{ int x; int y;}link[105][105];int pd(int x,int y){ if(x>=1&&x=1&&y0) printf("\n"); printf("%d\n",sum); ..
转载
2013-07-24 19:59:00
16 阅读
2评论
转载
2013-07-24 19:49:00
47 阅读
2评论
转载
2013-07-23 19:01:00
83 阅读
2评论
转载
2013-07-23 19:00:00
33 阅读
2评论
转载
2013-07-22 19:56:00
30 阅读
2评论
转载
2013-07-22 19:23:00
122 阅读
2评论
转载
2013-07-22 17:42:00
34 阅读
2评论
Problem Description 夏天来了~~好开心啊,呵呵,好多好多水果~~ Joe经营着一个不大的水果店.他认为生存之道就是经营最受顾客欢迎的水果.现在他想要一份水果销售情况的明细表,这样Joe就可以很容易掌握所有水果的销售情况了. Input 第一行正整数N(0#includeusing namespace std;struct node{ char name[100],addr[100]; int m;};int main(){ int t,n,i,j,d,flog[120]; struct node f[120],temp; cin...
转载
2013-07-20 18:58:00
73 阅读
2评论
转载
2013-07-19 19:41:00
33 阅读
2评论
转载
2013-07-19 19:14:00
55 阅读
2评论
转载
2013-07-19 18:10:00
47 阅读
2评论
转载
2013-07-18 19:35:00
54 阅读
2评论
转载
2013-07-18 19:21:00
51 阅读
2评论
转载
2013-07-17 10:54:00
114 阅读
转载
2013-07-02 10:50:00
81 阅读
2评论