CF849B Tell Your World

题目描述

题意 用线连接无数的点,直到我们到达远方。 坐标平面上有$n$ 个点,第$i$ 个点的坐标为$(i,y_{i})$ 。 确定是否能画两条平行且不重叠的线,使得集合中的每个点都在他们之中的一条线上,且每条线至少经过一个点。

输入格式

第一行包含一个正整数$n$ $(3

输出格式

如果可以满足所有要求,输出 "Yes",否则,输出 "No" 。

说明/提示

In the first example, there are five points: $ (1,7) $ , $ (2,5) $ , $ (3,8) $ , $ (4,6) $ and $ (5,9) $ . It's possible to draw a line that passes through points $ 1,3,5 $ , and another one that passes through points $ 2,4 $ and is parallel to the first one. In the second example, while it's possible to draw two lines that cover all points, they cannot be made parallel. In the third example, it's impossible to satisfy both requirements at the same time.