码迷,mamicode.com
首页 > 其他好文
bzoj1486
二分答案 若存在负圈则说明答案可以更优 dfs版spfa判负圈 1 #include 2 #define clr(a,x) memset(a,x,sizeof(a)) 3 #define rep(i,l,r) for(int i=l;ie[maxn];29 void dfs(int a)30 {31...
分类:其他好文   时间:2015-07-24 22:17:29    阅读次数:124
docker-py的配置与使用
详细介绍在Linux中离线安装docker-py的过程。
分类:其他好文   时间:2015-07-24 22:15:39    阅读次数:353
Top 10 Algorithms of 20th and 21st Century
Top 10 Algorithms of 20th and 21st CenturyMATH 595 (Section TTA)Fall 2014TR 2:00 pm - 3:20 pm, Room 341 Altgeld HallUniversity of Illinois at Urbana-C...
分类:其他好文   时间:2015-07-24 22:16:40    阅读次数:182
第23章 模型验证
----------------------------------------------注:1.在web.config中,对system.web元素添加来改变区域文件设置。 2.DataType注解属性不能用于验证用户输入,只能对使用模板辅助器进行渲染提示。 3.实现IValidatabl...
分类:其他好文   时间:2015-07-24 22:15:57    阅读次数:164
文章8章 异常
一个定义明确的API,它应包括使用前后的条件的方法的。然而,运行环境复杂。该程序可以在运行过程中遇到的各种错误。为此,做一些准备。编程时要预见到:方法运行时可能会遇到意外情况。错误的根源,可能是不恰当的外部环境,可能是方法调用者传递了不恰当的实參——即错误环境或非法參数。服务的设计者,必须考虑到可能...
分类:其他好文   时间:2015-07-24 22:13:53    阅读次数:98
栈—summertraining#2.A题
You are given a string consisting of parentheses()and[]. A string of this type is said to becorrect:(a)if it is the empty string(b)if A and B are corr...
分类:其他好文   时间:2015-07-24 22:14:43    阅读次数:113
[leedcode 128] Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:其他好文   时间:2015-07-24 22:14:56    阅读次数:115
2015 HUAS Summer Training#2~D
DescriptionLittle Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital l...
分类:其他好文   时间:2015-07-24 22:15:40    阅读次数:124
hdu1828 线段树+离散化+扫描线
添加lb[],rb[]数组,来标记竖边。添加num,来计算竖边的个数,因为计算周长的时候,未覆盖的竖边都要加#include#include#include#includeusing namespace std;#define lson l,m,rty?x:y;}bool cmp(seg a,seg...
分类:其他好文   时间:2015-07-24 22:12:50    阅读次数:119
hdu 5305 Friends(2015多校第二场第6题)记忆化搜索
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5305题意:给你n个人,m条关系,关系可以是online也可以是offline,让你求在保证所有人online关系的朋友和offline关系的朋友相等的情况下,这样的情况有多少种。思路:因为online关...
分类:其他好文   时间:2015-07-24 22:13:33    阅读次数:125
Lowest Common Ancestor of a Binary Search Tree(树中两个结点的最低公共祖先)
题目描述:Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to thedefinition of LCA on Wikipe...
分类:其他好文   时间:2015-07-24 22:12:46    阅读次数:94
Openssl speed命令
一、简介 speed命令用于测试库的性能 二、语法 openssl speed [md2] [mdc2] [md5] [hmac] [sha1] [sha256] [sha512] [whirlpool] [rmd160] [idea-cbc] [seed-cbc] [rc2-cbc] [rc5-c...
分类:其他好文   时间:2015-07-24 22:13:53    阅读次数:2370
A Bug's Life - poj2492
Time Limit:5000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionBackground Professor Hopper is researching the sexual beh....
分类:其他好文   时间:2015-07-24 22:10:59    阅读次数:116
hdu 5280 Senior's Array(最大子段和)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5280题意:将一个长度为n的数组,将里面某一个数改为p,使改变后最大子段和最大。题解:dp[i]=max(dp[i-1)+a[i],a[i]),表示以第 i 个数结束的最大子段和,时间复杂度为O(n)。1...
分类:其他好文   时间:2015-07-24 22:13:17    阅读次数:109
转:stringstream的用法
【本文来自】http://www.builder.com.cn/2003/0304/83250.shtmlhttp://www.cppblog.com/alantop/archive/2007/07/10/27823.html使用stringstream对象简化类型转换C++标准库中的提供了比ANS...
分类:其他好文   时间:2015-07-24 22:10:10    阅读次数:97
Big Event in HDU(多重背包套用模板)
http://acm.hdu.edu.cn/showproblem.php?pid=1171Big Event in HDUTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Su...
分类:其他好文   时间:2015-07-24 22:10:00    阅读次数:141
绞股蓝
绞股蓝,又名五叶参、七叶胆,日本称之甘蔓茶,属葫芦科的一种植物。目录[隐藏]1形态2分布3药用4参考文献5外部链接形态多年生攀援草本。叶子互生,常5~7小叶,呈鸟趾状复叶;中央一枚较大,先端渐尖,叶缘有锯齿。夏季开黄白色花,圆锥花序腋生,雌雄异株。圆形浆果;种子如豌豆大,熟时为黑紫色。分布长于山间阴...
分类:其他好文   时间:2015-07-24 22:10:45    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!