2023-06-14から1日間の記事一覧

アルゴリズムと数学 068

https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_beこれも包除原理ですね。 Vecのスライスを使うと書きやすいようです。 // Number of Multiples 2 #![allow(non_snake_case)] //////////////////// library ////////////////////…