スポンサーリンク
CodeForces

Educational Codeforces Round 45

A. Commentary Boxes $n$ の上下最寄りの $m$ の倍数を調べる. B. Micro-World $(x,x+K]$ 内の要素があるものだけしか消せません.それらは昇順に消す...
CodeForces

Educational Codeforces Round 44

A. Chess Placing ソートして 1, 3, 5, ... または 2, 4, 6, ... と対応. B. Switches and Lamps 各列の個数を持っておくと1行捨てたと...
CodeForces

Educational Codeforces Round 43

A. Minimum Binary Number $0$ の個数が不変量. B. Lara Croft and the New Game 周期的に $2$ 行戻ります. C. N...
CodeForces

Codeforces Round 1014

A. Kamilka and the Sheep max - min です.超えないことも実現できることも簡単. B. Lady Bug 「$A$ の偶数インデックス,$B$ の奇数インデックス」...
CodeForces

Educational Codeforces Round 42

A. Equator 総和を求めて先頭からの和が半分以上になるところ. B. Students in Railway Carriage 連続 $2n$ マスはどちらの種類も $n$ 回以下使える....
CodeForces

Educational Codeforces Round 41

A. Tetris 各列に来る個数を数えてその min です. B. Lecture Sleep 各時刻が区間に入ったあとの利得の prefix sum を作っておきます. C....
CodeForces

Educational Codeforces Round 40

A. Diagonal Walking 手前から見て可能なら置き換える貪欲. B. String Typing at most once なので,どの長さのときに倍化するかを決めて計算するだけです. ...
CodeForces

Educational Codeforces Round 39

A. Partition 要素ごとに考えると単に $\max(x,-x)$ の和です. B. Weird Subtraction Process 同じ減算が繰り返されるところをまとめると $\lo...
CodeForces

Deltix Round, Spring 2021

A. Game of Life 1 はずっと 1 なので,1 ではさまれた区間ごとに考えて解けます.1 が増加する回数は N 回以下なので,min(N,M) ステップ分シミュレーションしてもよいです. ...
CodeForces

Codeforces Round 526

div1: div2: div2 only は省略. A. The Fair Nut and the Best Path 燃料が負になることも許してパスを選ぶ問題を解けばよいです.途中で負になる経路は,そこ...
スポンサーリンク
タイトルとURLをコピーしました