摘要:
Description 一个串T是S的循环节,当且仅当存在正整数k,使得S是T^k(即T重复k次)的前缀,比如abcd是abcdabcdab的循环节 。给定一个长度为n的仅由小写字符构成的字符串S,请对于每个k(1 include include include include include de 阅读全文
摘要:
Karen has just arrived at school, and she has a math test today! The test is about basic addition and subtraction. Unfortunately, the teachers were to 阅读全文
摘要:
There is a square matrix n × n, consisting of non negative integer numbers. You should find such a way on it that starts in the upper left cell of the 阅读全文