CodeForces Codeforces Round 1007 A. The Play Never Ends 3 周期. B. Perfecto 手前から可能なもののうち最小値を選ぶような感じで詰むことがなさそう(だんだん平方数が疎になってくるので詰みにくくな... 2025.05.14 CodeForces
CodeForces Codeforces Round 1011 A. Serval and String Theory 文字種が 1 種だと不可能.2 種以上あるならば両端を使うことで 2 回あれば達成可能.1 回で可能かは全探索可能です. B. Serval an... 2025.05.14 CodeForces
CodeForces Codeforces Round 647 – Thanks, Algo Muse! (div1) (div2) A. Johnny and Contribution $A$ について昇順に選んだときに上手くいっているかどうかチェック. B. Johnny and Grandma... 2025.05.14 CodeForces
CodeForces Codeforces Round 507 (div1) (div2) A. Timetable 難読. $(i,j)$ が good なのは,次が成り立つ場合です:$a$ から $a_i$,$b$ から $b_j$ を削除してインデックスをつけなお... 2025.05.13 CodeForces
CodeForces Kotlin Heroes: Episode 10 Kotlin Heroes はコンテストには参加せず,C++ や Python で書いたコードを chatgpt に変換してもらうことで AC しています.コンテスト中にこれをやるのはルール違反です. A. 1-3-5 ... 2025.05.12 CodeForces
CodeForces Codeforces Round 1024 (div1) (div2) A. Mex in the Grid 適当に真ん中から渦巻を描けば AC になります.証明はかなり非自明な気がしました.AC と証明の難易度差がすごい. なんらかの置き方 $X$... 2025.05.12 CodeForces
CodeForces Codeforces Round 792 A. Digit Minimization 長さが $2$ 以上なら残るものは決まります. 長さが $3$ 以上なら狙ったものを残せます.帰納法で簡単に示せます. B. Z mod X = C ... 2025.05.10 CodeForces
CodeForces Codeforces Global Round 1 A. Parity $b$ が偶数なら末尾,そうでなければ sum. B. Tape 隙間のうちいくつを埋める必要がある,となるため隙間の長さをソートして貪欲にとります. C. ... 2025.05.08 CodeForces
CodeForces Codeforces Round 330 (div1) (div2) A. Warrior and Archer ソートして $d=\min\{x_{N/2+i}-x_i\}$ とします. 後手は $d$ 以上を達成できます.$i,i+N/2$ で... 2025.05.08 CodeForces
CodeForces Codeforces Round 1023 A. LRC and VIP 種類数が $1$ ならば不可能.そうでなければ,片方を max だけにすれば条件を満たします. B. Apples in Boxes 負ける瞬間は次のどちらかしかない... 2025.05.06 CodeForces