自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 Hdu1079

 Adam and Eve enter this year’s ACM International Collegiate Programming Contest. Last night, they played the Calendar Game, in celebration of this contest. This game consists of the dates from Jan

2016-05-20 23:03:54 425

原创 Poj2975(NIM博弈)

 Nim Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 5380   Accepted: 2521 Description Nim is a 2-player game featuring several piles of stones. Players a

2016-05-20 22:30:43 303

转载 经典博弈

巴什博奕(Bash Game):只有一堆n个物品,两个人轮流从这堆物品中取物,规 定每次至少取一个,最多取m个。最后取光者得胜。 如果n%(m+1)==0,先手输。 威佐夫博奕(Wythoff Game):有两堆各若干个物品,两个人轮流从某一堆或同 时从两堆中取同样多的物品,规定每次至少取一个,多者不限,最后取光者得胜。 设堆中物品少的为a,多的为b,如果a==(b-a)*(

2016-05-20 22:21:27 267

原创 2016/05/15省赛

因某些奇怪的原因,不予比赛地点和比赛评价,下列仅为我自己的感受。。如有违背那些条例,请告诉我,我改。。。。。。。。。。 五月14日下午热身赛开始,一个奇葩的水题,判断6句话是对还是错(其中一条是西红柿是放糖不放盐。。。。),无脑的A了这个后,后两个写了写发现没思路,也不会测试测评机啥的,玩了会,就去吃饭了。。。。 15日上午九点,比赛正式开始,题册发下来,5MIN我找了其中的签到题,讲了题意,

2016-05-15 20:00:17 447

原创 Hdu1757(矩阵快速幂)

A Simple Math Problem Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3933    Accepted Submission(s): 2380 Problem Description Lele

2016-05-09 21:25:23 316

原创 例题12组装电脑

提交传送门:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=13338 主要是map的使用和二分答案。 代码: #include #include #include #include #include #include #include #include #include #inclu

2016-05-08 12:37:14 282

原创 Codeforces Round #351 (VK Cup 2016 Round 3, Div. 2 Edition) easy(上)

A. Bear and Game time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Bear Limak likes watching sports on TV. He is going

2016-05-08 12:27:12 629

原创 Codeforces Round #350 (Div. 2)easy

A: A. Holidays time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output On the planet Mars a year lasts exactly n days (ther

2016-05-06 13:53:30 1137

原创 例题7:偶数矩阵

题面见《算法竞赛入门经典》以后同。。。。  可以交题的传送门:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=24665 题解: 枚举第一行的所有情况,这里给出一种简单的枚举方法,假设n=3,则第一行的情况是从000到111,这正好对应了二进制从0到2^n-1.剩下小细节在代码中给出 代码: #include #

2016-05-03 21:13:06 869

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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