George has recently entered the BSUCP (Berland State University for Cool Programmers). George has a friend Alex who has also entered the university. Now they are moving into a dormitory.
George and...
分类:
其他好文 时间:
2014-09-19 10:14:05
阅读次数:
290
题目链接:poj 2886 Who Gets the Most Candies?
题目大意:N个人围成一圈玩约瑟夫环游戏,不同的是,步长不固定,由前一个出局的人决定,给定K表示起始的人。第i个淘汰的人将获得g(i)个糖果,问说谁获得的糖果最多。g(x)为x的因子个数。
解题思路:起始g(x)是成阶段的,所以打表处理处g(x)递增值,对于每个N,一开始找到小于等于N的最大x,那么第x个淘...
分类:
其他好文 时间:
2014-09-18 19:02:24
阅读次数:
250
变量赋值,类似a=1b=2数组赋值,类似:t=[1 2 3 4 5]t=1:5t=0:0.1:2使用whos命令会输出当前已经定义的变量的:help原文:WHOS is a long form of WHO. It lists all the variables in the current ...
分类:
其他好文 时间:
2014-09-17 23:19:02
阅读次数:
330
Ever found yourself working on a MySQL server where root’s password is unavailable? It has happened to me a few times, always because the person who s...
分类:
数据库 时间:
2014-09-17 11:39:32
阅读次数:
347
The people who get on in this world are the people who get up and look forthe circumstances they want, and if they can't find them, make them取得成功的人,都是...
分类:
其他好文 时间:
2014-09-16 14:01:40
阅读次数:
104
------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------mac ox 基础介绍1.常用的Unix指令ls-l 列出当前路径的所有文件cd 目录转换pwd 显示当前路径mkdir 新建目录touch 创建文件open 打开文件\文件夹who 显示当前用户名...
分类:
其他好文 时间:
2014-09-16 12:34:50
阅读次数:
167
/****** Object: StoredProcedure [dbo].[sp_who_lock] Script Date: 09/15/2014 11:55:46 ******/ SET ANSI_NULLS ON GOSET QUOTED_IDENTIFIER ON GOCREATE pro...
分类:
其他好文 时间:
2014-09-15 12:51:38
阅读次数:
165
今天又把KMP算法看了一遍,特此小结。扯淡的话:KMP算法主要用来模式匹配。正如Implement strStr()中形容的一样,“大海捞针”,当时看到题中变量如此命名,真的感觉实在是再贴切不过了。在介绍KMP算法之前,先介绍一下BF算法,叫的这么暧昧(who is GF?),其实就是最low的暴力...
分类:
其他好文 时间:
2014-09-14 23:26:31
阅读次数:
445
An executable for any application must be "signed" before it can be executed by anyone who does not have an NX Open Author license. This section descr...
分类:
Web程序 时间:
2014-09-11 23:41:02
阅读次数:
1304
Input::old('username')Querying using raw SQL statements$sql=" insert into shows(name,rating,actor) VALUES(?,?,?)"; $data1 = array('Doctor Who',...
分类:
其他好文 时间:
2014-09-11 22:14:42
阅读次数:
225