1247. Check a SequenceTime limit: 0.5 secondMemory limit: 64 MBThere is a sequence of integer numbersA1,A2, …,AS, and a positive integerN. It's known ...
分类:
其他好文 时间:
2015-11-14 16:36:55
阅读次数:
225
1246. Tethered DogTime limit: 1.0 secondMemory limit: 64 MBA dog is tethered to a pole with a rope. The pole is located inside a fenced polygon (not n...
分类:
其他好文 时间:
2015-11-14 16:32:15
阅读次数:
260
1244. GentlemenTime limit: 0.5 secondMemory limit: 64 MBLet's remember one old joke:Once a gentleman said to another gentleman:— What if we play cards...
分类:
其他好文 时间:
2015-11-14 16:23:34
阅读次数:
240
1243. Divorce of the Seven DwarfsTime limit: 1.0 secondMemory limit: 64 MBAfter the Snow White with her bridegroom had left the house of the seven dwa...
分类:
其他好文 时间:
2015-11-14 16:22:30
阅读次数:
215
OJ是Online Judge系统的简称,用来在线检测程序源代码的正确性。著名的OJ有TYVJ、RQNOJ、URAL等。国内著名的题库有北京大学题库、浙江大学题库、电子科技大学题库、杭州电子科技大学等。国外的题库包括乌拉尔大学、瓦拉杜利德大学题库等。 Online Judge系统最初使用于ACM-....
分类:
其他好文 时间:
2015-11-01 00:25:48
阅读次数:
1844
1203. Scientific ConferenceTime limit: 1.0 secondMemory limit: 64 MBFunctioning of a scientific conference is usually divided into several simultaneou...
分类:
其他好文 时间:
2015-10-30 20:13:30
阅读次数:
244
我们考虑一个$N*M$的矩阵数据,若要对矩阵中的部分数据进行读取,比如求某个$a*b$的子矩阵的元素和,通常我们可以想到$O(ab)$的遍历那个子矩阵,对它的各个元素进行求和。然而当$a$或$b$很大的时候,这样的计算显得太慢,如果要求子矩阵的最大元素和(如Ural 1146),更是简直慢到...
分类:
其他好文 时间:
2015-10-30 00:44:13
阅读次数:
176
Palindromes and Super Abilities 2Time Limit: 500MS Memory Limit: 102400KB 64bit IO Format: %I64d & %I64uDescriptionDima adds letterss1, …,snone by o.....
分类:
其他好文 时间:
2015-10-27 14:54:25
阅读次数:
211
Palindromes and Super AbilitiesTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onUral. Original ID:196064-bit integer IO format:%ll...
分类:
其他好文 时间:
2015-10-27 14:52:02
阅读次数:
290
1286. Starship TravelTime limit: 1.0 secondMemory limit: 64 MBIt is well known that a starship equipped with class B hyperengine is able to travel fro...
分类:
其他好文 时间:
2015-10-26 22:32:10
阅读次数:
236