poj 1009
2015-11-04 22:50
239 查看
这题只有像素变化的地方,该点包括周围八个点都有变化的可能。
举个例子:
。。。。。。。。。。
,,,,,,,,,,
= = = = = = = = = =
假设,的四周都没有像素变化的点,那么所有,的编码值都等于max(abs(,减。),abs(,减=)
引用别人一个清晰的代码
传送门:http://blog.csdn.net/lyy289065406/article/details/6648671
举个例子:
。。。。。。。。。。
,,,,,,,,,,
= = = = = = = = = =
假设,的四周都没有像素变化的点,那么所有,的编码值都等于max(abs(,减。),abs(,减=)
引用别人一个清晰的代码
传送门:http://blog.csdn.net/lyy289065406/article/details/6648671
相关文章推荐
- 初学ACM - 组合数学基础题目PKU 1833
- POJ ACM 1001
- POJ ACM 1002
- POJ 2635 The Embarrassed Cryptographe
- POJ 3292 Semi-prime H-numbers
- POJ 2773 HAPPY 2006
- POJ 3090 Visible Lattice Points
- POJ-2409-Let it Bead&&NYOJ-280-LK的项链
- POJ-1695-Magazine Delivery-dp
- POJ1523 SPF dfs
- POJ-1001 求高精度幂-大数乘法系列
- POJ-1003 Hangover
- POJ-1004 Financial Management
- 用单调栈解决最大连续矩形面积问题
- 2632 Crashing Robots的解决方法
- 1573 Robot Motion (简单题)
- POJ 1200 Crazy Search(简单哈希)
- 【高手回避】poj3268,一道很水的dijkstra算法题
- POJ 1088 滑雪
- poj2387 Til the Cows Come Home—Dijkstra模板