摘要:
链接:http://poj.org/problem?id=1788 “The posts are only at points where the fence changes the direction”,也就是说每个post都是拐角处。 先按X为第一关键字 Y为第二关键字排序 2n,2n-1两个相邻的y之差就是坚着的栅栏;横栅栏同理。。遍历一下加起来就ok了。 wa两次,第一次在计算... 阅读全文
posted @ 2012-07-10 22:30
lltctt
阅读(185)
评论(0)
推荐(0)
浙公网安备 33010602011771号