D - Cyclic Nacklace

Input The first line of the input is a single integer T ( 0 < T <= 100 ) which means the number of test cases. Each test case contains only one line describe the original ordinary chain to be remade.
相关文章
相关标签/搜索