码迷,mamicode.com
首页 >  
搜索关键字:sum problem    ( 57617个结果
[复变函数]第20堂课 5.4 整函数与亚纯函数的概念
1. 整函数 (entire function)(1) 定义: 若 $f$ 在 $\bbC$ 上解析, 则称 $f$ 为整函数.(2) 性质: $\dps{f(z)=\sum_{n=0}^\infty c_nz^n,\ 0\leq |z|<\infty}$.(3) 例: $f(z)=e^z,\sin...
分类:其他好文   时间:2014-04-30 04:37:01    阅读次数:366
LeetCode1:Two Sum
题目: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the t...
分类:其他好文   时间:2014-04-30 03:20:07    阅读次数:502
729 - The Hamming Distance Problem
// 题意: // 输入两个整数N, H,按照字典序输出所有长度为N,恰好包含H个1的01串 // 规模:1#include#include#include#includeusing namespace std;int n,h;int buf[16];void solve(int c0, int c...
分类:其他好文   时间:2014-04-29 23:19:55    阅读次数:416
[LeetCode] 4Sum
Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ...
分类:其他好文   时间:2014-04-29 22:40:00    阅读次数:438
ny82 迷宫寻宝(一) map+queue
题目地址:http://acm.nyist.net/JudgeOnline/problem.php?pid=82AC代码:讲解,先统计在可搜索范围内对应的钥匙数,把搜到的门存到另外的一个队列中,第一个搜索结束后,开始看搜到的钥匙能否打看门, 如果能打看门,存到第一个队列中,在进行搜寻,知道找到宝藏,...
分类:其他好文   时间:2014-04-29 22:12:16    阅读次数:550
BNU 2418 Ultra-QuickSort (线段树求逆序对)
题目链接:http://acm.bnu.edu.cn/bnuoj/problem_show.php?pid=2418解题报告:就是给你n个数,然后让你求这个数列的逆序对是多少?题目中n的范围是n < 500000,所以,暴力是不行的。还是第一次学会用线段树求逆序数,这种方法的时间复杂度是n * lo...
分类:其他好文   时间:2014-04-29 21:38:23    阅读次数:463
hdu 1124
题意:求N!中末尾0的个数 其实就是5的个数 因为2*5=10 肯定n中2的个数比5的个数多#includeusing namespace std;int main(){ int n; int t,d; int sum; scanf("%d",&t); while(t...
分类:其他好文   时间:2014-04-29 21:09:41    阅读次数:346
Sql Server 语句随笔
例1 对于两个或更多的销售员的销售点,计算其中所有销售员的总销售目标值和销售员金额。select city,sum(QUOTA),sum(SALESREPS.SALES)from OFFICE,SALESREPSgroup by CITYhaving count(*)>=2例2 (1) 单行in.....
分类:数据库   时间:2014-04-29 19:44:29    阅读次数:505
一些SQL整理
统计SQL执行时间和次数的语句:SELECT top 50qt.text AS SQL_text ,SUM(qs.total_worker_time) AS total_cpu_time,SUM(qs.execution_count) AS total_execution_count,SUM(qs....
分类:数据库   时间:2014-04-28 11:14:38    阅读次数:640
Conceptual blockbusting- chap2 perceptual blocks
Page 30Perceptual blocks are obstacles that prevent the problem-solver from clearly perceiving either the problem itself or the information needed to ...
分类:其他好文   时间:2014-04-28 00:54:37    阅读次数:403
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!