「CQOI 2007」余数求和 - 除法分块

给定正整数`n`和`k`

求 `ans = \sum_{i = 1}^n k\%i`

要求 `\mathcal{O}(\sqrt{k})` 时间复杂度

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×