maspy

CodeForces

Educational Codeforces Round 183

A. Candies for Nephews $n$ を $3$ で割った余りから答が決まります. B. Deck of Cards 手前から $a$ 個,後ろから $b$ 個,自由方向から $c...
CodeForces

Codeforces Round 1056

A. El fucho 問題文の通りにシミュレーション. B. Abraham's Great Escape 「escape しない」マスの個数を $k$ とすると, $k=0$ は可能:...
CodeForces

Codeforces Round 1055

A. Increase or Smash 最大値以外は種類数に $1$ 回ずつ increase, smash が必要になります. B. Catching the Krug D の最適な移動は決ま...
CodeForces

Codeforces Round 1054

A. Be Positive $0$ は $1$ にしてしまいます.そのうえで $-1$ が奇数個ならこれをひとつ $1$ にします. B. Unconventional Pairs ソートして昇...
CodeForces

Neowise Labs Contest 1 (Codeforces Round 1018)

A. Wonderful Sticks topological sort すればよいです. B. Wonderful Gloves $l_i\leq r_i$ としてよいです.その色についての最悪...
CodeForces

Codeforces Global Round 29

A. Shortest Increasing Path $x<y$ なら $2$ 手でできます.$2\leq y$ かつ $y+2\leq x$ のとき $3$ 手でできます($1, y, x-1$ とする). ...
CodeForces

Codeforces Round 1052

A. Equal Occurrences 出現回数 $k$ を全探索.$k$ 回以上出現するものの種類数を数えます. B. Merging the Sets ある選び方が条件を満たすなら,その選び...
CodeForces

Codeforces Round 1051

A. All Lengths Subtraction $k=n,n-1,\ldots$ 順に考えます.最初の操作で,どこかに $0$ が出来るのですが,これが両端以外だと $k=n-1$ で詰みます.端に $0$ が出来...
CodeForces

Educational Codeforces Round 182

A. Cut the Array 全探索すればよいです. 総和が $3$ の倍数であることが必要で,そのときどう切っても大丈夫.という解法もあると思います. B. Maximum Cost Per...
CodeForces

Codeforces Round 959 sponsored by NEAR

(div1 + div2) A. Diverse Game すべての数をインクリメントする,全体を rotate する,など. B. Fun Game $S = \text{00001....}$...
スポンサーリンク
タイトルとURLをコピーしました