码迷,mamicode.com
首页 >  
搜索关键字:choose the best rout    ( 3445个结果
POJ 3624 Charm Bracelet
DescriptionBessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from...
分类:其他好文   时间:2014-07-25 19:06:52    阅读次数:339
HDU 3613 Best Reward 正反两次扩展KMP
题目来源:HDU 3613 Best Reward 题意:每个字母对应一个权值 将给你的字符串分成两部分 如果一部分是回文 这部分的值就是每个字母的权值之和 求一种分法使得2部分的和最大 思路:考虑扩展KMP 输出a串 得到a的反串b 求出f[0]和f[1] 和 extend[0]和extend[1] 正反求2次 枚举位置i 分成2部分0到i-1 和i到n-1 因为分成的2部分必须组成原字符...
分类:其他好文   时间:2014-07-24 17:45:32    阅读次数:271
【LeetCode】【Python题解】Best Time to Buy and Sell Stock II
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy on...
分类:编程语言   时间:2014-07-24 10:25:36    阅读次数:227
codeforces400A - Inna and Choose Options 暴力
题意:给你12张只包含X 和O的牌,问你n*m = 12 中,每一列都是X的情况有几种: 谁把这题定为DP题信不信我砍死你。解题思路:我愚蠢的暴力解题代码: 1 // File Name: 400a.cpp 2 // Author: darkdream 3 // Created Time: 2...
分类:其他好文   时间:2014-07-24 10:16:23    阅读次数:243
poj 1699 Best Sequence (搜索技巧 剪枝 dfs)
题目链接题意:给出几个基因片段,要求你将它们排列成一个最短的序列,序列中使用了所有的基因片段,而且不能翻转基因。分析:先计算出add数组,再dfs枚举。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7...
分类:其他好文   时间:2014-07-23 22:11:17    阅读次数:281
PHP自学,第一阶段,基础学习
环境搭建OS X系统上 Win7运行OS X虚拟机 在 OS X上安装MAMP运行环境 IDE使用 Netbeans PHP版本开发 数据库使用mysql 自学资料使用:PHP从入门到精通.pdf 第一阶段书写学习代码,外加注释详解 To change this license header, choose Li...
分类:Web程序   时间:2014-07-23 21:04:25    阅读次数:460
请假的邮件
跟导师请假,邮件如下:Title: Ask for leave in April 30thDear Mentor XXX:I'm requesting a leave of absence in April 30th for attending a wedding.Best regards,yyy
分类:其他好文   时间:2014-07-22 22:46:53    阅读次数:180
Oracle SQL性能优化系列
1.选用适合的ORACLE优化器 ORACLE的优化器共有3种: a.RULE(基于规则)b.COST(基于成本)c.CHOOSE(选择性) 设置缺省的优化器,可以通过对init.ora文件中OPTIMIZER_MODE参数的各种声明,如RULE,COST,CHOOSE,ALL_ROWS,FIRST...
分类:数据库   时间:2014-07-22 22:45:53    阅读次数:269
LeetCode Best Time to Buy and Sell Stock III
class Solution {public: int maxProfit(vector &prices) { int len = prices.size(); if (len i2r(len, 0); vector i2l(len, 0); ...
分类:其他好文   时间:2014-07-22 22:34:54    阅读次数:154
NYOJ-927 The partial sum problem
The partial sum problem 时间限制:1000 ms  |  内存限制:65535 KB 难度:2 描述One day,Tom’s girlfriend give him an array A which contains N integers and asked him:Can you choose some integers from the N ...
分类:其他好文   时间:2014-07-22 18:01:38    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!