首页 > 其他
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:38:31    收藏:0  评论:0  赞:0  阅读:251
mockit学习(一)
fake通常被用作被测类的依赖关系的替代者.mock可以解除函数间的依赖性,让函数单独执行;mock数据的关键点三样东西: 设置测试数据,设定预期结果,验证结果.Stubbing(桩)Stubbing就是告诉fake当与之交互时执行何种行为过程,执行接受请求和返回结果的过程。设置预期--验证预期结果...
分类:其他   时间:2015-06-09 15:38:22    收藏:0  评论:0  赞:0  阅读:313
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:37:21    收藏:0  评论:0  赞:0  阅读:298
排列组合 - 卡塔兰数的应用
卡塔兰数,是组合数学中一个常出现在各种计数问题中出现的数列。输入一个整数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:37:11    收藏:0  评论:0  赞:0  阅读:324
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:37:01    收藏:0  评论:0  赞:0  阅读:221
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:36:41    收藏:0  评论:0  赞:0  阅读:254
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:36:31    收藏:0  评论:0  赞:0  阅读:247
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:11    收藏:0  评论:0  赞:0  阅读:193
【转】内核编译时, 到底用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:36:01    收藏:0  评论:0  赞:0  阅读:247
小公司怎么做一个属于自己的核心框架?
这些年,我们一直在规划做公司的核心框架,因为大家都知道一个核心框架对一个软件公司是很重要的。年复一年我们的谈了很多,总是想等研发人员空闲的时候开始做,总是想等成立一个专门的项目团队来实施,总是说的多而没去落实。
分类:其他   时间:2015-06-09 15:35:43    收藏:0  评论:0  赞:0  阅读:175
POJ 1008
using namespace std;int main(){int N;cin>>N;double *days=(double *)new double[N];char amonth[7];int year_day;char month[19][20]={"pop", "no", "zip", "...
分类:其他   时间:2015-06-09 15:35:21    收藏:0  评论:0  赞:0  阅读:256
POJ 1469
1 #include 2 #include 3 #include 4 #include 5 #define MAXN 300 6 #define _clr(x) memset(x,0xff,sizeof(int)*MAXN) 7 using namespace std; 8 9 int hu...
分类:其他   时间:2015-06-09 15:35:11    收藏:0  评论:0  赞:0  阅读:197
POJ 1401
#includeusing namespace std;int main(){ int num; int i; int sum; cin>>num; int * noname=new int[num]; for(i=0;i>noname[i]; for(i=0;i=5){ sum+=noname.....
分类:其他   时间:2015-06-09 15:34:51    收藏:0  评论:0  赞:0  阅读:142
POJ 1015
#include#include#define MAXN 201#define count C_ountusing namespace std;int _m[20][801];int count[20][801];int a[20];struct _node{ int first; int seco...
分类:其他   时间:2015-06-09 15:34:31    收藏:0  评论:0  赞:0  阅读:210
Monthly Expense
Problem DescriptionFarmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculate...
分类:其他   时间:2015-06-09 15:34:11    收藏:0  评论:0  赞:0  阅读:162
dedecms内容管理
dedecms中的内容模型是指文章、软件、商品等类型的文章字段模板。在dedecms中,文章数据由文章主表和文章附加表构成,主表存放文章公共拥有的信息,比如标题,添加时间,点击量等,文章附加表存放文章的内容信息,比如普通文章,商品信息,软件信息等。1.在创建一个新栏目前首先在核心→频道模型→内容管理...
分类:其他   时间:2015-06-09 15:33:21    收藏:0  评论:0  赞:0  阅读:114
FIFO实现客户端服务器端通信
FIFO解决了在进程通信的时候产生大量临时文件的问题,并且可以实现非血缘关系进程间的通信,而且可以保留给后来的进程使用。FIFO的读写规则和匿名管道的读写规则相似,不过FIFO保存在磁盘上,而匿名管道保存在内存里。当FIFO的写进程关闭的时候,会向FIFO的读进程发送一个文件结束符。客户端:#inc...
分类:其他   时间:2015-06-09 15:33:12    收藏:0  评论:0  赞:0  阅读:115
POJ 1221
1 #include 2 #define MAXN 500 3 using namespace std; 4 5 unsigned dp[MAXN][MAXN]; 6 7 int main() 8 { 9 // freopen("acm.acm","r",stdin);10 i...
分类:其他   时间:2015-06-09 15:32:21    收藏:0  评论:0  赞:0  阅读:261
【学习笔记】【Foundation】字典
字典NSDictionary:用于保存具有映射关系的数据:key-value;创建NSDictionary的常用方法:dictionary:dictionaryWithContentsOfFile:/initWithContentsOfFile:dictionaryWithDictionary:/i...
分类:其他   时间:2015-06-09 15:32:11    收藏:0  评论:0  赞:0  阅读:158
POJ 1169
#include#include#include#include#define MAXN 1930#define M_4 4using namespace std;struct _node{ int len; int wide;};struct _node_ans{ int len...
分类:其他   时间:2015-06-09 15:31:41    收藏:0  评论:0  赞:0  阅读:194
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!