码迷,mamicode.com
首页 >  
搜索关键字:k sum    ( 21381个结果
HDOJ 1001 Sum Problem
Sum Problem Time Limit: 1000/500 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 275913    Accepted Submission(s): 68867 Problem Description Hey, welcome...
分类:其他好文   时间:2014-07-22 00:27:36    阅读次数:167
Codeforces 229D
一 题意描述:有n(1=last[j]}三 源码展示: 1 #include 2 int dp[5010],sum[5010],last[5010]; 3 int main() 4 { 5 int n; 6 scanf("%d",&n); 7 memset(sum,0,si...
分类:其他好文   时间:2014-07-21 14:30:46    阅读次数:206
LeetCode_39combinationSum2 [Combination Sum II]
#pragma warning(disable:4996) #include <Windows.h> #include <tchar.h> #include <cstdio> #include <vector> using namespace std; /* submit time : 3 1. Runtime Error Last executed input: [5,3]...
分类:其他好文   时间:2014-07-21 13:26:03    阅读次数:250
c语言数组问题解析
#import<Foundation/Foundation.h>#defineCOUNT10intmain(intargc,constchar*argv[]){//1、随机产生20个[10,50]的正整数存到数组中,并求数组中的所有元素最大值、最小值、平均值以及各元素之和。第二大值。//intmax=0,min=0,sum=0,secondMax=0;//floatave=0.0;//inta[20..
分类:编程语言   时间:2014-07-21 12:25:35    阅读次数:352
js基础知识总结:函数
函数内部的属性:arguments 和this是函数内部的两个特殊对象arguments:function recursion(num){ if(numfunction box(num1,num2){ return num1+num2;}//可以使用这种方式将sum函数转换成 box方法...
分类:Web程序   时间:2014-07-21 08:03:31    阅读次数:260
CodeForces 229D
DPdp[i]表示对前i座塔进行操作后形成非递减序列所需要的最小操作步数;sum[i]表示第i个塔与之前塔的总高度h[i]dp最小的情况下表示合并后第I个塔的最小高度#include using namespace std;#define MAX 1e8int dp[5005],h[5005],su...
分类:其他好文   时间:2014-07-21 00:00:37    阅读次数:244
HDU 4608 I-number--简单模拟
I-number Time Limit: 5000ms   Memory limit: 65536K  有疑问?点这里^_^ 题目描述 The I-number of x is defined to be an integer y, which satisfied the the conditions below: 1.  y>x; 2.  the sum of each...
分类:其他好文   时间:2014-07-20 23:24:13    阅读次数:298
【leetcode】Sum Root to leaf Numbers
简单的二叉树的先根遍历模板的应用 class Solution: # @param root, a tree node # @return an integer def hehe(self, num, root): #再原来的基础上*10,再加上当前的root.val num = num * 10 + root.val ...
分类:其他好文   时间:2014-07-20 22:45:33    阅读次数:299
Codeforces 450 C. Jzzhu and Chocolate
//area=(n*m)/ ((x+1)*(k-x+1)) //1: x==0; //2: x=n-1 //3: x=m-1 # include long long max(long long x,long long y) { return x>y?x:y; } int main() { long long n,m,k,sum,t,ans; scanf("%lld%lld%lld",&...
分类:其他好文   时间:2014-07-20 22:27:13    阅读次数:172
【Oracle】常用语句集合
1 oracle常用经典SQL查询 2 常用SQL查询: 3 4 1、查看表空间的名称及大小 5 6 select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size 7 from dba_ta...
分类:数据库   时间:2014-07-20 22:21:32    阅读次数:373
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!