随笔分类 - 搜索
摘要:大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 (
        阅读全文
            
摘要:定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, }; 它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要
        阅读全文
            
摘要:Knight Moves Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 14114 Accepted: 7870 Description A friend of you is doing research on the Trav
        阅读全文
            
摘要:1 #include 2 #include 3 #include 4 using namespace std; 5 char map[110][110]; 6 int vis[110][110]; 7 int sum,n,m; 8 int dfs(int x,int y) 9 { 10 int u[][2]={-1,-1,-1,0,-1,1,0,-1,0,1,1,-1...
        阅读全文
            
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 int n,k,sum; 8 char map[10][10]; 9 int vis[10]; 10 int dfs(int x,int y) 11 { 12 int i; 13 if(!y) 14 ...
        阅读全文
            
摘要:#include #include using namespace std; char s[10][10]; int ax,ay,bx,by,n,m,k; int t[4][2]={1,0,-1,0,0,1,0,-1},vist[10][10],flag; void dfs(int x,int y,int count) { int i,mx,my; if(x==bx&&y==by...
        阅读全文
            
 
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号