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

アルゴリズムと数学 076

https://atcoder.jp/contests/math-and-algorithm/tasks/abc186_dこの問題のポイントは、各要素間の距離の総和だからAを並べ替えても値が同じということですね。 // Sum of difference #![allow(non_snake_case)] //////////////////// library ////////////…