The tests for this problem consist of six groups. Points for each group are awarded only if all tests of the group and all tests of some previous groups are passed. Note that passing the tests from the statement is not required for some groups.

\medskip
\begin{center}
\begingroup
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{|c|c|c|c|c|c|>{\centering\arraybackslash}m{4.2cm}|}
\hline
& & \multicolumn{3}{c|}{Additional constraints} & & \\
\cline{3-5}
\raisebox{2.25ex}[0cm][0cm]{Group}
& \raisebox{2.25ex}[0cm][0cm]{Points}
& $n$ & $q$ & $k_i$
& \raisebox{2.25ex}[0cm][0cm]{\parbox{3cm}{\centering Required groups}}
& \raisebox{2.25ex}[0cm][0cm]{Comment}
\\
\hline
0 & 0 & -- & -- & -- & -- & Tests from the statement. \\
\hline
1 & 14 & $n \le 100$ & -- & -- & 0 & -- \\
\hline
2 & 16 & $n \le 3000$ & -- & -- & 0, 1 & -- \\
\hline
3 & 13 & -- & -- & -- & -- & Strings do not intersect pairwise. \\
\hline
4 & 25 & -- & $q=1$ & $k_i = n$ & -- & -- \\
\hline
5 & 17 & -- & $q=1$ & $k_i \le 10$ & -- & -- \\
\hline
6 & 15 & -- & -- & -- & 0 -- 5 & -- \\
\hline
\end{tabular}
\endgroup
\end{center}