Problem DescriptionA while ago I had trouble sleeping. I used to lie awake, staring at the ceiling, for hours and hours. Then one day my grandmother s...
分类:
其他好文 时间:
2015-06-06 21:53:05
阅读次数:
93
Portable Class Libraries were introduced with Visual Studio 2010 SP1 to aid writing libraries that could be used on many different platforms – the ful...
分类:
其他好文 时间:
2015-06-06 13:24:25
阅读次数:
180
文章引用:http://code.tutsplus.com/tutorials/the-essentials-of-writing-high-quality-javascript--net-15145
分类:
其他好文 时间:
2015-06-05 19:11:16
阅读次数:
90
Once again, I run into trouble when upgrading my LinuxMint.
In last few days, my Linux mint notifies me that lots of packages need to be upgraded. As I'm using an LTS version, I agreed to download ...
分类:
系统相关 时间:
2015-06-05 15:44:15
阅读次数:
169
二分+DP Orz KuribohG 神题啊= = 满足单调性是比较显然的…… 然而蒟蒻并不会判断能否满足……QwQ 神一样的DP姿势:f[i]表示第 i 个与第1个最多有多少个相同,g[i]表示最少。那么如果g[n]==0就表示满足 1 /************************...
分类:
其他好文 时间:
2015-06-03 23:08:46
阅读次数:
224
一、元编程(Meta Programming)Metaprogramming is the writing of computer programs with the ability to treat programs as their data. It means that a program c...
分类:
其他好文 时间:
2015-06-03 21:18:08
阅读次数:
128
About GitBookGitBook was created in the middle of 2014 with the vision of creating a modern and simple solution to digital writing and publishing.We a...
分类:
其他好文 时间:
2015-06-03 11:32:15
阅读次数:
220
题意:n个程序员一起写m行代码,第i个程序员每写一行有a[i]个bug,求总bug不超过b的分配方案有多少种
分析:这题很像完全背包,不过求的不是最大/最小bug数,求的是bug数小于上限的分配方案。所以这题要用三维dp
dp[i][j][k]表示前i个个程序员总共写了j行代码产生了k个bug时的plan数,这题有两种转移:1)第i个程序员再写一行;2)换第i+1号程序员写
所以方程:dp[...
分类:
编程语言 时间:
2015-06-02 17:56:29
阅读次数:
237
Nunit 测试可以被任意支持attributes的.net语言使用Attributes被用于去标识测试类和测试方法,然后通过不同的方式修改他们的行为Assertions针对一个或多个约束,测试一个实际值,然后断定为一个成功或失败的测试结果TestContext写测试代码的时候,有时候需要测试上下文...
分类:
其他好文 时间:
2015-06-02 00:08:29
阅读次数:
246
原书参考:http://www.jeffknupp.com/blog/2012/10/04/writing-idiomatic-python/上一篇:翻译《Writing Idiomatic Python》(四):字典、集合、元组下一篇:TO BE UPDATED..2.7 类2.7.1 用isin...
分类:
编程语言 时间:
2015-05-31 19:58:16
阅读次数:
209