#include #include #include void run(std::vector&xs, std::vector&xs_dp,int index,int cost) { for (unsigned int i = index+1; i < xs.size(); i++) { if (xs[i] % xs[index] == 0&&xs_dp[i]> n; std::vector xs(n); std::vector xs_dp(n); for (int i = 0; i < n; i++) { std::cin >> xs[i]; xs_dp[i] = 1; } std::sort(xs.begin(), xs.end()); run(xs, xs_dp, 0, 1); std::cout << *std::max_element(xs_dp.begin(), xs_dp.end())<