题目链接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...
题目链接http://codeforces.com/contest/985/problem/B题目You are given n switches and m lamps. The i-th switch turns on some subset of the lamps. This information is given as the matrix a consisting of n r...
题目链接http://codeforces.com/contest/985/problem/A题目You are given a chessboard of size $1 × n$. It is guaranteed that n is even. The chessboard is painted like this: "BWBW...BW".Some cells of the boar...
题解链接题目链接https://arc061.contest.atcoder.jp/tasks/arc061_b题目Problem StatementWe have a grid with $H$ rows and $W$ columns. At first, all cells were painted white.Snuke painted N of these cells. The $...
题解链接题目链接https://arc060.contest.atcoder.jp/tasks/arc060_b题目Problem StatementFor integers b(b≥2) and n(n≥1), let the function f(b,n) be defined as follows:$f(b,n)=n$, when $n<b$$f(b,n)=f(b, floor(...