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

アルゴリズムと数学 067

https://atcoder.jp/contests/math-and-algorithm/tasks/typical90_d包除原理ですね。i行目の和を、j行目の和をとすると、が求める和です。 // Cross Sum #![allow(non_snake_case)] //////////////////// library //////////////////// fn read<T: std::str::FromStr>() -> T { le</t:>…