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

アルゴリズムと数学 003

https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_cVecはIteratorにするとsumが使えます。 // Sum of N Integers #![allow(non_snake_case)] //////////////////// library //////////////////// fn read<T: std::str::FromStr>() -> T { let mut line = </t:>…