maspy

CodeForces

Educational Codeforces Round 64

A. Inscribed Figures 四角形と三角形が隣接すると無限大です.そうでないとき,基本的には隣接 2 種だけ見ればよいですが,四角形・円・三角形と続いた場合に交点をまとめることができます. ...
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...
スポンサーリンク
タイトルとURLをコピーしました