码迷,mamicode.com
首页 >  
搜索关键字:amount    ( 1179个结果
337. House Robber III
Thethiefhasfoundhimselfanewplaceforhisthieveryagain.Thereisonlyoneentrancetothisarea,calledthe"root."Besidestheroot,eachhousehasoneandonlyoneparenthouse.Afteratour,thesmartthiefrealizedthat"allhousesinthisplaceformsabinarytree".Itwillautomaticallycontactthe..
分类:其他好文   时间:2016-03-15 00:52:59    阅读次数:366
some Linux shell commands
1. date: show current date and time. 2. cal: calendar. 3. df: to see the current amount of free space on your disk drives. 4. free: show the amount of
分类:系统相关   时间:2016-03-13 00:31:30    阅读次数:206
codeforces 27E . Number With The Given Amount Of Divisors 搜索+数论
题目链接 首先要知道一个性质, 一个数x的因子个数等于 a1^p1 * a2^p2*....an^pn, ai是x质因子, p是质因子的个数。 然后就可以搜了 #include <iostream> #include <vector> #include <cstdio> #include <cstr
分类:其他好文   时间:2016-03-12 17:17:56    阅读次数:210
stm32f407启动文件分析
; Amount of memory (in bytes) allocated for Stack; Tailor this value to your application needs; <h> Stack Configuration; <o> Stack Size (in Bytes) <0x
分类:其他好文   时间:2016-03-09 01:31:13    阅读次数:241
《从零开始学Swift》学习笔记(Day 34)——静态属性是怎么回事?
原创文章,欢迎转载。转载请注明:关东升的博客我先来设计一个类:有一个Account(银行账户)类,假设它有3个属性:amount(账户金额)、interestRate(利率)和owner(账户名)。在这3个属性中,amount和owner会因人而异,不同的账户这些内容是不同的,而所有账户的interestRa..
分类:编程语言   时间:2016-03-02 13:32:05    阅读次数:194
mysql变量使用总结
set语句的学习:使用select定义用户变量的实践将如下语句改成select的形式: set @VAR=(select sum(amount) from penalties);我的修改: select @VAR:=(select sum(amount) from penalties);我这样改,虽
分类:数据库   时间:2016-02-27 13:39:46    阅读次数:207
mysql线上一些隐患查询sql
开发写了几个语句,觉得查询结果跟逻辑有点不相符,就拿到这里一起分析了下。 语句如下: select tp.title, tp.amount, ifnull(sum(case when tu.type = 1 then ti.invest_amount else 0 end),0) as aInves
分类:数据库   时间:2016-02-25 13:48:28    阅读次数:276
leetcode笔记:Coin Change
题目大意是,给定不同面值的硬币(数值存放在数组coins)和一个金额总值amount。编写函数计算凑齐金额总值所最少需要的硬币数目。如果使用已有的硬币无法凑齐指定的金额,返回-1。...
分类:其他好文   时间:2016-02-19 10:47:51    阅读次数:184
python课程第四周重点记录
1.迭代器 names = iter(["alex","jack","rain"]) #声明列表的一个迭代器 names.__next__() #迭代 2.生成器,使用yield后,函数变成一个generator,调用函数返回一个iterable对象 def cash_monkey(amount):
分类:编程语言   时间:2016-02-17 22:18:12    阅读次数:194
生成器
一、何为生成器? 与列表解析较为相似,不过它并不是创建一个数字列表,而是返回一个生成器,当生成器计算出一个条码后,把这个条目“产生”(yield)出来,本质是使用了“延迟计算”。 二、样例 1 def cash_money(amount): 2 while amount >0: 3 amount -
分类:其他好文   时间:2016-02-17 12:31:22    阅读次数:156
1179条   上一页 1 ... 68 69 70 71 72 ... 118 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!