LCM WalkTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 47Accepted Submission(s): 31Problem Descri...
分类:
其他好文 时间:
2015-11-29 13:26:33
阅读次数:
120
先最短路预处理, 然后状压就行了--------------------------------------------------------------------------#include#include#include#include#includeusing namespace std;...
分类:
其他好文 时间:
2015-11-29 13:26:22
阅读次数:
190
dp,答案容易想到是 凑出价格总和≤m-5 + 没被使用的最大价格。dp[i = 前i种价格][j = 价格总和] = 最大没使用的价格下标idx_m。dp[i-1][j]存在的话,则只要更新idx_m。如果dp[i-1][j-c[i]]存在但是dp[i-1][j]不存在,那么c[i]必须使用,id...
分类:
其他好文 时间:
2015-11-29 13:24:46
阅读次数:
107
虽然是水题,但是还是很interesting的。(大概就是我最晚出这个题了。。。博弈感觉就是靠yy能力啊。这题是对称性。最后的必败态是白色格子对称的,一旦对称形成,对手怎么选,跟随就好,对手无法摆脱。当n是奇m是奇,取最中间的一个,当一奇一偶,去掉一个奇数列或行。只有一开始就是对称的才会输。#inc...
分类:
其他好文 时间:
2015-11-29 13:23:57
阅读次数:
170
网易博客粗略地在转载的基础上对AtomEye补充了概述: AtomEye: Atomistic configuration viewer developed by J. Li. This program is mainly used for MD results. Since this ...
分类:
其他好文 时间:
2015-11-29 13:24:36
阅读次数:
1350
正好最近有朋友咨询我这个问题,那就简单谈一下我理解的node环境和浏览器的区别,高手请略过。一、全局环境下this的指向 在node中this指向global而在浏览器中this指向window,这就是为什么underscore中一上来就定义了一 root; 1 var root = typeo.....
分类:
其他好文 时间:
2015-11-29 13:23:14
阅读次数:
272
今天早上起床发现我的说说多出来一条,是个抽奖抽到红包的那种垃圾说说,这个是微博上的,空间的被我删掉了我第一反应是,我也会被盗号了?我得QQ登录都是有设备锁的,查了登陆记录也是没有,然后我就纠结了。。这是怎么发出去的,然而我并没有分享,5点多我还做梦呢,可能是别的网站第三方使用登录QQ登录授权中如果包...
分类:
其他好文 时间:
2015-11-29 13:23:24
阅读次数:
135
Question:Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.F...
分类:
其他好文 时间:
2015-11-29 13:24:32
阅读次数:
144
【HDU 1839】 Delay Constrained Maximum Capacity Path(二分+最短路)
Delay Constrained Maximum Capacity Path
Time Limit: 10000/10000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)
Tota...
分类:
其他好文 时间:
2015-11-29 12:10:59
阅读次数:
205
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2015-11-29 12:08:03
阅读次数:
142
练习文档:http://linux.vbird.org/linux_basic/0330regularex/regular_express.txt1.攫取拥有‘the’字符的行,并显示行号2.攫取不拥有‘the’字符的行,并显示行号3.攫取拥有不分大小写的‘the’字符的行,并显示行号4.使用[]攫...
分类:
其他好文 时间:
2015-11-29 12:09:49
阅读次数:
127
字符串去星Problem : 903Time Limit : 1000msMemory Limit : 65536Kdescription有一个字符串(长度小于100),要统计其中有多少个*,并输出该字符串去掉*后的新字符串。input输入数据有多组,每组1个连续的字符串;output在1行内输出该...
分类:
其他好文 时间:
2015-11-29 12:06:45
阅读次数:
173
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro...
分类:
其他好文 时间:
2015-11-29 12:07:41
阅读次数:
177
此算法灵感来自于apache内存池实现原理,不过读者如果没有看过apache内存池实现也无关系,因为本算法相对apache内存池算法更为简单而且易懂,个人认为某些场合也更为高效,或许真正到了apache服务器上性能不如,但是这套设计思想应该还是可以借鉴到更多场合的。我们在调用malloc函数时,操作...
分类:
其他好文 时间:
2015-11-29 12:07:03
阅读次数:
155
public class Solution { public List> groupStrings(String[] strings) { HashMap> map = new HashMap>(); for (String str :strings) { ...
分类:
其他好文 时间:
2015-11-29 12:07:06
阅读次数:
168
t1776:木材加工查看提交统计提问总时间限制:1000ms内存限制:65536kB描述木材厂有一些原木,现在想把这些木头切割成一些长度相同的小段木头,需要得到的小段的数目是给定了。当然,我们希望得到的小段越长越好,你的任务是计算能够得到的小段木头的最大长度。木头长度的单位是厘米。原木的长度都是正整...
分类:
其他好文 时间:
2015-11-29 12:04:23
阅读次数:
127
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2015-11-29 12:04:17
阅读次数:
127