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

アルゴリズムと数学 034

https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_af総当たりでOKですね。 f64はminを取るのが面倒で、foldを使えば可能ですが、 fold(f64::MAX, f64::min) がAtCoderでは通らなくて、f64::MAXの代わりに1e7としました。 // Neares…