My result is complicated, ant it was very large, when I simplified the question, it just as this program.
The main problem is that result in YY is not in order, so the converted result is also disorder, please help me to store the result in order. Thank you!
Download q1.mw
q1.mw