简单深搜,可以完全暴力,不会超时的。#include#include#includeusing
namespace std;#define MAX(a,b) (a>b?a:b) char maze[10][10];int n, maxn;void
DFS(int step,int count);in...
分类:
Web程序 时间:
2014-06-04 20:43:04
阅读次数:
270
bfs+优先队列。wa了N次,才发现可以停留等待楼梯变换方向。 1 #include 2
#include 3 #include 4 #include 5 using namespace std; 6 7 #define MAXNUM 55 8 9
typedef struct node...
分类:
其他好文 时间:
2014-06-03 13:26:06
阅读次数:
274
题意:给定每一步的定方向与初始位置 让求出去房间
或者进入循环的步数直接模拟#include#includeusing namespace std;int map[11][11];int
v[11][11];int dir[4][2]={-1,0,1,0,0,-1,0,1};int main(){ ...
分类:
其他好文 时间:
2014-05-30 09:03:03
阅读次数:
247
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;namespace
ConsoleApplication2{ class...
分类:
其他好文 时间:
2014-05-30 05:34:16
阅读次数:
272
一道找循环节的题,RE了很多发。要用到一个转换式子:a^b%c=[(a%c)^(b%phi(c)+phi(c))]%c#include#include#include#include#include#define
ull unsigned long longusing namespace std;i...
分类:
其他好文 时间:
2014-05-30 02:53:25
阅读次数:
251
treap模版暂存。以后修改整理。#include#include#include
#includeusing namespace std;struct Node{ Node *ch[2];//左右子树 int
r;//优先级。数值越大,优先级越高 int v;//值 int...
分类:
其他好文 时间:
2014-05-30 01:45:16
阅读次数:
250
1 #include //bfs; 2 #include 3 #include 4
#include 5 using namespace std; 6 struct data 7 { 8 int x,y,t; 9 }now,pos; 10
int n,m,t,dis[...
分类:
其他好文 时间:
2014-05-30 01:26:49
阅读次数:
242
[root@www ~]# vim
/etc/sysconfig/network-scripts/ifcfg-eth0静态IP设置DEVICE="eth0" <==网络卡代号,必须要
ifcfg-eth0 相对应HWADDR="08:00:27:71:85:BD"...
分类:
系统相关 时间:
2014-05-29 15:47:42
阅读次数:
378
原因分析:1、在头文件中:#import "C:\Program Files\Common
Files\System\ado\msado15.dll" no_namespace rename("EOF",
"EndOfFile")2、在“stdafx.h ”文件中,#ifndef _AFX_NO_D...
分类:
其他好文 时间:
2014-05-29 13:21:05
阅读次数:
249
参考架构Architecture from OpenStack Install
GuideReference Architecture Network
Isolation在本次部署中,我们采用了OpenStack中新的网络管理组件(neutron),具体参见安装指导。右图为该网络部署结构的示意,分为...
分类:
其他好文 时间:
2014-05-29 11:48:19
阅读次数:
289