Problem Description:
There are n
black balls and m
white balls in the big box.
Now, DZY starts to randomly pick out the balls one by one. It forms a sequence
S.
If at the i-th
operation,...
分类:
其他好文 时间:
2015-04-16 09:09:31
阅读次数:
174
E. Roland and RoseTime Limit: 1 SecMemory Limit: 256 MB题目连接http://codeforces.com/problemset/problem/460/EDescriptionRoland loves growing flowers. He h...
分类:
其他好文 时间:
2015-04-15 00:58:03
阅读次数:
207
D. Little Girl and Maximum XOR
A little girl loves problems on bitwise operations very much. Here's one of them.
You are given two integers
l and r. Let's consider the values of
for all pa...
分类:
其他好文 时间:
2015-04-10 09:40:40
阅读次数:
147
Little penguin Polo loves his home village. The village has n houses, indexed by integers from 1 to n. Each house has a plaque containing an integer, the i-th house has a plaque containing integer pi (...
分类:
其他好文 时间:
2015-04-09 09:04:20
阅读次数:
177
/*
充分利用了菲波那切数列的两条定理:
①定义F[1] = a, F[2] = b, F[n] = F[n - 1] + F[n - 2](n≥3)。
有F[n] = b * fib[n - 1] + a * fib[n - 2](n≥3),其中fib[i]为斐波那契数列的第 i 项。
②定义F[1] = a, F[2] = b, F[n] = F[n -...
分类:
其他好文 时间:
2015-04-08 18:12:38
阅读次数:
116
DZY Loves Topological Sorting
Accepts: 112
Submissions: 586
Time Limit: 4000/2000 MS (Java/Others)
Memory Limit: 131072/131072 K (Java/Others)
问题描述
一张有向图的拓扑序列是图中点的一个排列,满足对于图...
分类:
其他好文 时间:
2015-04-06 08:54:50
阅读次数:
202
A sweet little monster Om Nom loves candies very much. One day he found himself in a rather tricky situation that required him to think a bit in order to enjoy candies the most. Would you succeed with...
分类:
其他好文 时间:
2015-04-05 14:40:31
阅读次数:
171
DZY Loves Topological SortingTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 866Accepted Submis...
分类:
编程语言 时间:
2015-04-05 14:32:48
阅读次数:
174
卡片厂商 标识
--------------------------
中钞信用卡 ZCC
东信和平 EP
楚天龙 CTDSI
湖北黄石捷德万达 HW
广东珠海金邦达 GSC
湖北武汉天喻 WHTY
易联众 YLZ
江苏丹阳恒宝股份 HB
天津磁卡 GSCC
山东青岛融佳 ...
分类:
其他好文 时间:
2015-04-05 12:02:43
阅读次数:
120
Bike loves looking for the second maximum element in the sequence. The second maximum element in the sequence of distinct numbers x1,?x2,?…,?xk (k?>?1) is such maximum element xj, that the following in...
分类:
其他好文 时间:
2015-04-03 15:21:56
阅读次数:
154