码迷,mamicode.com
首页 >  
搜索关键字:path sum    ( 49923个结果
python 遍历文件夹文件代码
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
执行jar文件生成pdf报错,Unsupported URL <file:///home
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
Summation of primes
是我算法不对,还是笔记本CPU太差?我优化了两次,还是花了三四个小时来得到结果。在输出上加1就是最终结果。The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two mil...
分类:其他好文   时间:2014-05-09 16:20:08    阅读次数:295
某互联网(特大型)公司游戏元数据管理系统前端开发技术
本人于去年十月份开始接收游戏元数据管理系统的开发,下面就把使用的技术总结一下: 由于元数据数据库比较多,链接频繁会影响效率,所以我们使用了facebook开源的Thrift,服务端使用C++,客户端链接使用python和php,由于我主要做php,下面是Thrift的php客户端入口文件: <?php #Thrift Lib Path Root $GLOBALS['THRIFT_ROOT']=...
分类:其他好文   时间:2014-05-09 14:00:16    阅读次数:332
Leetcode | Path Sum I && II
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
Leetcode | 3Sum
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:其他好文   时间:2014-05-09 10:27:29    阅读次数:449
mongoDB 启动服务
mongod --dbpath "d:\Program Files\MongoDB 2.6 Standard\data\db" --logpath "d:\Program Files\MongoDB 2.6 Standard\logs\MongoDB.log" --install --service...
分类:数据库   时间:2014-05-09 10:19:13    阅读次数:301
bzoj 1010,1011
1011:#include #include #include #include #include using namespace std;const int maxN = 100001;const double eps = 1e-7;int n;double m[maxN],sum[maxN];d...
分类:其他好文   时间:2014-05-09 08:36:06    阅读次数:303
linux中脚本在任意目录执行
完成了一个脚本,find.sh如果希望可以再linux系统中任何位置都可以执行该脚本,可以执行下面操作1. chmod 775 find.sh 给该脚本增加可执行权限2. export PATH=$PATH:存放该脚本的路径
分类:系统相关   时间:2014-05-09 08:16:43    阅读次数:498
杭电oj 1001
#includeusing namespace std;int main(){ int n = 0, sum; while (cin>>n) { sum = 0; // 这里要清零 for (int i =0; i <= n; i++) {...
分类:其他好文   时间:2014-05-09 05:38:17    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!