maspy

CodeForces

Educational Codeforces Round 14

A. Fashion in Berland 読解.$n=1$ のとき特殊ルール. B. s-palindrome ひど.対称なペアを埋め込むしかなさそうだし,結構たくさんある. ...
CodeForces

Educational Codeforces Round 13

A. Johny Likes Numbers $(n+1)/k$ の切り上げ. B. The Same Calendar カレンダーライブラリ整備問題. C. Joty and ...
CodeForces

Codeforces Round 1009

A. Draw a Square 4 数が等しいかを判定. B. The Third Side $a,b$ があるとき次に書けるのは $a+b-1$ 以下で,ここから(操作順によらない)上界が出て...
CodeForces

Educational Codeforces Round 12

A. Buses Between Cities 読解難.B から A へのバスをすべて試して数えます. B. Shopping そのままシミュレーション. C. Simple S...
CodeForces

Educational Codeforces Round 11

A. Co-prime Array 互いに素でないところの間に $1$ を挿入すればよいです. B. Seating On Bus 書かれている通りにシミュレーション. C. H...
CodeForces

Educational Codeforces Round 10

A. Gabriel and Caterpillar 読解が本質すぎる.十分な個数の時刻をシミュレーション. B. z-sort 偶数添え字に小さいもの,奇数添え字に大きいものを置いていきます. ...
CodeForces

Educational Codeforces Round 9

A. Grandma Laura and Apples 後ろから順に決まっていきます. B. Alice, Bob, Two Teams 適当な累積和を前計算すれば,prefix, suffix ...
CodeForces

Educational Codeforces Round 8

A. Tennis Tournament 参加人数は $n$ で試合数は $n-1$ です. B. New Skateboard 長さ $2$ 以上のものについては,末尾 $2$ 文字を決めたら判...
CodeForces

Codeforces Round 740

A. Charmed by the Game 先攻を決めて 2 回解きます. B. Up the Strip $n$ からゴールまでの経路数 $dp$ を昇順に計算します.$z$ は愚直にループし...
CodeForces

Educational Codeforces Round 7

A. Infinite Sequence $1+2+\cdots+k\leq n$ となる最大の $k$ を求めます.線形探索でも $O(\sqrt{N})$ 時間. B. The Time $t...
スポンサーリンク
タイトルとURLをコピーしました