H. Qin Shi Huang's National Road SystemTime Limit: 1000msMemory Limit: 32768KB64-bit integer IO format:%I64d Java class name:MainDuring the Warring St...
分类:
其他好文 时间:
2014-07-23 15:07:06
阅读次数:
291
Chanel brand is taking the high road, stylish simplicity, simple and comfortable, pure style. "Fashion passes, style remains" still the guiding force ...
分类:
其他好文 时间:
2014-07-22 00:27:37
阅读次数:
268
Description
During the Warring States Period of ancient China(476 BC to 221 BC), there were seven kingdoms in China -- they were Qi, Chu, Yan, Han, Zhao, Wei and Qin. Ying Zheng was the king of the...
分类:
其他好文 时间:
2014-07-21 23:27:49
阅读次数:
437
find the safest road
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 6380 Accepted Submission(s): 2271
Problem Description
XX星球有很多城...
分类:
其他好文 时间:
2014-07-20 22:18:33
阅读次数:
232
#include #include #include using namespace std;int main(){ string s("Somewhere down the road"); istringstream iss(s); while (iss) ...
分类:
编程语言 时间:
2014-07-19 23:13:54
阅读次数:
248
在python中,所有和正则表达式相关的功能都包含在re模块中。$表示字符串的末尾,^表示字符串的开始,原始字符串:字符串添加前缀r,表示字符串中的所有字符都不转义。\b表示单词的边界必须在这里。s="100 BROAD"re.sub('ROAD$','RD',s)结果:'100 BRD're.su...
分类:
编程语言 时间:
2014-07-19 20:38:28
阅读次数:
233
1 package hhuarongdao;2 3 public class example {4 public static void main(String args[])5 {6 new Hua_Rong_Road();7 }8 } 1 package hhuarongdao...
分类:
编程语言 时间:
2014-07-19 09:18:35
阅读次数:
291
最短路问题。
Dijkstra,SPFA,Floyd 都可求。题意很明了,求最安全的路,乘起来就好了。
有个小优化就是SPFA 算过的起点就不再去算了。
还有判断一下终点,开始没判断,WA了一发。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#inc...
分类:
其他好文 时间:
2014-07-19 02:45:06
阅读次数:
183
这题的考察点 应该有2个一个是对于LIS算法的优化 使用进行二分查找的O(nlogn)算法 而不是 O(n^2)另一个就是 对于题意的理解... 并不是可以很直观地联系到 最长上升子序列的...你可以自己画图 就很直观了.. touch me另外一个很坑的地方 就是 road || ...
分类:
其他好文 时间:
2014-07-16 17:55:22
阅读次数:
182
E - Speed Limit(2.1.1)
Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
Bill and Ted are taking a road trip. But the odometer in t...
分类:
其他好文 时间:
2014-07-15 12:42:21
阅读次数:
282