in 题解贪心二分

题目链接http://codeforces.com/contest/985/problem/D题目You are going to the beach with the idea to build the greatest sand castle ever in your head! The ...

in 贪心题解

题目链接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 consi...

in 题解思维

题目链接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 info...

in 题解思维

题目链接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 pai...

in 题解思维

题解链接题目链接https://arc061.contest.atcoder.jp/tasks/arc061_b题目Problem StatementWe have a grid with $H$ rows and $W$ columns. At first, all cells were p...