码迷,mamicode.com
首页 >  
搜索关键字:you have two operati    ( 41000个结果
HDU 4283 You Are the One (区间DP)
题意:有 n 个人,每个人有一个diaosi值a[i],如果第 i 个人排在第 k 位置,则他的愤怒值就为a[i]*(k-1); 过程中有一个黑屋子,可以把人暂时放到黑屋子里。 求总的愤怒值最小; 区间DP:对dp[i][j],我们考虑i到j的(j-i+1)个人,对于第i个人我们可以假设他在第k个位置,则前面就有k-1个人在他前面,j-k个人在他后面,所以dp[i][j]=m...
分类:其他好文   时间:2014-05-12 07:02:55    阅读次数:275
【LeetCode】Best Time to Buy and Sell Stock
Best Time to Buy and Sell StockSay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to compl...
分类:其他好文   时间:2014-05-12 05:56:14    阅读次数:315
【LeetCode】Insert Interval
Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially...
分类:其他好文   时间:2014-05-11 16:35:35    阅读次数:224
leetcode | Text Justification
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.You shoul...
分类:其他好文   时间:2014-05-11 15:15:29    阅读次数:287
Leetcode | Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-05-11 14:35:13    阅读次数:270
C 语言写的爱情诗歌
/* ******************************************* ***** File Name: Love.c ***** Description: Love Story about you and me ***** Author: JPing.Cai ***** Date: 2014-5-10 ***** Last Version: 1.0 * *******...
分类:其他好文   时间:2014-05-11 14:15:46    阅读次数:290
针对OpenSSL吐嘈的吐嘈-如此唱反调
前些天写了一篇《令人作呕的OpenSSL》,顿时引来了大量的恶评,令我非常尴尬,同时也觉得悲哀。如果说you can you up之类的,我觉得起码这人看出了我的本意,只是怀疑我的能力,但是我看到一些人竟然在我评价了一段僵尸代码后认定我不懂编译代码,这就悲哀了,这段代码大致如下:#if 0 /*abcdefghijklmn, ( and ABCDEFGHHHHSASA ...
分类:其他好文   时间:2014-05-11 14:08:34    阅读次数:238
VS开发ArcEngine时的一个异常信息——“ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS components.”
问题描述:程序报错“ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS components.”解决方法:打开program.cs。 把ESRI.ArcGIS.Ru...
分类:其他好文   时间:2014-05-11 13:10:03    阅读次数:448
TI C66x DSP 系统events及其应用 - 5.2(PDSP配置)
本节讲述PDSP监控的配置。 QMSS PDSP:The queue manager sub system contains two or eight packed data structure processors (PDSP) and associated hardware that allow autonomous QMSS-related tasks with interrupt not...
分类:其他好文   时间:2014-05-11 04:02:36    阅读次数:507
【ruby】ruby基础知识
Install Ruby(安装)For windows you can download Ruby fromhttp://rubyforge.org/frs/?group_id=167for Linux tryhttp://www.rpmfind.net.Our first program(从此开始...
分类:其他好文   时间:2014-05-11 00:02:21    阅读次数:602
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!