![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
搜索
i am a coder
这个作者很懒,什么都没留下…
展开
-
Knight Moves
#include#include#includeusing namespace std;int dir[8][2]={1,2, -1,2, 1,-2, -1,-2, 2,1, -2,1, 2,-1, -2,-1};int num[10][10];int sx,sy,ex,ey;struct node{ int x,y,step;};int judg原创 2013-07-19 19:20:13 · 442 阅读 · 0 评论 -
HDU Nightmare
#include#includeusing namespace std;int i,j,n,m,flag,tuse,tremain;int mark[10][10];int map[10][10];struct node{ int x,y,usetime,remaintime;}start,n1,n2;void setmap(){ for(i=原创 2013-07-19 17:18:54 · 530 阅读 · 0 评论 -
Oil Deposits
简单的搜索!#include#include#include#includeusing namespace std;int n,m;char v[105][105];int dir[8][2]={-1,0,1,0,0,-1,0,1,-1,-1,-1,1,1,-1,1,1};void dfs(int x,int y){ int i,l,c; f原创 2013-07-19 18:21:44 · 456 阅读 · 0 评论 -
HDU Can you find it?
三重循环会超时,所以用一个中间数组过度。(借鉴大牛的思想,大牛的思想就是不同啊!)二分搜索#include#include#includeusing namespace std;int a[505];int b[505];int c[505];int sum[505*505];int ans[1010];int l,n,m,s,flag;int bina原创 2013-07-20 09:40:51 · 439 阅读 · 0 评论 -
HDU Sudoku Killer
Sudoku Killer Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 22 Accepted Submission(s) : 7Font: Times New Roman | Verdana | GeorgiaFo原创 2013-07-22 11:09:14 · 618 阅读 · 0 评论 -
HDU Fire Net
Fire Net Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 6 Accepted Submission(s) : 3Font: Times New Roman | Verdana | GeorgiaFont Siz原创 2013-08-05 09:57:45 · 883 阅读 · 0 评论 -
滑雪
滑雪Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 1088DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡原创 2013-08-08 16:44:26 · 743 阅读 · 0 评论 -
Burning Midnight Oil
Burning Midnight OilTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 165BDescriptionOne day a highly important task was commi原创 2013-08-09 08:46:18 · 570 阅读 · 0 评论 -
Avoid The Lakes
Avoid The LakesTime Limit: 1000msCase Time Limit: 1000msMemory Limit: 65536KB64-bit integer IO format: %lld Java class name: Main SubmitStatus PID: 3739 Font Size: F原创 2013-08-12 09:32:51 · 706 阅读 · 0 评论