思路There's a fact that the sum of factorials from to is strictly smaller than :So when: must be one of the . Otherwise, , which is contradicts to .And if , then contains only .So we can design the algorithm as follow实现 #include <iostream> #include <array> using namespace std; int mai...