通道题意:有3*n个人,分成n组,每组三个人。给出k个三元组,这三个人不可组队,问最后可以组队的总方案数思路:当k=0时,有(C[3*n][3]*C[3*n-3][3]*……*C[3][3])/n!种方案,展开以后可以得到dp[n]=(3*n)!/n!/6^n。显然可以写成递推式:dp[n]=dp[...
分类:
其他好文 时间:
2015-08-20 01:01:22
阅读次数:
178
Checkpoints are the foundation for restarting packages in SSIS, and they work by writing state information to a ?le after each task completes.This ?le...
分类:
其他好文 时间:
2015-08-18 15:31:06
阅读次数:
92
You need to understand what a Trie is before writing the code :-) This link has a nice solution, whose code is rewritten below. 1 class TrieNode { 2 p...
分类:
其他好文 时间:
2015-08-17 23:23:23
阅读次数:
191
1 essay n.散文,小品文;论说文2 distribute vt.分发,分配,分送3 finally adv.最终,终于4 face up to 勇敢的接受或对付5 scan 浏览,粗略地看6 spaghetti n.意大利式细面条7 title n.标题,题目 ...
分类:
其他好文 时间:
2015-08-17 09:52:48
阅读次数:
101
error writing temporary file。make sure your temp folder is valid 问题已解决2012-11-17 23:48:21| 分类: 默认分类 | 标签:error writing tempor nsis win7 |举报|字号 订阅我的是wi...
分类:
其他好文 时间:
2015-08-13 11:53:36
阅读次数:
167
Introduction Web Services Made Easy (WSME) simplifies the writing of REST web services by providing simple yet powerful typing, removing the need to.....
分类:
其他好文 时间:
2015-08-12 18:35:53
阅读次数:
141
reference: https://docs.djangoproject.com/en/1.8/intro/tutorial01/Writing your first Django app, part 1Let’s learn by example.Throughout this tutorial...
分类:
移动开发 时间:
2015-08-10 19:41:30
阅读次数:
128
models 其实也没什么好说的,就是普通的 python 类settings 中配置数据库连接DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mydb', ...
分类:
其他好文 时间:
2015-08-08 22:49:34
阅读次数:
207