码迷,mamicode.com
首页 >  
搜索关键字:alice    ( 981个结果
python 列表小操作
数值的列表或字符串的列表,能用 sort()方法排序。例如,在交互式环境中输 入以下代码: >>> spam = [2, 5, 3.14, 1, -7] >>> spam.sort() >>> spam [-7, 1, 2, 3.14, 5] >>> spam = ['ants', 'cats', ...
分类:编程语言   时间:2019-08-29 18:47:36    阅读次数:107
「UVA12293」 Box Game
题目链接 "戳我" $Solution$ 这道题第一眼看样例,猜了个结论偶数$Alice$赢,否则$Bob$赢,打了一发,交了上去果不其然的$wa$了,第二次猜$2$的幂次方$Alice$赢,否则$Bob$赢,这次没有再交上去了,打了个表发现并不对。于是开始了推结论。 我们现在根据样例已经知道了$3 ...
分类:其他好文   时间:2019-08-28 22:19:42    阅读次数:100
poj2253
1.链接地址 https://vjudge.net/problem/POJ-2253#author=dusenlin 2.问题描述 湖中有n块石头,编号从1到n,有两只青蛙,Bob在1号石头上,Alice在2号石头上,Bob想去看望Alice,但由于水很脏,他想避免游泳,于是跳着去找她。但是Alic ...
分类:其他好文   时间:2019-08-25 18:10:47    阅读次数:68
NEO4J亿级数据导入导出以及数据更新
<! flowchart 箭头图标 勿删 1、添加配置 apoc.export.file.enabled=true apoc.import.file.enabled=true dbms.directories.import=import dbms.security.allow_csv_import_ ...
分类:其他好文   时间:2019-08-22 18:41:13    阅读次数:178
[HDU 4597] Play Game
博弈类DP题,设状态f[i][j][a][b]表示第一堆里的范围在i j,第二堆的范围在a b,Alice可以得到的最大值 则有: dp[i][j][a][b] = max { dp[ i + 1 ] [ j ] [ a ] [ b ] dp[ i ] [ i 1 ] [ a ] [ b ] dp[ ...
分类:其他好文   时间:2019-08-18 15:43:19    阅读次数:95
Codeforces I. Producing Snow(优先队列)
题目描述: C. Producing Snow time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Alice likes snow ...
分类:其他好文   时间:2019-08-11 21:02:31    阅读次数:84
2017 ICPC Asia Urumqi A.coins (概率DP + 期望)
题目链接: "Coins" Description 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 t ...
分类:其他好文   时间:2019-08-10 20:58:48    阅读次数:107
@spoj - COT3@ Combat on a tree
Alice 和 Bob 在一棵 n 个节点的树上玩游戏,每个节点初始要么为黑色要么为白色。 Alice 先手,轮流进行如下操作: 选择一个白色点 v,将路径 (1, v) 全部染成黑色。 最后不能操作的人为输。 帮忙计算 Alice 是否必胜以及所有必胜可能的第一步结点的选择。 ...
分类:其他好文   时间:2019-08-10 09:19:13    阅读次数:75
DTOJ #3160. 序列计数(count)
【题目描述】 Alice想要得到一个长度为 $n$ 的序列,序列中的数都是不超过 $m$ 的正整数,而且这 $n$ 个数的和是 $p$ 的倍数。 Alice还希望,这 $n$ 个数中,至少有一个数是质数。 Alice想知道,有多少个序列满足她的要求。 【输入格式】 一行三个数, $n,m,p$。 【 ...
分类:其他好文   时间:2019-08-10 00:02:18    阅读次数:153
Coins(概率dp)
Coins I 题目描述 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 t ...
分类:其他好文   时间:2019-08-08 16:19:11    阅读次数:92
981条   上一页 1 ... 12 13 14 15 16 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!