码迷,mamicode.com
首页 >  
搜索关键字:a simple game    ( 11903个结果
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
zoj Abs Problem
Abs ProblemTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeAlice and Bob is playing a game, and this time the game is all about the absolu.....
分类:其他好文   时间:2014-08-24 20:46:23    阅读次数:203
poj 1753 Flip Game(高斯消元)
Flip Game Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 30805   Accepted: 13409 Description Flip game is played on a rectangular 4x4 field with two-sided...
分类:其他好文   时间:2014-08-24 18:07:32    阅读次数:209
poj 2965 The Pilots Brothers' refrigerator(高斯消元)
The Pilots Brothers' refrigerator Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 18641   Accepted: 7145   Special Judge Description The game “The Pilo...
分类:其他好文   时间:2014-08-24 18:06:42    阅读次数:240
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
poj 1222 EXTENDED LIGHTS OUT(高斯消元)
EXTENDED LIGHTS OUT Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 6628   Accepted: 4368 Description In an extended version of the game Lights Out, is a p...
分类:其他好文   时间:2014-08-24 16:43:32    阅读次数:198
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!