题目链接: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)

浙公网安备 33010602011771号