镇场诗:———大梦谁觉,水月中建博客。百千磨难,才知世事无常。———今持佛语,技术无量愿学。愿尽所学,铸一良心博客。—————————————————————————————————————————— 1 code 2 show ——————————————————————————————————— ...
分类:
数据库 时间:
2016-11-04 22:57:41
阅读次数:
250
For a given array A of N integers and a sequence S of N integers from the set {?1, 1}, we define val(A, S) as follows: val(A, S) = |sum{ A[i]*S[i] for ...
分类:
其他好文 时间:
2016-11-04 21:02:45
阅读次数:
316
function fun(){ var wWidth = null, wHeight = null; if(window.innerHeight && window.innerWidth){ wHeight = window.innerHeight; wWidth = window.innerWid ...
分类:
其他好文 时间:
2016-11-04 20:55:56
阅读次数:
161
参考: http://www.2cto.com/os/201504/394141.html http://outofmemory.cn/code-snippet/2533/mysql-create-database-specify-utf-8-coding https://mariadb.com/k ...
分类:
数据库 时间:
2016-11-04 20:30:23
阅读次数:
254
1. 标配版 Home.cshtml HomeController form method ='POST' @Html.AntiForgeryToken() [HttpPost] [ValidateAntiForgeryToken] 缺一不可 原理: @Html.AntiForgeryToken() ...
分类:
Web程序 时间:
2016-11-04 20:21:48
阅读次数:
364
题目背景 大家都知道,斐波那契数列是满足如下性质的一个数列: ? f(1) = 1 ? f(2) = 1 ? f(n) = f(n-1) + f(n-2) (n ≥ 2 且 n 为整数)。 题目描述 请你求出第n个斐波那契数列的数mod(或%)2^31之后的值。并把它分解质因数。 输入输出格式 输入 ...
分类:
其他好文 时间:
2016-11-04 20:09:31
阅读次数:
296
调用的时候一个字母写错了 ,调试了 大半天 ...
分类:
其他好文 时间:
2016-11-04 19:53:11
阅读次数:
137