CodeForces Codeforces Global Round 7 A. Bad Ugly Numbers 999998 のような数で作りました. B. Maximums これまでの max が何であるかを持っておけば,それぞれ簡単に決まります. ... 2025.05.15 CodeForces
CodeForces Dytechlab Cup 2022 A. Ela Sorting Books 貪欲に作っていきます. B. Ela's Fitness and the Luxury Number $n=\lfloor\sqrt{x}\rfloor$... 2025.05.15 CodeForces
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 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