摘要:
The repetition number of a string is defined as the maximum number $R$ such that the string can be partitioned into $R$ same consecutive substrings. F 阅读全文
摘要:
You are given an undirected tree consisting of $n$ vertices. An undirected tree is a connected undirected graph with $n−1$ edges. Your task is to add 阅读全文
摘要:
Given a string, we need to find the total number of its distinct substrings. Input $T $ number of test cases. $T using namespace std; const int N=1000 阅读全文