题目传送门 1 /* 2 暴力:每次更新该行的num[],然后暴力找出最优解就可以了:) 3 */ 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 11 const in...
分类:
其他好文 时间:
2015-05-27 20:52:48
阅读次数:
155
首先登场的是series函数,它的作用是串行执行,一个函数数组中的每个函数,每一个函数执行完成之后才能执行下一个函数,示例如下:async.series({ one: function(callback){ callback(null, 1); }, two: fun...
分类:
Web程序 时间:
2015-05-27 20:42:17
阅读次数:
471
Lambda表达式匿名函数-lamdba函数是一种快速定义单行的最小函数,是从Lisp借用来的,可以用在任何需要函数的地方。例子:函数:>>>deffun(x,y):
...returnx*y
...
>>>fun(23,2)
46
lambdalambdax,y:x*y#lambda函数;x第一个参数,y第二个参数;x*y操作类型;..
分类:
编程语言 时间:
2015-05-26 16:19:50
阅读次数:
171
cout输出流的执行顺序下面是IBM的一道笔试题#include using namespace std;int fun( ) {cout using namespace std;int fun(int i) { cout << "f"<<i; return i; }int main() {int....
分类:
其他好文 时间:
2015-05-26 00:02:00
阅读次数:
145
js让菜单栏一直悬浮在顶部,经典代码很简单,你只需要把下面代码放到js中:$(function(){ //获取要定位元素距离浏览器顶部的距离 var navH = $(".menu").offset().top; //滚动条事件 $(window).scroll(fun...
分类:
Web程序 时间:
2015-05-25 19:58:51
阅读次数:
260
#include
#include
using namespace std;
const int maxn = 1000000;
#define INF 1000000007L
long long int dp[maxn+10];
void fun(){
dp[0] = 1;
dp[1] = 1;
for(long long i = 2; i <= maxn;i++){...
分类:
其他好文 时间:
2015-05-23 22:46:18
阅读次数:
159
微信变声器(WeChat Voice)2.0 Android版开始内测了,时间从2015年5月20日 - 2015年6月20日,使用微信变声器改变你的声音,并分享给好友! 无论你是想装可爱还是恶搞,微信变声器一键帮你做到。 make voice fun !本次更新内容主要有以下几点:支持简体中文.....
分类:
微信 时间:
2015-05-23 09:58:21
阅读次数:
402
Description
Being a knight is a very attractive career: searching for the Holy Grail, saving damsels in distress, and drinking with the other knights are fun things to do. Therefore, it is not ...
分类:
其他好文 时间:
2015-05-22 19:15:03
阅读次数:
165
1 x=12 def fun(x):3 x = 25 fun(x)6 print(x)上面这行代码输出为1,原因是x是全局变量,如果函数里边出现和全局变量相同的局部变量,并在函数体内对该变量重新赋值,结果也只是在该函数内此变量的值为新值,而在函数体外此变量的值并不被改变。
分类:
其他好文 时间:
2015-05-22 18:30:50
阅读次数:
110
一:phpmps修改日志1,php4会出现Warning: Illegal string offset错误; 1:首页inex.php,20行添加$admin =array(); 2:phpmps\include\global.fun.php 1109行,添加$cat_info = array();...
分类:
其他好文 时间:
2015-05-22 15:03:16
阅读次数:
109