Liste des Groupes | Revenir à s math |
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:[...]
For example, with these tiles, the sequence 1, 2, 1, 3 produces
aa bb aa abbr[0] = aa
aab ba aab b
with top string aabbaaabb = bottom string aabbaaabb. So for this input,
the program should print "yes". You don't need to give the sequence
that gives the matching top and bottom strings (though that would be a
neat extra), you just have print yes or no depending on whether such a
sequence of tiles exists or not.
Les messages affichés proviennent d'usenet.