码迷,mamicode.com
首页 >  
搜索关键字:simple    ( 6450个结果
What are move semantics?
I find it easiest to understand move semantics with example code. Let's start with a very simple string class which only holds a pointer to a heap-all...
分类:其他好文   时间:2014-08-08 15:39:06    阅读次数:281
The Zen of Python
zen 即禅之意可以在python的命名行交互模式下以下的语句就能看到:import thisThe Zen of Python, by Tim PetersBeautiful is better than ugly.Explicit is better than implicit.Simple i...
分类:编程语言   时间:2014-08-08 15:25:46    阅读次数:262
poj------(3468)A Simple Problem with Integers(区间更新)
A Simple Problem with IntegersTime Limit:5000MSMemory Limit:131072KTotal Submissions:60745Accepted:18522Case Time Limit:2000MSDescriptionYou haveNinte...
分类:其他好文   时间:2014-08-08 15:11:26    阅读次数:212
hadoop权威指南 chapter2 MapReduce
MapReduce MapReduce is a programming model for data processing. The model is simple, yet not too simple to express useful programs in. Hadoop can run MapReduce programs written in various languages...
分类:其他好文   时间:2014-08-08 12:44:23    阅读次数:231
There Is More To A Baby Bag Than That
Perform this exercise two rounds.These examples of simple exercises that can be performed in a large bag. Always remember to keep your hands on traini...
分类:其他好文   时间:2014-08-08 12:06:45    阅读次数:298
关于python的单实例模式
单实例模式一直是常用的设计模式,对于python的单实例模式,其实其本身就有实现http://stackoverflow.com/questions/31875/is-there-a-simple-elegant-way-to-define-singletons-in-python/31887#31...
分类:编程语言   时间:2014-08-08 01:56:35    阅读次数:241
POJ A Simple Problem with Integers 【线段树,区间更新】
题意:你有N个整数,A1,A2,…,一个。你需要处理两种类型的操作。一种类型的操作是添加了一些给定的数字,每个数字在一个给定的时间间隔。另一种是在给定的时间间隔要求数量的总和。  难点:主要是lazy标记,不好弄懂, 其实lazy标记就是当前改变的值不全部更新,等到用的时候再更新,这样就节省了好多时间。  题目链接:http://poj.org/problem?id=3468 代码: #i...
分类:其他好文   时间:2014-08-07 13:24:40    阅读次数:209
poj 3468 A Simple Problem with Integers (线段树 成段更新 加值 求和)
题目链接题意:只有这两种操作Cabc" means addingcto each ofAa,Aa+1, ... ,Ab. -10000 ≤c≤ 10000."Qab" means querying the sum ofAa,Aa+1, ... ,Ab.分析:自己写的有点麻烦了,写的时候手残+脑残,改...
分类:其他好文   时间:2014-08-07 12:16:09    阅读次数:261
Design Model---Factory Model
工厂模式看英文书的时候挺纠结的,Head First里面感觉讲得很乱,都快看不下去了,看中文别人总结的,一条主线马上就出来了。工厂模式主要分三种1) simple factory model (static factory model) 2)factory method model 3)abstar...
分类:其他好文   时间:2014-08-06 22:43:16    阅读次数:305
poj 2676 -- Sudoku
SudokuTime Limit:2000MSMemory Limit:65536KTotal Submissions:13723Accepted:6791Special JudgeDescriptionSudoku is a very simple task. A square table wit...
分类:其他好文   时间:2014-08-06 22:23:32    阅读次数:285
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!