Problem Description
You have an n?n matrix.Every
grid has a color.Now there are two types of operating:
L x y: for(int i=1;i
H x y:for(int i=1;i
Now give you the initial matrix and the goal ma...
分类:
其他好文 时间:
2015-08-14 13:44:47
阅读次数:
167
针对ESXI5.5 本地磁盘分区丢失的解决方法, 1、通过ssh进入ESXI?shell,使用fdisk -l命令查看当前系统的各个分区情况 2、使用esxcli storage vmfs extent list命令,查看卷名,设备名 3、使用esxcli storage fi...
分类:
其他好文 时间:
2015-08-10 18:15:02
阅读次数:
234
每个使用者在他的 /etc/passwd 里面的第四栏有所谓的 GID ,那个 GID 就是所谓的『初始群组 (initial group) 』!也就是说,当用户一登陆系统,立刻就拥有这个群组的相关权限的意思。 举例来说,我们上面提到 dmtsai 这个使用者的 /etc/passwd 与 /etc/group 还有 /etc/gshadow 相关的内容如下:
[root...
分类:
系统相关 时间:
2015-08-09 17:08:29
阅读次数:
185
Windows系统为我们提供了相关API,我们可以使用它们来进行多线程编程。
创建线程的函数:
HANDLE CreateThread(
LPSECURITY_ATTRIBUTES lpThreadAttributes, // SD
SIZE_T dwStackSize, // initial stack size
LP...
分类:
编程语言 时间:
2015-08-07 14:49:31
阅读次数:
130
比如写出下面这段程序:for (int i = 0; i < n; ++i) do_something();然后用gcc编译,会报‘for’ loop initial declarations are only allowed in C99 mode的错误。原因是在循环条件中声明变量,只在C99标....
分类:
其他好文 时间:
2015-08-05 19:58:23
阅读次数:
304
CreateEvent是创建windows事件对象,作用主要用在判断线程退出和锁定方面.
HANDLE CreateEvent(
LPSECURITY_ATTRIBUTES
lpEventAttributes,
// SD
BOOL
bManualReset,
// reset type
BOOL
bInitialState,
// initial sta...
#include #include #include #include #include #include #define PICK_SIZE 32int winWidth = 400, winHeight = 300;void Initial(void){ glClearColo...
分类:
其他好文 时间:
2015-08-05 14:34:19
阅读次数:
109
今天线上mysql报错,连不上了,报错信息大致为LostconnectiontoMySQLserverat‘readinginitialcommunicationpacket。然后在网上找了些解决办法,这边一个一个来说明,方便以后在遇到这样的问题不知道怎么解决:最后查找到的原因是/var/lib/mysql/下面的mysql.sock不见了,为什么..
分类:
数据库 时间:
2015-08-05 13:11:46
阅读次数:
466
最近切换到git版本控制来维护代码,记录常用命令如下。另外,推荐git学习的书籍,《Pro Git》。另外,记录一些Git技巧。
1. 常用Git命令
git init
git add *.c
git add README
git commit -m 'initial project version”
git clone git://github.com/sch...
分类:
其他好文 时间:
2015-08-05 13:01:04
阅读次数:
170
1、cms 主要用于年老代垃圾回收 2、这玩意牺牲通吐量换取最短垃圾回收时间 3、有的地方说是四个阶段,有的地方说五个阶段,还有六个阶段的,真相是————我也不知道 四个阶段: Initial mark Concurrent mark Remark Concurrent Sweep 五个阶段 Ini...
分类:
其他好文 时间:
2015-08-05 10:18:32
阅读次数:
115