NC222442. [USACOFeb2021B]ClockwiseFence
描述
输入描述
The first line of input contains an integer N (1≤N≤20). Each of the next N lines contains a string of length at least 4 and at most 100, describing a single fence path.
输出描述
For each of the N fence paths described in the input, output a line containing either "CW" (clockwise) or "CCW" (counterclockwise).
示例1
输入:
2 NESW WSSSEENWNEESSENNNNWWWS
输出:
CW CCW
说明:
The two fence paths with @ denoting the starting point:
*>* ^ v @<* *<*<*<* v ^ *<@ * v ^ * *>*>* * v ^ v ^ * *<* * * v ^ v ^ *>*>* *>*