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
一 题意描述:有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
#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
#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
函数内部的属性:arguments 和this是函数内部的两个特殊对象arguments:function recursion(num){ if(numfunction box(num1,num2){ return num1+num2;}//可以使用这种方式将sum函数转换成 box方法...
分类:
Web程序 时间:
2014-07-21 08:03:31
阅读次数:
260
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
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
简单的二叉树的先根遍历模板的应用
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
//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
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