码迷,mamicode.com
首页 >  
搜索关键字:minimum path sum    ( 52602个结果
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
hust 1009 Sum the K-th
题目描述N integers are arranged on a circle clockwise. Given two integers M and K. For each position, you should take M continuous integers on the left an...
分类:其他好文   时间:2014-05-09 10:30:49    阅读次数:350
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
Debian rails Puma god 开机启动
1、安装godgeminstallgod2、设置环境变量以及开机启动的rc.local文件,其内容如下PATH=$PATH:/zhiyisoft/bingod-c/etc/god/god.god备注:请将rubybin目录下的所有文件链接到/zhiyisoft/bin下面,否则将无法运行如果是rvm,请执行下方命令1、rvmwrapper2.0.0@rails3bootupgod2、..
分类:其他好文   时间:2014-05-09 00:52:01    阅读次数:1277
个人python开发环境搭建
一、环境ubuntu10.4mysql5.1.60python.6.6java7二、搭建1.安装ubuntu10.4,并更新软件包2.sudosu-切换到root用户下安装mysql5.1.60groupaddmysql useradd-gmysqlmysql ./configure--prefix=/usr/local/mysql--with-unix-socket-path=/usr/local/mysql/var/mysql.sock--sysconfd..
分类:编程语言   时间:2014-05-09 00:48:04    阅读次数:362
ExtJS(1)- ExtJS的选择器
这几个月正式开始运用ExtJS开发项目,接下来会将这几个月的一些经验整理成一个系列博客。今天要讲的是ExtJS中的基础,如何获取component和Dom.element。一、query查询以下的path为查询条件,查询方式类似于JQuery*ComponentQuery返回componentExt.ComponentQuery.query(path)全..
分类:Web程序   时间:2014-05-09 00:44:37    阅读次数:413
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!