这题是黄巨大出的比赛题.http://poj.org/problem?id=3278DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediatel...
分类:
其他好文 时间:
2014-06-19 00:58:53
阅读次数:
510
Nightmare
时间限制:1000 ms | 内存限制:65535 KB
难度:4
描述
Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignatius should ...
分类:
Web程序 时间:
2014-06-16 18:57:52
阅读次数:
268
Mac book pro 硬盘故障、换SSD硬盘、启动U盘制作 小记
2012年买的Mbp又出硬盘故障了,虽然各种功能都能用,但经常频繁的出现鼠标风火轮,已经下好的电影在本地播放时都会隔个几分钟卡一下。拿到AppStore检测,说是硬盘的问题,“SMARTStatus:FAIL”,建议是要换硬盘。好吧,我的保修期已过,就准备自己动手换盘了。
准备...
分类:
其他好文 时间:
2014-06-16 14:18:33
阅读次数:
333
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.The first integer of each...
分类:
其他好文 时间:
2014-06-15 14:12:44
阅读次数:
238
此系列博客皆为阅读《Pro Spring Batch》一书的读书笔记;为什么我们需要批处理?我们不会总是想要立即得到需要的信息,批处理允许我们在请求处理之前就一个既定的流程开始搜集信息;比如说一个银行对账单,我们可以按月生成,并在用户查询之前开启一个批处理流程进行处理;有时候它能让生意做得更好;比如...
分类:
编程语言 时间:
2014-06-15 13:11:43
阅读次数:
292
Problem Description
In a factory, there are N workers to finish two types of tasks (A and B). Each type has N tasks. Each task of type A needs xi time to finish, and each task of type B needs yj ti...
分类:
其他好文 时间:
2014-06-15 11:26:42
阅读次数:
195
原因:在macbook pro retina上安装win7双系统错误:在使用Bootcamp分区的时候出现错误:An error occurred while partitioning the disk解决方法: - 打开Disk Utility (磁盘工具) - 在左侧选择当前使用的硬盘,然后.....
分类:
其他好文 时间:
2014-06-14 20:05:48
阅读次数:
456
总算在Qt中把Sqlite操作成功了,写点总结吧。其实早就弄对了的,但查看数据库就是没有想要的结果。最后发现生成的执行文件在Dbug目录,与先前设定的路径不同,这才恍然大悟。一、使用到数据库模块,需在pro文件中加入:QT += sql二、所需数据库操作的相关头文件:#include #includ...
分类:
数据库 时间:
2014-06-14 15:13:10
阅读次数:
278
原始题目如下,意为寻找数组和最大的子串,返回这个最大和即可。
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the...
分类:
其他好文 时间:
2014-06-14 15:08:00
阅读次数:
224
HashMap基于hash表的Map接口实现,它实现了Map接口中的所有操作。HashMap允许存储null键和null值。这是它与Hashtable的区别之一(另外一个区别是Hashtable是线程安全的)。另外,HashMap中的键值对是无序的。下面,我们从HashMap的源代码来分析Has.....
分类:
其他好文 时间:
2014-06-14 09:43:49
阅读次数:
304