题目链接 参考自:http://www.cnblogs.com/oyking/p/4508260.html 题意 n个人,其中有k对双胞胎.现有m间房间,每间房间有容量ci问分配房间的方案数。 分析 设dp[i][j]为已经放满了第i个房间之后,所剩下的双胞胎的对数还有j对,然后对于i+1间房,我们 ...
分类:
其他好文 时间:
2017-08-11 20:27:00
阅读次数:
126
作业需求: 模拟实现一个ATM + 购物商城程序 示例代码 https://github.com/triaquae/py3_training/tree/master/atm 简易流程图:https://www.processon.com/view/link/589eb841e4b0999184934 ...
分类:
编程语言 时间:
2017-08-10 16:54:32
阅读次数:
221
2017年7月21日 星期五 --出埃及记 Exodus 28:12and fasten them on the shoulder pieces of the ephod as memorial stones for the sons of Israel. Aaron is to bear the ...
分类:
其他好文 时间:
2017-08-07 11:59:28
阅读次数:
110
2017年8月3日 星期四 --出埃及记 Exodus 28:25and the other ends of the chains to the two settings, attaching them to the shoulder pieces of the ephod at the front ...
分类:
其他好文 时间:
2017-08-07 11:55:25
阅读次数:
142
2017年8月5日 星期六 --出埃及记 Exodus 28:27Make two more gold rings and attach them to the bottom of the shoulder pieces on the front of the ephod, close to the ...
分类:
其他好文 时间:
2017-08-07 11:51:23
阅读次数:
151
题目原文:http://coursera.cs.princeton.edu/algs4/assignments/8puzzle.html 题目要求:设计一个程序解决8 puzzle问题以及该问题的推广,例如8-puzzle是3*3,程序要能解决n*n的同类问题(2 ≤ n < 128) 典型的8 p ...
分类:
其他好文 时间:
2017-08-04 01:16:37
阅读次数:
511
Assignment Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 4316 Accepted Submission(s): 1984 Prob ...
分类:
其他好文 时间:
2017-07-29 21:27:40
阅读次数:
189
Scheduler作为Storm的调度器,负责为Topology分配可用资源。 Storm提供了IScheduler接口,用户可以通过实现该接口来自定义Scheduler。 其定义如下: 真正选择哪个调度器来对Topology进行分配的方法是mk-assignments。 mk-assignment ...
分类:
Web程序 时间:
2017-07-28 16:43:29
阅读次数:
297
/** 题目:hdu6006 Engineer Assignment 链接:http://acm.hdu.edu.cn/showproblem.php?pid=6006 题意:已知n个工程,每个需要某些领域的专家。有m个工程师,每个人擅长一些领域。 一个工程师只能参加一个工程。一个工程可以多个工程师... ...
分类:
其他好文 时间:
2017-07-26 19:26:39
阅读次数:
137
题意:就是求最大匹配 #include<cstdio> #include<iostream> #include<algorithm> #include<cmath> #include<set> #include<map> #include<string> #include<cstring> #inc ...
分类:
其他好文 时间:
2017-07-26 00:02:36
阅读次数:
174