码迷,mamicode.com
首页 >  
搜索关键字:simple    ( 6450个结果
POJ 3468 A Simple Problem with Integers (线段树区域更新)
A Simple Problem with IntegersTime Limit:5000MSMemory Limit:131072KTotal Submissions:62431Accepted:19141Case Time Limit:2000MSDescriptionYou haveNinte...
分类:其他好文   时间:2014-08-25 11:25:24    阅读次数:250
HDU-4973-A simple simulation problem.(二分+树状数组)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-25 01:13:03    阅读次数:321
HDU-4937-A simple simulation problem.(线段树)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-25 01:12:13    阅读次数:273
设计模式之工厂模式
一、简介 工厂模式属于创建型模式,大致上可以分三类: 1)、简单工厂模式(Simple Factory) 2)、工厂方法模式(Simple Factory) 3)、抽象工厂模式(Simple Factory) 这三种模式是逐步抽象,并且更具一般性。另有一种分法就是将简单工厂模式看作...
分类:其他好文   时间:2014-08-24 23:26:33    阅读次数:274
HDU2522 A simple problem 【模拟】
A simple problem Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3133    Accepted Submission(s): 1144 Problem Description Zty很痴迷数学问...
分类:其他好文   时间:2014-08-24 16:44:13    阅读次数:260
HDU 4973 A simple simulation problem.(线段树)
题意: 初始给出1-n的序列,有两个操作: D l r,将[l,r]区间的每个数都复制一个; Q l r,询问[l,r]区间内最多的相同数字的个数。 分析: 显然的线段树,但是这个序列的长度会因为D操作变化,即线段长度变化。通过观察发现这个序列永远是sort过的,那么我们只要维护每个数的数量,操作前找到l和r的位置,然后再单点更新、成段更新,成段询问,线段树的综合应用。...
分类:其他好文   时间:2014-08-24 12:59:22    阅读次数:330
简单工厂模式
??????简单工厂模式解释: 简单工厂模式(Simple Factory Pattern)属于类的创新型模式,又叫静态工厂方法模式(Static FactoryMethod Pattern),是通过专门定义一个类来负责创建其它类的实例,被创建的实例通常都具有共同的父类。简单工厂模式的UML图: 简...
分类:其他好文   时间:2014-08-24 11:28:02    阅读次数:181
使用 alias 为方法添加新功能
def hello # A nice simple method puts "Hello World" # Suppose we want to augment it...end alias original_hello hello # Give the method a backup named....
分类:其他好文   时间:2014-08-24 10:17:32    阅读次数:167
hdu-4976-A simple greedy problem.
这个题目很不错 首先贪心如...
分类:其他好文   时间:2014-08-23 15:25:51    阅读次数:156
常用的X++
Simple select statement examplestatic void selectExample(Args _args){CustTable custTable;int counter;;select * from custTable;while(custTable.AccountN...
分类:其他好文   时间:2014-08-23 12:37:30    阅读次数:320
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!