思路: 你可以求出白球要移动到哪个点,同时白球和红球分别在红线两边才可能进行移动。 #include <cstdio> #include <cstring> #include <vector> #include <algorithm> #……