2023-06-09から1日間の記事一覧
https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_bd各カードに書かれた整数をa, b, cとして、aを固定します。aが1とNから遠いところなら場合の数は同じです。それを含めて総当たりにすればよいです。 // Three Cards #![allow(non…
https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_bd各カードに書かれた整数をa, b, cとして、aを固定します。aが1とNから遠いところなら場合の数は同じです。それを含めて総当たりにすればよいです。 // Three Cards #![allow(non…