D:\Program Files\PostgreSQL\9.3\scripts
这个是psql的默认的缓冲区位置;psql的命令:D:\Program
Files\PostgreSQL\9.3\scripts\runpsql.bat--查询缓存区 \e [FILE] [LINE] 使用外部编辑器编辑...
分类:
数据库 时间:
2014-05-19 11:23:35
阅读次数:
907
遇到的问题:当点击上面的logs时,会出现下面问题:这个解决方案为:By default,
Hadoop stores the logs of each container in the node where that container was
hosted. While this is irre...
分类:
其他好文 时间:
2014-05-19 10:33:13
阅读次数:
369
链接:CTU Open 2008【2014/05/15】今晚做了一下CTU
2008的这套题,最后的rank是3道题。基本是水题啊,我们做的是4个小时,如果完整做,我想应该还会出掉D题,主要是D题很繁琐,weikd写起都说烦。A
-Alea iacta estB -On-Line Banking【题...
分类:
其他好文 时间:
2014-05-19 10:23:03
阅读次数:
209
1.8版本之前的需要加neon。1--with-neno={PATH}1.8版本之后弃用neon而改使用serf:1--with-serf={PATH}
分类:
其他好文 时间:
2014-05-19 07:47:53
阅读次数:
1132
void quickSort(int *a1 , int *a2){ int i=0 ,
j=a2-a1-1; if (i>=j) return; swap(a1[0] , a1[rand()%j+1]); while( ia1[0])
--j; if(i<j)...
分类:
其他好文 时间:
2014-05-19 07:43:47
阅读次数:
213
hash做法:#include#includeconst int Max =
100010;int home[Max],away[Max],hash[Max];int main(){ int n,sum,total; int i,j;
while(scanf("%d",&n)!=E...
分类:
其他好文 时间:
2014-05-17 21:44:37
阅读次数:
504
解题思路:只要看(A-V)*K 这个公式的更新值是否大于等于A
,大于的话继续循环,否则报错注意一点,数据会爆intWA代码:#includeint main(){ long long n ,m, v, k; int t;
scanf("%d",&t); while(t--)...
分类:
其他好文 时间:
2014-05-17 20:49:27
阅读次数:
167
Vim替换----------------------------------------------------------substitute命令:
:[range]s/from/to/[flags]from替换成to指定的字符串(from可为正则表达式,to可为空)range:范围,可以通过....
分类:
其他好文 时间:
2014-05-17 20:45:07
阅读次数:
510
while(scanf("%s",str+1)==1){intn=strlen(str+1);next[1]=0;intj=0;for(inti=2;i2#include3#include4#include5#include6#include7#include8usingnamespacestd;9...
分类:
其他好文 时间:
2014-05-17 18:14:24
阅读次数:
270
方法一:Console.Beep();方法二:可以用Console.WriteLine("/a");来代替Beep()。MSDN:http://msdn.microsoft.com/zh-cn/library/System.Console.Beep(v=vs.110).aspx