Ticket 13140
Problem 1629 -d
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
2
4
f
gag
bgd
de
9
a
e
ga
dg
if
b
c
g
gdh
Expected Output
YES
YES
Generator Parameters
26 1 100 5 1 1