Problem H: Clock Pictures
Time Limit: 3 Sec Memory Limit: 128 MB
Submit: 73 Solved: 18
[Submit][Status][Web Board]
Description
Input
Output
Sample Input
6
1 2 3 4 5 6
7 6 5 4 3 1
Sample Output
impossible
HINT
题意:给你角度,问你通过旋转a图和b图能否重合;
思路:KMP;(比赛的时候,忘记是环了。。。还好队友给力!)