[pg@h1 ~]$ vacuumdb --freeze template0
vacuumdb: could not connect to database template0: FATAL: database "template0" is not currently accepting connections
[pg@h1 ~]$ psql template0
psql: FATAL: da...
分类:
其他好文 时间:
2014-11-19 01:58:54
阅读次数:
234
Option Explicit' No more data is available.Const ERROR_NO_MORE_ITEMS = 259' The data area passed to a system call is too small.Const ERROR_INSUFFICIEN...
分类:
Web程序 时间:
2014-11-18 23:28:59
阅读次数:
312
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1086判断两条线段是否有交点,我用的是跨立实验法:两条线段分别是A1到B1,A2到B2,很显然,如果这两条线段有交点,那么可以肯定的是:A1-B1,A2-B1这两个向量分别在B2-B1的两边,判断是不是在...
分类:
其他好文 时间:
2014-11-18 17:30:52
阅读次数:
232
错误代码:objc_msgSend(self.beginRefreshingTaget, self.beginRefreshingAction, self);Too many arguments to function call, expected 0, have 3经过几番周折,终于叨叨解决方案了...
分类:
移动开发 时间:
2014-11-18 11:42:09
阅读次数:
317
// ToDoListWnd.cpp : implementation file//#include "stdafx.h"#include "ToDoList.h"#include "ToDoListWnd.h"#include "ToolsCmdlineParser.h"#include "Too...
分类:
其他好文 时间:
2014-11-18 08:04:04
阅读次数:
314
CNPPopupControllerCNPPopupController is a simple and versatile class for presenting a custom popup in a variety of fashions. It includes a many option...
分类:
其他好文 时间:
2014-11-17 22:36:26
阅读次数:
279
DescriptionSome positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given pos...
分类:
其他好文 时间:
2014-11-17 22:27:25
阅读次数:
343
696 - How Many Knights(数论)
题目链接
题目大意:要求在一个棋盘上放上最多的骑士,但他们之间不能互相攻击。骑士的攻击范围题目中有图给出。
思路:画到后面会发现上下两行骑士交错的放是最优的策略
(N N N)
( N N )
(N N N)
但是这个只适用与3*3矩阵和更大的矩阵,小点的就要另外讨论了。
一行或者一列的时後每个位置都是可以放的,不会...
分类:
其他好文 时间:
2014-11-17 21:22:08
阅读次数:
169
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:
其他好文 时间:
2014-11-17 13:56:57
阅读次数:
141
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-11-17 06:53:34
阅读次数:
138