题目链接http://codeforces.com/contest/985/problem/C题目You have m = n·k wooden staves. The i-th stave has length ai. You have to assemble n barrels consisting of k staves each, you can use any k staves t...
题目链接https://arc060.contest.atcoder.jp/tasks/arc060_c题目Problem StatementN hotels are located on a straight line. The coordinate of the i-th hotel $(1≤i≤N)$ is $x_i$.Tak the traveler has the followin...