import osdef tree(top): for path, names, fnames in
os.walk(top): for fname in fnames: yield os.path.join(path, fname) for name
in...
分类:
编程语言 时间:
2014-05-09 23:49:35
阅读次数:
367
java
-Djava.library.path=/usr/local/lib/ruby/gems/1.8/gems/sharp_office-1.0.1/ext/sigar
-jar /usr/local/lib/ruby/gems/1.8/gems/sharp_office-1.0.1/ext/...
分类:
其他好文 时间:
2014-05-09 23:46:06
阅读次数:
265
必须要保证运行环境高于编译环境1.编译器的环境设置单击项目右键-> Properties
->Java Compiler ->5或6如果编译器的环境高于运行时环境会报错。2.运行环境的设置项目右键à Build path
->Configure Build path ->Libraries ->选中...
分类:
编程语言 时间:
2014-05-09 23:28:16
阅读次数:
385
Georgia and BobTime Limit:1000MSMemory
Limit:10000KTotal Submissions:7233Accepted:2173DescriptionGeorgia and Bob decide
to play a self-invented game. ...
分类:
其他好文 时间:
2014-05-09 20:27:36
阅读次数:
374
大家都喜欢用hell world来写第一个程序,python这里也写一个!
直接输入print"hello world"然后运行就ok啦,是不是很简单? 你确实没看错真的这么简单。
当然你可以也在cmd下面进行运行,前提是你配置了系统环境变量,(直接把python的安装路径添加到path里...
分类:
编程语言 时间:
2014-05-09 20:22:11
阅读次数:
322
Stoer-Wagner 算法
题目大意:有重边的无向图,至少删去多少条边能使其变为非连通图?
分析:传统最小割最大流算法需要枚举汇点,复杂度为O(n^4)以上,故有时会超时。本题用Stoer-Wagner 算法。...
分类:
其他好文 时间:
2014-05-09 15:23:18
阅读次数:
228
Crossing River
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 10218
Accepted: 3859
Description
A group of N people wishes to go across a river with only...
分类:
其他好文 时间:
2014-05-09 14:51:43
阅读次数:
257
本人于去年十月份开始接收游戏元数据管理系统的开发,下面就把使用的技术总结一下:
由于元数据数据库比较多,链接频繁会影响效率,所以我们使用了facebook开源的Thrift,服务端使用C++,客户端链接使用python和php,由于我主要做php,下面是Thrift的php客户端入口文件:
<?php
#Thrift Lib Path Root
$GLOBALS['THRIFT_ROOT']=...
分类:
其他好文 时间:
2014-05-09 14:00:16
阅读次数:
332
Path Sum IGiven 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 gi...
分类:
其他好文 时间:
2014-05-09 13:21:59
阅读次数:
320
A Funny GameTime Limit:1000MSMemory
Limit:65536KTotal Submissions:3861Accepted:2311DescriptionAlice and Bob decide
to play a funny game. At the beginn...
分类:
其他好文 时间:
2014-05-09 12:53:42
阅读次数:
265