摘要:
每天一个JavaScript实例-推断图片是否载入完毕 阅读全文
posted @ 2015-12-24 18:07
blfshiye
阅读(158)
评论(0)
推荐(0)
摘要:
题意 中文入门最小生成树 prim大法好#include#includeusing namespace std;const int N = 105;int cost[N], mat[N][N], n, m, ans;void prim(){ memset(cost, 0x3f, sizeof(... 阅读全文
posted @ 2015-12-24 16:38
blfshiye
阅读(122)
评论(0)
推荐(0)
摘要:
经常使用的MD5算法代码日期: 2014年8月4日作者: 铁锚MD5,全称为 Message Digest Algorithm 5(消息摘要算法第五版).详情请參考 维基百科:MD5MD5加密后是一个字节数组, 但我们通常是取其十六进制的字符串表示法,当然,十六进制数字符串是区分大写和小写,在 my... 阅读全文
posted @ 2015-12-24 15:35
blfshiye
阅读(260)
评论(0)
推荐(0)
摘要:
ContestTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 766 Accepted Submission(s): 341Problem Des... 阅读全文
posted @ 2015-12-24 14:49
blfshiye
阅读(174)
评论(0)
推荐(0)
摘要:
// 统计一个数二进制中的1的个数#include int count(int a){ int count = 0; while (a) { count++; a = a & (a - 1); } return count;}int main(){ printf("%d\n", count(1... 阅读全文
posted @ 2015-12-24 13:40
blfshiye
阅读(460)
评论(0)
推荐(0)
摘要:
NAMEgit-status - Show the working tree statusSYNOPSISgit status […] [--] […]DESCRIPTIONDisplays paths that have differences between the index file and... 阅读全文
posted @ 2015-12-24 13:08
blfshiye
阅读(210)
评论(0)
推荐(0)
摘要:
在写这篇文章之前。明白我的MySQL版本号。mysql> SELECT VERSION();+------------+| VERSION() |+------------+| 5.5.29-log |+------------+1 row in set (0.00 sec)如今有这种需求,一张表... 阅读全文
posted @ 2015-12-24 11:59
blfshiye
阅读(770)
评论(0)
推荐(0)
摘要:
接下来我会写一写Scheme的学习笔记。嗯,Scheme是属于小众的语言,但合适用来教学的。什么是lat,就是遍历list里的每一个S-expression,假设发现当中某个不是atom的,则返回false,否则返回true。(define atom? (lambda (x) (and (not ... 阅读全文
posted @ 2015-12-24 10:44
blfshiye
阅读(348)
评论(0)
推荐(0)
摘要:
/** Copyright (c) 1994* Hewlett-Packard Company** Permission to use, copy, modify, distribute and sell this software* and its documentation for any pu... 阅读全文
posted @ 2015-12-24 09:50
blfshiye
阅读(177)
评论(0)
推荐(0)
摘要:
期望概率DP简单题从[1,1]点走到[r,c]点,每走一步的代价为2给出每一个点走相邻位置的概率,共3中方向,不动: [x,y]->[x][y]=p[x][y][0] , 右移:[x][y]->[x][y+1]=p[x][y][1]; 左移:[x][y]->[x+1][y]=p[x][y][2];问... 阅读全文
posted @ 2015-12-24 08:54
blfshiye
阅读(120)
评论(0)
推荐(0)

浙公网安备 33010602011771号