@[AlanCoder](/user/769261) 补0有问题 ```cpp long long d = k - 1 - (n - 1) % (k - 1); if(d == k - 1) d = 0; ``` by rhn7 @ 2024-01-03 19:49:47