Description:Kefa wants to celebrate his first big salary by going to restaurant. However, he needs company.Kefa hasnfriends, each friend will agree to...
分类:
其他好文 时间:
2015-10-12 19:04:45
阅读次数:
211
The Highest MarkTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 247Accepted Submission(s): 101Pr...
分类:
其他好文 时间:
2015-10-11 11:29:59
阅读次数:
172
题目:删除链表中倒数第n个节点给定一个链表,删除链表中倒数第n个节点,返回链表的头节点。样例 给出链表1->2->3->4->5->null和 n = 2.删除倒数第二个节点之后,这个链表将变成1->2->3->5->null.注意 链表中的节点个数大于等于n解题:要删除倒数第n个节点,我们要找到其...
分类:
其他好文 时间:
2015-10-11 11:19:07
阅读次数:
225
题意: 有n道题目,每道题目的初始分数为Ai,分数每分钟减少Bi,完成此题需要Ci分钟,问在t分钟内最多能获得多少分?思路: 好题~ 如果没有B的话,就是一道裸的01背包的题目了。每道题目的得分为:v=A-B*g (其中g为完成这道题目的时刻),想要用背包解的话是可以的,但是完成的次序不同的话...
分类:
其他好文 时间:
2015-10-11 00:31:53
阅读次数:
365
Coded triangle numbersProblem 42The nth term of the sequence of triangle numbers is given by,tn=1/2n(n+1);so the first ten triangle numbers are: 1, 3,...
分类:
其他好文 时间:
2015-10-10 21:26:02
阅读次数:
246
1.合并两个排好序的listMerge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the no...
分类:
其他好文 时间:
2015-10-08 22:44:55
阅读次数:
207
css代码tr:nth-child(even){background:gray} 选择偶数行tr:nth-child(even){background:gray} 选择奇数行
分类:
Web程序 时间:
2015-10-08 21:32:02
阅读次数:
165
css3中新增的选择器可以简便许多样式。此次用了属性选择器,root,not,empty,target,first-child,last-child,ntn-child(n),ntn-last-child(n),first-of-type,nth-of-type(n),last-of-type,nt...
分类:
Web程序 时间:
2015-10-06 19:22:46
阅读次数:
469
在学习公开课“方言与中国文化”时,需要提交录音,手机的录音默认是wav格式的,需要转换成mp3格式? linux下可以用 lame转换 lame sample.wav sample.mp3
lame -h sample.wav sample.mp3 # highest quality
lam...
分类:
系统相关 时间:
2015-10-03 15:45:52
阅读次数:
312
//Document doc2 = Jsoup.parseBodyFragment(element.text()); //String FieldName=doc2.select(".tr:nth-child(1)>td:nth-child(1)>span").text(); ...
分类:
Web程序 时间:
2015-09-30 12:50:52
阅读次数:
139