ACdream 1112 Alice and Bob (博弈&&素数筛选优化)...
分类:
其他好文 时间:
2015-06-28 15:38:55
阅读次数:
125
There are many anime that are about "love triangles": Alice loves Bob, and Charlie loves Bob as well, but Alice hates Charlie. You are thinking about an anime which has n characters.
The characters ...
分类:
其他好文 时间:
2015-06-26 22:30:01
阅读次数:
216
首先,Alice 会选择一个长度为$\lfloor\frac{n+1}{2}\rfloor$ 的区间,我们把这个长度记为 $len$。有这么一个结论:令 $F_i$ 为覆盖 $i$ 点的所有长度为 $len$ 的区间的元素和的最小值,那么答案就是 $F_i$ 的最大值。因为 Bob 可以控制 Ali...
分类:
其他好文 时间:
2015-06-25 11:50:40
阅读次数:
135
Python字典是另一种可变容器模型,且可存储任意类型对象,如字符串、数字、元组等其他容器模型。一、创建字典字典由键和对应值成对组成。字典也被称作关联数组或哈希表。基本语法如下:dict = {'Alice': '2341', 'Beth': '9102', 'Cecil': '3258'}也可如此...
分类:
编程语言 时间:
2015-06-24 10:43:24
阅读次数:
128
标题10161 Ant on a Chessboard
One day, an ant called Alice came to an M*M chessboard. She wanted to go around all the grids. So she began to walk along the chessboard according to this way: (you can ass...
分类:
其他好文 时间:
2015-06-23 17:55:44
阅读次数:
111
在我刚刚接触现在这个产品的时候,我就在我们的代码中接触到了对Double Brace Initialization的使用。那段代码用来初始化一个集合:1 final Set exclusions = new HashSet() {{2 add(‘Alice’);3 add(‘Bo...
分类:
编程语言 时间:
2015-06-22 22:00:33
阅读次数:
175
1575. [NEERC 2003][POJ2125]有向图破坏★★★ 输入文件:destroyingthegraph.in 输出文件:destroyingthegraph.out 简单对比
时间限制:1 s 内存限制:256 MB
【题目描述】Alice和Bob正在玩如下的游戏。首先Alice画一个有N个顶点,M条边的有向图。然后Bob试着摧毁它。在一次操作中他可以找到图中的一个点...
分类:
其他好文 时间:
2015-06-18 09:51:29
阅读次数:
121
Alice and Bob
Accepted : 174
Submit : 342
Time Limit : 1000 MS
Memory Limit : 65536 KB
Problem Description
The famous "Alice and Bob" are playing a game again. So now...
分类:
其他好文 时间:
2015-06-13 11:19:14
阅读次数:
182
Problem Description娜娜好不容易才回忆起自己是娜娜而不是什么Alice,也回忆起了自己要继续探索这个世界的目标,便偷偷溜出皇宫。娜娜发现这个王国有很多个民族组成,每个民族都有自己的方言,更要命的是这些方面差别还很远,这就导致这个王国的人民交流十分困难。娜娜仔细观察并记录了好久,发现...
分类:
其他好文 时间:
2015-06-12 22:09:03
阅读次数:
126
问题:Alice and Bob are playing a kind of special game on an N*M board (N rows, M columns). At the beginning, there are N*M coins in this board with one ...
分类:
其他好文 时间:
2015-06-11 18:44:48
阅读次数:
132