最初没有注意到结果是要求最小的步数,那么就成了最基本的迷宫找到一条出路的问题并记下找到出路时,所花的步数,那么很容易得到代码如下: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 #define MAX 10...
分类:
其他好文 时间:
2014-07-01 23:44:18
阅读次数:
242
override def preStart() { logInfo("Starting Spark master at " + masterUrl) webUi.bind() //绑定WEBUI masterWebUiUrl = "http://" + masterPubli...
分类:
其他好文 时间:
2014-07-01 20:21:15
阅读次数:
251
1、初始化:方式一、git clone,将远程的Git版本库,克隆到本地一份。方式二、git init和git remote2、git pull:将其他版本库代码更新到本地。例如:git pull origin master,将origin这个版本库的代码更新到本地的master主枝,类似于SVN的...
分类:
系统相关 时间:
2014-07-01 12:42:54
阅读次数:
262
/*EXEC master..xp_cmdshell 'BCP "select * from NBZA_Live_20140613.dbo.StoreList for xml Raw " queryout D:\XML\my_StoreList_20140630001.xml -c -U"sa" -...
分类:
其他好文 时间:
2014-07-01 12:23:38
阅读次数:
313
配置MySQL复制基本步骤: 一、master 1、启用二进制日志 log-bin = master-bin log-bin-index = master-bin.index 2、选择一个惟一server-id server-id = {0-2^32} 3、创建具有复制权限的用户 R...
分类:
数据库 时间:
2014-07-01 09:15:36
阅读次数:
255
蛋疼的题目描述,看了好长好长时间才看懂,题目本身是很简单的。Designer给出一串长度为N的Code,Breaker用Guess来破译。对于两串数字,如果有同一列相等的数字,那么叫做strong match,位于不同列的相等的两个数字,叫做weak match。题目要求就是先输出strong的个数...
分类:
其他好文 时间:
2014-07-01 09:14:15
阅读次数:
227
简单,二分法,但是在oj上交的时候会有精度的限制,所以只能把数扩得大一点,而且在扩的时候为防止尾数会自动生成一些非零数,所以还是自己吧扩到的位置设置为0,还有输出时因为%.2lf会自己有4设5入,所以可以自己算出小数点后两位的数值,在输出,保证要求的精度
#include
#include
#include
#define MAX 10010
using namespace std;
l...
分类:
其他好文 时间:
2014-07-01 06:35:11
阅读次数:
238
DirectIO: The SRIO DirectIO
transfer class is similar to a memcopy transfer between two SRIO devices. One of the devices is the master that initiates the transfer. The second deviceis
the slave th...
分类:
其他好文 时间:
2014-06-30 19:46:54
阅读次数:
215
简单,二分法,但是在oj上交的时候会有精度的限制,所以只能把数扩得大一点,而且在扩的时候为防止尾数会自动生成一些非零数,所以还是自己吧扩到的位置设置为0,还有输出时因为%.2lf会自己有4设5入,所以可以自己算出小数点后两位的数值,在输出,保证要求的精度
#include
#include
#include
#define MAX 10010
using namespace std;
l...
分类:
其他好文 时间:
2014-06-30 19:02:41
阅读次数:
163
作为一个oracle dba有时候不得不管理一下mysql数据库,当为主从库时需要阶段性清理mysql binary log,清楚方式如下:
首先查看mysql 的当前日志组
show master status;
确定当前日志组后删除日志文件
purge binary logs to 'mysql-bin.000795';
删除000795之前的日志...
分类:
数据库 时间:
2014-06-30 17:16:01
阅读次数:
240