1.Python创建list: Python内置的一种数据类型是列表:list。list是一种有序的集合,可以随时添加和删除其中的元素。 比如,列出班里所有同学的名字,就可以用一个list表示: >>> ['Michael', 'Bob', 'Tracy'] ['Michael', 'Bob', ' ...
分类:
编程语言 时间:
2018-08-11 21:53:46
阅读次数:
175
博弈论 真的很有趣 ,回想起 前两天多校一道题的题解 所有不公平的游戏都存在必胜的玩法 与人斗其乐无穷 https://vjudge.net/contest/241983#overview 博弈论专题 一)巴什博奕(Bash Game):有n个石头,Alice和Bob轮流取石头,每次取的石头不能超过 ...
分类:
其他好文 时间:
2018-08-07 16:16:30
阅读次数:
203
Strategic game Time Limit: 2000MS Memory Limit: 10000K Total Submissions: 9313 Accepted: 4368 Description Bob enjoys playing computer games, especiall ...
分类:
其他好文 时间:
2018-08-04 19:05:01
阅读次数:
168
4817: [Sdoi2017]树点涂色 Description Bob有一棵n个点的有根树,其中1号点是根节点。Bob在每个点上涂了颜色,并且每个点上的颜色不同。定义一条路 径的权值是:这条路径上的点(包括起点和终点)共有多少种不同的颜色。Bob可能会进行这几种操作: 1 x: 把点x到根节点的路 ...
分类:
其他好文 时间:
2018-08-02 17:45:31
阅读次数:
174
Description Bob有一棵n个点的有根树,其中1号点是根节点。Bob在每个点上涂了颜色,并且每个点上的颜色不同。定义一条路 径的权值是:这条路径上的点(包括起点和终点)共有多少种不同的颜色。Bob可能会进行这几种操作: 1 x: 把点x到根节点的路径上所有的点染上一种没有用过的新颜色。 2 ...
分类:
其他好文 时间:
2018-08-02 15:58:48
阅读次数:
129
Alice and Bob are playing a simple game. They line up a row of n identical coins, all with the heads facing down onto the table and the tails upward. ...
分类:
其他好文 时间:
2018-07-31 22:10:50
阅读次数:
197
Alice and Bob are playing a simple game. They line up a row of nn identical coins, all with the heads facing down onto the table and the tails upward. ...
分类:
其他好文 时间:
2018-07-29 22:32:20
阅读次数:
463
A. Coins Alice and Bob are playing a simple game. They line up a row of nnn identical coins, all with the heads facing down onto the table and the tai ...
分类:
其他好文 时间:
2018-07-29 20:05:44
阅读次数:
289
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=6312 Alice和Bob做一个博弈游戏, 一个集合中的数为1 到 n,一个人每轮可以从中移走一个数,同时将该数的所有因数也全部移除。双方一直轮流这样进行下去,直到一方移除剩余的全部数就获胜。Alice ...
分类:
其他好文 时间:
2018-07-25 22:04:20
阅读次数:
325
Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is very sad. Now he h ...
分类:
其他好文 时间:
2018-07-21 14:58:11
阅读次数:
145