https://www.luogu.com.cn/blog/_post/43932 https://www.luogu.com.cn/blog/_post/5035 https://www.luogu.com.cn/blog/_post/24696 https://www.luogu.com.cn/blog/_post/38815 https://www.luogu.com.cn/blog/_post/20212 https://www.luogu.com.cn/blog/_post/5034 https://www.luogu.com.cn/blog/_post/42843
以上题解均无法通过样例 #11。
input:
3
1 3
0
2 2 1
2 2 1
0
1 3
output:
move 1 from C to A
move 2 from C to B
move 1 from A to B
move 3 from A to C
move 1 from B to C
move 2 from B to A
move 1 from C to A
7
answer:
move 3 from A to B
move 1 from C to B
move 2 from C to A
move 1 from B to A
move 3 from B to C
5