Sort Points by Argument
题号:NC232808
时间限制:C/C++/Rust/Pascal 5秒,其他语言10秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
Special Judge, 64bit IO Format: %lld

题目描述

Given N 2D-points  please sort them by arg(x,y). In other words, sort the points in counterclockwise order that starts from the half line 

Note:



  • Points with the same argument can be ordered arbitrarily.

输入描述:



x_i, y_i are integers.

输出描述:

N points after sort.
示例1

输入

复制
8
1 0
0 0
-1 0
0 1
0 -1
1 1
2 2
-10 -1

输出

复制
-10 -1
0 -1
1 0
0 0
1 1
2 2
0 1
-1 0