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