码迷,mamicode.com
首页 >  
搜索关键字:minimum sum lcm    ( 24851个结果
oracle性能检测sql语句
1. 监控事例的等待 select event,sum(decode(wait_Time,0,0,1)) "Prev",sum(decode(wait_Time,0,1,0)) "Curr",count(*) "Tot" from v$session_Wait group by event orde...
分类:数据库   时间:2014-06-27 19:18:03    阅读次数:273
数字信号处理Day2-小波基与规范正交化
我们有这么一张灰度图64*64我们能够定义出4096个基,各自是某一位是0其它是1,在这样的情况下,假设我们传输图片,那么就相当于传输原始数据如果传到一半,网络坏了。于是,我们得到我们能够计算原图像和这图像的差距error = I - I_approx;distance = sqrt(sum(sum...
分类:其他好文   时间:2014-06-26 18:26:10    阅读次数:202
Leetcode Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".class Solution {public: string addBinary(str...
分类:其他好文   时间:2014-06-26 15:52:27    阅读次数:159
Leetcode Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:其他好文   时间:2014-06-26 15:45:49    阅读次数:163
Leetcode Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:其他好文   时间:2014-06-26 15:10:47    阅读次数:168
BZOJ:3209: 花神的数论题
今天居然没参考任何资料解决了这道数位DP,事先只是搞一道数论题练练;思路:求SUM[1]-SUM[N]的二进制的乘积mod1000000007; N#include#include#includeusing namespace std;#define N 10000007typedef long.....
分类:其他好文   时间:2014-06-26 15:09:30    阅读次数:221
uva10487
#include #include using namespace std; int n,m,k,cases,sum,arr[1005],S[1000000]; void calsum(){ k=0; for (int i=0;i<n-1;i++){ for (int j=i+1;j<n;j++){ S[k++]=arr[i]+arr[j]; } } sort(S,S...
分类:其他好文   时间:2014-06-26 10:51:01    阅读次数:198
HDU 4336 Card Collector(动态规划-概率DP)
HDU 4336 Card Collector(动态规划-概率DP) 题目大意: 有n个卡片,你现在买一包方便面,没包方便面出现其中一个卡片的概率为 p[i] ,问你集齐一套卡片需要的张数的数学期望。 解题思路: 概率DP,用位进制0表示这个卡片有了,1表示这个卡片还没有,那么 例如 “3” 用二进制表示 “1 1” 那么 数组 dp[3] 记录的就是 1号卡片和2号卡片都有的情况集齐一套卡片需要的张数的数学期望。 dp[sum]= ( 1+sum { dp[ sum + (1<<j )] *p[j] ...
分类:其他好文   时间:2014-06-26 08:04:18    阅读次数:377
LeetCode: Palindrome Partitioning II [132]
【题目】 Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = "aab", Return 1 since the palindrome partitioning ["aa","b"] could b...
分类:其他好文   时间:2014-06-26 07:48:00    阅读次数:259
leetcode--Edit Distance
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:其他好文   时间:2014-06-25 11:14:15    阅读次数:218
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!