algo — C++23 日本語リファレンス GitHub

gcd

関数 · 整数ユーティリティ

std::int64_t gcd(const std::vector<std::int64_t> &v);

概要

整数列の最大公約数を返す

計算量

関連項目