CodeForces Kotlin Heroes: Episode 12 Kotlin Heroes はコンテストには参加せず,C++ や Python で書いたコードを chatgpt に変換してもらうことで AC しています.コンテスト中にこれをやるのはルール違反なはず. A. Passw... 2025.04.08 CodeForces
CodeForces Codeforces Round 616 (div1) (div2) A. Mind Control $k$ 人を固定した場合の自分の値はある区間からひとつ選ばれることになるので,区間 min をいろいろ計算すればよいです. B. Ir... 2025.04.08 CodeForces
CodeForces Educational Codeforces Round 64 A. Inscribed Figures 四角形と三角形が隣接すると無限大です.そうでないとき,基本的には隣接 2 種だけ見ればよいですが,四角形・円・三角形と続いた場合に交点をまとめることができます. ... 2025.04.08 CodeForces
CodeForces Educational Codeforces Round 63 A. Reverse a Substring $i<j, s_i>s_j$ となる $(i,j)$ の存在が必要です.このような $(i,j)$ があるとき $j=i+1$ ととれます. B. G... 2025.04.08 CodeForces
CodeForces Educational Codeforces Round 62 A. Detective Book いままで出た最大の $a_i$ を保持してシミュレーション. B. Good String 最後に戻る文字の左側や右側が全消しされる瞬間のことを考えると,最後に... 2025.04.07 CodeForces
CodeForces Educational Codeforces Round 61 A. Regular Bracket Sequence 貪欲な順に並べたものがどうなっているかを判定. B. Discounts ソートして上から $n$ 番目を無料にする. C... 2025.04.07 CodeForces
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... 2025.04.06 CodeForces
CodeForces Codeforces Round 692 (Technocup 2021 Elimination Round 3) (div1) (div2) 問題番号は div1 A. Peaceful Rooks $N$ 頂点のグラフを考え,駒 $(x,y)$ を $x$ から $y$ への有向辺とします. 常にどの... 2025.04.05 CodeForces
CodeForces Good Bye 2018 A. New Year and the Christmas Ornament $(x+1,x+2,x+3)$ として $x$ として可能な最大値を求める. B. New Year and the Tre... 2025.04.04 CodeForces
CodeForces Educational Codeforces Round 59 A. Digits Sequence Dividing 長さ 3 以上なら先頭 1 項だけでグループを作ればよいです. B. Digital root mod 9 C. Brut... 2025.04.04 CodeForces