1. 程式人生 > >2018 ccpc湘潭邀請賽 F -Sorting [思維+排序]

2018 ccpc湘潭邀請賽 F -Sorting [思維+排序]

The input consists of several test cases and is terminated by end-of-file.

The first line of each test case contains an integer n.
The i-th of the following n lines contains 3 integers aibi and ci.