maspy

スポンサーリンク
CodeForces

Educational Codeforces Round 63

A. Reverse a Substring $i<j, s_i>s_j$ となる $(i,j)$ の存在が必要です.このような $(i,j)$ があるとき $j=i+1$ ととれます. B. G...
CodeForces

Educational Codeforces Round 62

A. Detective Book いままで出た最大の $a_i$ を保持してシミュレーション. B. Good String 最後に戻る文字の左側や右側が全消しされる瞬間のことを考えると,最後に...
CodeForces

Educational Codeforces Round 61

A. Regular Bracket Sequence 貪欲な順に並べたものがどうなっているかを判定. B. Discounts ソートして上から $n$ 番目を無料にする. C...
CodeForces

Codeforces Round 691

(div1) (div2) A. Row GCD $a_0+b_j$ と,$a_i-a_0$. B. Glass Half Spilled $k$ 個選んだときの $\sum a, \su...
CodeForces

Codeforces Round 692 (Technocup 2021 Elimination Round 3)

(div1) (div2) 問題番号は div1 A. Peaceful Rooks $N$ 頂点のグラフを考え,駒 $(x,y)$ を $x$ から $y$ への有向辺とします. 常にどの...
CodeForces

Good Bye 2018

A. New Year and the Christmas Ornament $(x+1,x+2,x+3)$ として $x$ として可能な最大値を求める. B. New Year and the Tre...
CodeForces

Educational Codeforces Round 59

A. Digits Sequence Dividing 長さ 3 以上なら先頭 1 項だけでグループを作ればよいです. B. Digital root mod 9 C. Brut...
CodeForces

Educational Codeforces Round 60

A. Best Subsegment 最大平均は $\max A$ で,長さ 1 の場合に実現できます. $\max A$ からなる最長 subarray を求めればよいです. B. Emote...
CodeForces

Educational Codeforces Round 177

A. Cloudberry Jam よくわからないけど 2n を出力すれば ok っぽい? B. Large Array and Segments 周期いくつか分と suffix ひとつです.su...
CodeForces

Educational Codeforces Round 58

A. Minimum Integer $d$ または $R$ より大きい最小の $d$ の倍数. B. Accordion 最後に残した文字が のどれであるかで dp ができます. ...
スポンサーリンク
タイトルとURLをコピーしました