辣鸡elijahqi

细节决定成败 心态决定一切

bzoj1008&luogu3197 [HNOI2008]越狱

http://www.elijahqi.win/archives/1851 Description   监狱有连续编号为1…N的N个房间,每个房间关押一个犯人,有M种宗教,每个犯人可能信仰其中一种。如果 相邻房间的犯人的宗教相同,就可能发生越狱,求有多少种状态可能发生越狱 Input  ...

2018-06-20 00:03:14

阅读数:23

评论数:0

codeforces 894B Ralph And His Magic Field

http://www.elijahqi.win/archives/1606 Ralph has a magic field which is divided into n × m blocks. That is to say, there are n rows and m columns on ...

2018-06-10 00:07:05

阅读数:23

评论数:0

poj3744 Scout YYF I

http://www.elijahqi.win/archives/3628 Description YYF is a couragous scout. Now he is on a dangerous mission which is to penetrate into the enemy’s...

2018-06-09 12:22:00

阅读数:27

评论数:0

poj2888 Magic Bracelet

http://www.elijahqi.win/archives/3409 Description Ginny’s birthday is coming soon. Harry Potter is preparing a birthday present for his new girlfr...

2018-05-18 22:57:07

阅读数:21

评论数:0

poj2154 Color

http://www.elijahqi.win/archives/3405 Description Beads of N colors are connected together into a circular necklace of N beads (N<=10000...

2018-05-18 15:08:26

阅读数:19

评论数:0

codeforces 870E Points, Lines and Ready-made Titles

http://www.elijahqi.win/archives/1299 You are given n distinct points on a plane with integral coordinates. For each point you can either draw a ver...

2018-05-14 23:39:48

阅读数:23

评论数:0

luogu1965 转圈游戏

http://www.elijahqi.win/archives/1023 题目描述 n 个小伙伴(编号从 0 到 n-1)围坐一圈玩游戏。按照顺时针方向给 n 个位置编号,从0 到 n-1。最初,第 0 号小伙伴在第 0 号位置,第 1 号小伙伴在第 1 号位置,……,依此类推。游戏规则如下...

2018-04-27 23:55:05

阅读数:14

评论数:0

bzoj4000 [TJOI2015]棋盘

http://www.elijahqi.win/archives/3150 题目描述 为了提高智商,ZJY去新世界旅游了。可是旅游过后的ZJY杯具的发现要打开通往原来世界的门,必须要解开门上面画的谜题。谜题是这样的:有个n行m列的棋盘,棋盘上可以放许多特殊的棋子。每个棋子的攻击范围是3行,p列...

2018-04-21 13:51:26

阅读数:59

评论数:0

bzoj1408 [Noi2002]Robot

http://www.elijahqi.win/archives/2953 Description Input Output Sample Input 3 2 1 3 2 5 1 Sample Output 8 6 75 HINT 90号机器人有10个老师,加上它自己...

2018-04-07 22:17:11

阅读数:14

评论数:0

poj2778 DNA Sequence

http://www.elijahqi.win/archives/2886 Description It’s well known that DNA Sequence is a sequence only contains A, C, T and G, and it’s very useful...

2018-04-02 23:48:53

阅读数:20

评论数:0

bzoj4870&luogu3746 [六省联考2017]组合数问题

http://www.elijahqi.win/archives/622 题目的大意就是要求我们从n*k个数字中选择%k余r的方案数 定义f(i,j)=∑∞t=0Cj+tki f(i,j)=f(i−1,j)+f(i−1,(j−1) mod k) 这道题我们转移是用状态转移因为每次都是前...

2018-03-29 21:23:58

阅读数:49

评论数:0

BJ 集训测试12 coin

http://www.elijahqi.win/archives/2822 题意: 有n种货币,每种货币有一个价值vi,并且满足任意两种货币的价值成倍数关系。 即对于第i种货币和第j种货币,有vi整除vj,或者vj整除vi。 现在给出这n种货币的价值,请你计算有多少种方案能凑出价值为m的货...

2018-03-28 19:46:00

阅读数:28

评论数:0

【BZOJ2875&&luogu2044】 NOI2012随机数生成器

(http://www.elijahqi.win/2017/07/10/%E3%80%90bzoj2875luogu2044%E3%80%91-noi2012%E9%9A%8F%E6%9C%BA%E6%95%B0%E7%94%9F%E6%88%90%E5%99%A8/) Description ...

2018-03-11 23:04:26

阅读数:33

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭