题目链接http://codeforces.com/contest/987/problem/A题目You took a peek on Thanos wearing Infinity Gauntlet. In the Gauntlet there is a place for six Infinity Gems:the Power Gem of purple color,the Time G...
题目链接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 beach is not as three-dimensional as you could hav...
题目链接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...