Ticket 6753
Problem 1673 -b
Submission 156332008

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


Retry
Input
100
bb
dbebe
aaaaaaaa
cac
baace
cecadaa
badbacbd
ce
a
aabbbcc
aabbcbbcc
aaaaaaaa
edeccace
bcbedcedc
dcea
ac
bbcbc
beabcbd
acecbddba
aeba
aacdadda
acbccaa
abaaa
aaaaaa
bbabbaab
abbbbba
acbaabcac
bcacabc
cdbd
aa
b
aaaa
aaaaaa
bdddcb
cb
aaaaaaaa
abbcd
aaa
aabbb
aaaaaaa
bbccc
aaaab
ccd
aaaaaaa
e
dabdc
ddbcdadd
cabbabbd
c
aaa
a
aa
aacbcbbca
c
bcaba
da
abaccaaa
cd
b
abcccc
cdb
a
acc
baaaaaa
cc
cb
ae
bacdca
aaaaa
babbba
bcbedade
bbccaa
acdbbbbbc
bb
aaaaaaaaa
aaaaaa
bbabb
aab
ceebacacb
aaba
dbcace
babbbabb
cb
aaaaaaaa
cd
aaaaaaaa
caacaaac
aeeeea
eddea
b
bbb
a
cccaba
ababbaa
aa
aaebed
abb
cacb
c
ca
Expected Output
YES
NO
YES
YES
NO
NO
NO
YES
YES
NO
NO
YES
NO
NO
YES
YES
NO
NO
NO
YES
NO
NO
NO
YES
NO
NO
NO
NO
NO
YES
YES
YES
YES
NO
YES
YES
NO
YES
NO
YES
NO
NO
NO
YES
YES
NO
NO
NO
YES
YES
YES
YES
NO
YES
NO
YES
NO
YES
YES
NO
YES
YES
NO
NO
YES
YES
YES
NO
YES
NO
NO
NO
NO
YES
YES
YES
NO
NO
NO
NO
NO
NO
YES
YES
YES
YES
NO
NO
NO
YES
YES
YES
NO
NO
YES
NO
NO
NO
YES
YES
Your Output
YES
NO
YES
YES
NO
NO
NO
YES
YES
NO
NO
YES
NO
NO
YES
YES
NO
NO
NO
YES
NO
NO
NO
YES
NO
NO
NO
NO
NO
YES
YES
YES
YES
NO
YES
YES
NO
YES
NO
YES
NO
NO
NO
YES
YES
NO
NO
NO
YES
YES
YES
YES
NO
YES
YES
YES
NO
YES
YES
NO
YES
YES
NO
NO
YES
YES
YES
NO
YES
NO
NO
NO
NO
YES
YES
YES
NO
NO
NO
NO
NO
NO
YES
YES
YES
YES
NO
NO
NO
YES
YES
YES
NO
NO
YES
NO
NO
NO
YES
YES
Difference
YESYES
NONO
YESYES
YESYES
NONO
NONO
NONO
YESYES
YESYES
NONO
NONO
YESYES
NONO
NONO
YESYES
YESYES
NONO
NONO
NONO
YESYES
NONO
NONO
NONO
YESYES
NONO
NONO
NONO
NONO
NONO
YESYES
YESYES
YESYES
YESYES
NONO
YESYES
YESYES
NONO
YESYES
NONO
YESYES
NONO
NONO
NONO
YESYES
YESYES
NONO
NONO
NONO
YESYES
YESYES
YESYES
YESYES
NONO
YESYES
NOYES
YESYES
NONO
YESYES
YESYES
NONO
YESYES
YESYES
NONO
NONO
YESYES
YESYES
YESYES
NONO
YESYES
NONO
NONO
NONO
NONO
YESYES
YESYES
YESYES
NONO
NONO
NONO
NONO
NONO
NONO
YESYES
YESYES
YESYES
YESYES
NONO
NONO
NONO
YESYES
YESYES
YESYES
NONO
NONO
YESYES
NONO
NONO
NONO
YESYES
YESYES
Generator Parameters
--alpha_size_high 5 --alpha_size_low 1 --n_high 9 --n_low 1 --t_high 100 --t_low 100