题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1528题意就是给有两个人有n张牌第二个人知道第一个人的牌的序列;然后第二个人尽可能的让自己得更高的分,求这个最高分;就是对方拿一张牌出来自己拿一张比他大的就得1分,如果相等就按红桃>黑桃>方块>梅花进行比... Read More
posted @ 2015-11-08 21:42 西瓜不懂柠檬的酸 Views(344) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3766 给你一个x ,y 求出从(0,0)位置到达需要的最小步数每次只能走日型; 下图为暴力bfs得到的答案;可以看一下; /** 首先,xy的大小排序和转化为都是正数步数不变应该懂吧。 y=2*x这种情 Read More
posted @ 2015-11-08 19:48 西瓜不懂柠檬的酸 Views(1291) Comments(0) Diggs(0)
题目链接:http://lightoj.com/volume_showproblem.php?problem=1245 题意就是求 n/i (1<=i<=n) 的取整的和这就是到找规律的题, i 1 2 3 4 5 6 7 8 a 8 4 2 2 1 1 1 1 你可以多写几组你会发现 有8-4个1 Read More
posted @ 2015-11-08 15:49 西瓜不懂柠檬的酸 Views(185) Comments(0) Diggs(0)
levels of contents