ICPC North America Qualifier 2016, Problem L

In the game of Unusual Darts, Alice throws seven darts onto a
Alice's seven darts define a polygon by the order in which they are thrown, with the perimeter of the polygon connecting Dart
If the polygon so defined is not simple (meaning it intersects itself) then Alice loses. If the polygon is simple, then Bob throws three darts. He is not a very good player, so although his darts always land on the board, they land randomly on the dart board following a uniform distribution. If all three of these darts land within the interior of the polygon, Bob wins, otherwise Alice wins.
For this problem you are given the locations of Alice's darts (which form a simple polygon) and the probability that Bob wins. Your job is to determine the order in which Alice threw her darts.
Input Specification
The first line of input contains an integer
Output Specification
For each Darts game, output the order in which the darts could have been thrown, relative to the order they were given in the input, so that Bob wins with probability
Sample Input
3
0.000 0.000
0.000 2.000
1.000 1.800
1.000 0.200
1.800 1.000
2.000 0.000
2.000 2.000
0.61413
0.000 0.000
0.000 2.000
1.000 1.800
1.000 0.200
1.800 1.000
2.000 0.000
2.000 2.000
0.12500
0.000 0.000
0.000 1.900
0.400 2.000
1.700 0.000
1.800 2.000
2.000 0.200
2.000 0.600
0.86416
Sample Output
1 2 3 7 5 6 4
1 4 3 2 7 5 6
1 2 3 5 7 6 4
Comments