CCC '03 S4 - Substrings


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 256M

Problem types
Allowed languages
C++, Python
50% of test cases will have \(l\) (the length of the string) where \(l \le 1000\) . For all cases, \(l \le 5000\) .

Sample Input

2
abc
aaa

Output for Sample Input

7
4

Comments

There are no comments at the moment.