Ticket 13141
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
9
c
dcd
ff
e
efd
bbc
df
edb
ab
2
ged
dfa
Expected Output
YES
NO
Generator Parameters
1 100 100 100 100