码迷,mamicode.com
首页 > 其他好文
leetcode:Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2015-06-09 15:42:42    阅读次数:120
POJ 1006
#include#includeusing namespace std;int main(){ //freopen("acm.acm","r",stdin); int p; int e; int i; int d; int j; j = 0; while(cin>>p>>e>>i>>d) { if....
分类:其他好文   时间:2015-06-09 15:40:51    阅读次数:105
利用MsChart控件绘制多曲线图表
在.Net4.0框架中,微软已经将Mschart控件集成了进来,以前一直在web下面用过,原来winform下的Mschart控件更加简单更加方便,今天我们用mschart绘制一个多曲线图,发现MsChart 的显示效果还是不错的,话不多说,直接上效果图:代码如下,供大家参考:public part...
分类:其他好文   时间:2015-06-09 15:43:09    阅读次数:131
HDU 5266 pog loves szh III
题意:给出一棵树,1为根节点,求一段区间内所有点的最近公共祖先。解法:用一棵线段树维护区间LCA。LCA是dp做法。dp[i][j]表示点i的第2^j个祖先是谁,转移方程为dp[i][j] = dp[dp[i][j - 1]][j - 1],初始的dp[i][0]可以用一次dfs求得,这样可以用lo...
分类:其他好文   时间:2015-06-09 15:40:44    阅读次数:121
bzoj 1003: [ZJOI2006]物流运输trans
题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=1003解:一个很神奇的dp,预处理所有连续时间段内的最小花费(w[i][j]表示第i天到第j天的最小花费),然后以f[x]表示到第x天为止的最小花费,用f[j]=min(f[j], f[i]+...
分类:其他好文   时间:2015-06-09 15:40:16    阅读次数:133
think in uml 2.1
业务建模
分类:其他好文   时间:2015-06-09 15:40:34    阅读次数:77
POJ 1087
#include#include#include#define MAXN 105using namespace std;struct unix{ string s1; string s2;};bool ck[MAXN]; int _m[MAX...
分类:其他好文   时间:2015-06-09 15:40:51    阅读次数:79
mockit学习(一)
fake通常被用作被测类的依赖关系的替代者.mock可以解除函数间的依赖性,让函数单独执行;mock数据的关键点三样东西: 设置测试数据,设定预期结果,验证结果.Stubbing(桩)Stubbing就是告诉fake当与之交互时执行何种行为过程,执行接受请求和返回结果的过程。设置预期--验证预期结果...
分类:其他好文   时间:2015-06-09 15:38:45    阅读次数:165
Topic Model 实战
Topic Model在考虑语义的情景中被广泛使用,实践证明效果也不错。本文总结了一些Topic Model实战技巧。利用优质“少量”数据学习模型,缓解单机速度和内存问题,对剩余/新文档做推导(可以数据并行)。比如用微博数据训练LDA时,先把长度短的微博过滤掉(有工作得出长度为7的文本已经适合LDA...
分类:其他好文   时间:2015-06-09 15:40:47    阅读次数:741
POJ 1102
#include// cheng da cai zi 11.14using namespace std;int main(){ int i; int j; int k; int size; int num; int digit_array[8]; for(...
分类:其他好文   时间:2015-06-09 15:38:19    阅读次数:116
排列组合 - 卡塔兰数的应用
卡塔兰数,是组合数学中一个常出现在各种计数问题中出现的数列。输入一个整数n,计算h(n)。h(n)= h(0)*h(n-1)+h(1)*h(n-2) + ... + h(n-1)h(0) (其中n>=2,h(0) = h(1) = 1)该递推关系的解为:h(n)=C(2n,n)/(n+1) (n=1...
分类:其他好文   时间:2015-06-09 15:39:04    阅读次数:138
POJ 1051
#include #include #include #define MAXN 27using namespace std;struct node{ int len; string s;};char fun(string s);node _node[MAXN];int n[100];in...
分类:其他好文   时间:2015-06-09 15:38:58    阅读次数:133
POJ 1183
#include#includeusing namespace std;int main(){ //freopen("acm.acm","r",stdin); unsigned long a; unsigned long m; unsigned long n; unsi...
分类:其他好文   时间:2015-06-09 15:37:54    阅读次数:120
POJ 1338
1 #include 2 #include 3 #include 4 #define MAXN 100000 5 using namespace std; 6 7 double a[MAXN]; 8 double x1 = 0; 9 double x2 = 0;10 double x3 = 0;.....
分类:其他好文   时间:2015-06-09 15:37:26    阅读次数:75
POJ 1149
#include#include#define MAXN 105#include"queue"#define inf 10000000#includeusing namespace std;int max_flow_ljz(int n,int * * mat,int source,int sink,...
分类:其他好文   时间:2015-06-09 15:36:43    阅读次数:82
【转】内核编译时, 到底用make clean, make mrproper还是make distclean(转载)
原文网址:http://dongyulong.blog.51cto.com/1451604/449470内核编译时, 到底用make clean, make mrproper还是make distclean在编译内核时, 被make clean, make mrproer 和 make distcl...
分类:其他好文   时间:2015-06-09 15:38:40    阅读次数:195
小公司怎么做一个属于自己的核心框架?
这些年,我们一直在规划做公司的核心框架,因为大家都知道一个核心框架对一个软件公司是很重要的。年复一年我们的谈了很多,总是想等研发人员空闲的时候开始做,总是想等成立一个专门的项目团队来实施,总是说的多而没去落实。
分类:其他好文   时间:2015-06-09 15:36:41    阅读次数:119
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!