效果图:一:分页方法/** * TODO 基础分页的相同代码封装,使前台的代码更少 * @param $m 模型,引用传递 * @param $where 查询条件 * @param int $pagesize 每页查询条数 * @return \Think\Page */function getp...
分类:
Web程序 时间:
2015-08-11 00:02:42
阅读次数:
395
August 7, 2015Spent 20-30 minutes to think about solution first, and then, read the blogs, and understand the best solution, and then try different so...
It should be categorized as 'Advanced' I think ... Anyway, Fenwick tree is the key.Editorial:https://www.hackerrank.com/challenges/candles-2/editorial...
分类:
其他好文 时间:
2015-08-10 13:34:14
阅读次数:
120
$count=M('wish')->count(); $page = new \Think\Page($count,5);//传入总页数和每页要得到的记录 $this->wish = M('wish')->order('time')->limi...
分类:
Web程序 时间:
2015-08-09 22:04:44
阅读次数:
109
acm本文由swellspirit贡献ACM? I can accept failure. but I can't accept not trying. Life is often compared to a marathon, but I think it is more like being a...
分类:
其他好文 时间:
2015-08-09 15:31:13
阅读次数:
115
> 分析 >> 本题主要在于理解题意 >> 半圆的范围在多少年内会包含给的坐标> 注意 >> 算式一口气会稍微快一点> 附代码 1 #include "stdio.h" 2 3 #define PI 3.14f 4 5 int main(void) 6 { 7 int n = 0 ; 8...
分类:
其他好文 时间:
2015-08-09 12:06:22
阅读次数:
111
?Use Uncertainty As a DriverKevlin HenneyConFRonTEd WiTH TWo opTionS, most people think that the most impor- tant thing to do is to make a choice between them. In design (software or otherwise), it is...
分类:
其他好文 时间:
2015-08-09 10:52:29
阅读次数:
120
Description
Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponenti...
分类:
其他好文 时间:
2015-08-07 20:04:56
阅读次数:
132
http://think-like-a-git.net/sections/rebase-from-the-ground-up/cherry-picking-explained.htmlGit's own online help has a great, if characteristically t...
分类:
其他好文 时间:
2015-08-06 10:41:43
阅读次数:
145
??
I Think I Need a Houseboat
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 92807
Accepted: 40360
Description
Fred Mapper is considering purchasing some l...
分类:
其他好文 时间:
2015-08-05 20:27:05
阅读次数:
104