有n个程序,这n个程序运作产生m行代码,但是每个程序产生的BUG总和不能超过b,给出每个程序产生的代码,每行会产生ai个BUG,问在总BUG不超过b的情况下,我们有几种选择方法思路:看懂了题意之后就是一个完全背包题了定义dp[ i ][ j ][ k ] 表示前 i 个程序员,已经写了 j 行代码,...
分类:
其他好文 时间:
2015-05-31 16:37:48
阅读次数:
103
Activity之间传递数据时,为了方便,将很多数据封装成对象,然后将整个对象传过去。传对象有2中情况,
一种是实现Parcelable接口的
一种是实现Serializable接口的
用bundle.putSerializable(key ,object)产地参数或者用intent.putExtra(key object)传递参数。
但是使用时候,出现了异常
1.java.io.Not...
分类:
移动开发 时间:
2015-05-31 09:29:19
阅读次数:
274
Read CodeKarianne BergWE PROGRAMMERS ARE WEiRD CREATURES. We love writing code. But when it comes to reading it, we usually shy away. After all, writing code is so much more fun, and reading code is ha...
分类:
其他好文 时间:
2015-05-30 09:20:21
阅读次数:
161
private void Operate_OnClick(object sender, RoutedEventArgs e){ AsyncFindBox(); RadWindow.Alert("测试测试!");}private void AsyncFindBox(){ #regi...
Design an algorithm and write code to serialize and deserialize a binary tree. Writing the tree to a file is called 'serialization' and reading back f...
分类:
其他好文 时间:
2015-05-25 20:08:17
阅读次数:
358
前言Reading makes a full man; conference a ready man; and writing an exact man.Francis Bacon优秀的程序员应该具备两方面能力:良好的程序设计能力:掌握常用的数据结构和算法(例如链表,栈,堆,队列,排序和散列);理解...
分类:
其他好文 时间:
2015-05-24 00:06:26
阅读次数:
134
News of the Weird: Testers Are Your FriendsBurk HufnagelWHETHER THEY CALL THEMSELVES Quality Assurance or Quality Con- trol, many programmers call them Trouble. In my experience, programmers often have...
分类:
其他好文 时间:
2015-05-22 09:39:09
阅读次数:
125
openstack,swift的log不输出了。trouble shooting过程 ,发现我们的程序 /var/log/swift/proxy.log等总是不输出log。因为log rsyslog控制,所以这些log应该是 rsyslog进程打开lsof -p rsyslog 发现没有打开这些文件...
分类:
其他好文 时间:
2015-05-21 21:58:12
阅读次数:
170
openstack,swift的log不输出了。trouble shooting过程 ,发现我们的程序 /var/log/swift/proxy.log等总是不输出log。因为log rsyslog控制,所以这些log应该是 rsyslog进程打开lsof -p rsyslog 发现没有打开这些文件...
分类:
其他好文 时间:
2015-05-21 19:19:12
阅读次数:
121
My Emacs Writing SetupTable of Contents1. About this Document1.1. Related Materials1.2. Change History2. License3. Why Emacs?4. Setup5. Structuring a ...
分类:
系统相关 时间:
2015-05-20 22:00:49
阅读次数:
140