A Simple Problem with IntegersTime Limit:5000MSMemory Limit:131072KTotal Submissions:62431Accepted:19141Case Time Limit:2000MSDescriptionYou haveNinte...
分类:
其他好文 时间:
2014-08-25 11:25:24
阅读次数:
250
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
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
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
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
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
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
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
题意:
初始给出1-n的序列,有两个操作:
D l r,将[l,r]区间的每个数都复制一个;
Q l r,询问[l,r]区间内最多的相同数字的个数。
分析:
显然的线段树,但是这个序列的长度会因为D操作变化,即线段长度变化。通过观察发现这个序列永远是sort过的,那么我们只要维护每个数的数量,操作前找到l和r的位置,然后再单点更新、成段更新,成段询问,线段树的综合应用。...
分类:
其他好文 时间:
2014-08-24 12:59:22
阅读次数:
330