|
||||||||||
Clockwise or CounterclockwiseTime Limit: 2000/2000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 662 Accepted Submission(s): 409 Problem Description It is preferrable to read the pdf statment. After some basic geometric lessons, Cuber QQ has learned that one can draw one and only one circle across three given distinct points, on a 2D plane. Specialized in art, Cuber QQ has shown remarkable skills to draw circle in one stroke, especially when the stroke is done clockwise. He wonder whether he will be able to do that if 3 points has been given. In particular, he is given three distinct points $A(x_1, y_1)$, $B(x_2, y_2)$, $C(x_3, y_3)$ which lie on a circle centered at $O(0,0)$. Imagine starting from $A$, he draws the circle across $B$ and finally gets $C$. Determine whether he is drawing clockwise or counterclockwise. Input The first line contains an integer $T$ ($1\le T\le 1~000$), denoting the number of test cases. In the next $T$ lines, each line contains six space-separated integers $x_1$, $y_1$, $x_2$, $y_2$, $x_3$, $y_3$ ($-10^9\le x_1,y_1,x_2,y_2,x_3,y_3\le10^9$) denoting the coordinate of $A$, $B$ and $C$. It is guaranteed that $A$, $B$, $C$ are pairwise distinct and $|AO|=|BO|=|CO|> 0$. Output For each test case, output one line containing ''Clockwise'' or ''Counterclockwise''. Sample Input
Sample Output
Source | ||||||||||
|