LeetCode — 2872. Maximum Number of K-Divisible Components

題目連結：https://leetcode.com/problems/maximum-number-of-k-divisible-components/description/