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.
相關文章
相關標籤/搜索