2023-01-22から1日間の記事一覧

アルゴリズムと数学 004

https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_d整数を3つではなく一般化しました。積にsumのようなものはないですが、foldが使えますね。 // Product of 3 Integers #![allow(non_snake_case)] //////////////////// library /…