题解 P1007 【独木桥】 hope · 2013-10-14 22:19:39 · 题解 两人相遇回头就等于擦肩而过 只需要在读入时判断他到独木桥两端的距离长短再加一个记录即可 核心部分: max_num>?=max(s,l-s+1); min_num>?=min(s,l-s+1);