摘要: 由于Spring的发展,许多公司都把掌握Spring作为一种基本的入门技能吧。而定时任务是在开实际开发中经常会用到的功能,说到定时任务,是不是经常在Spring配置文件或者注解上看见类似如下的字符串 "0 0/5 * * * ?" "0 10,44 14 ? 3 WED" "0 0-5 14 * * 阅读全文
posted @ 2016-04-12 16:24 hudiwei-hdw 阅读(185) 评论(0) 推荐(0) 编辑
摘要: A计划 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 15567 Accepted Submission(s): 3886 Problem De 阅读全文
posted @ 2016-04-12 14:17 hudiwei-hdw 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 这题是01年East Central North的A题,目测是签到题 Source 阅读全文
posted @ 2016-03-21 12:54 hudiwei-hdw 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so tha 阅读全文
posted @ 2016-03-18 16:32 hudiwei-hdw 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Input 测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是城镇数目N ( < 1000 )和道路数目M;随后的M行对应M条道路,每行给出一对正整数,分别是该条道路直接连通的两个城镇的编号。为简单起见,城镇从1到N编号。 注意:两个城市之间可以有多条道路相通,也就是说3 31 21 22 1这种输入也是合法的当N为0时,输入结束,该用例不被处理。 Output 对每个... 阅读全文
posted @ 2016-03-17 15:58 hudiwei-hdw 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Description Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 3 4 5 16 17 18 19 6 15 24 25 20 7 14 23 22 21... 阅读全文
posted @ 2016-03-09 17:21 hudiwei-hdw 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Description Bulls are so much better at math than the cows. They can multiply huge integers together and get perfectly precise answers ... or so they say. Farmer John wonders if their answers are corr... 阅读全文
posted @ 2016-03-09 10:58 hudiwei-hdw 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F 阅读全文
posted @ 2016-02-17 16:10 hudiwei-hdw 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho 阅读全文
posted @ 2016-02-17 11:51 hudiwei-hdw 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 新年啦,大家新年快乐~~ 由于新年呢,所以最近很少做题,今天终于有时间可以打打代码了 134. Gas Station. There are N gas stations along a circular route, where the amount of gas at station i is  阅读全文
posted @ 2016-02-12 17:09 hudiwei-hdw 阅读(122) 评论(0) 推荐(0) 编辑