This documentation is automatically generated by online-judge-tools/verification-helper
#include "src/utility/sparseTable/gcdStructure.hpp"Sparse Tableで区間最小公倍数クエリを処理したい時に、zawa::sparseTable<structure>のstructureに入れる構造体です。
zawa::gcdStructure<T>
T
intやlong longなど、std::gcdに突っ込むことができる型#include <numeric>
namespace zawa {
template <class T>
struct gcdStructure {
using valueType = T;
static valueType operation(const valueType& a, const valueType& b) {
return std::gcd(a, b);
}
};
} // namespace zawa#line 1 "src/utility/sparseTable/gcdStructure.hpp"
#include <numeric>
namespace zawa {
template <class T>
struct gcdStructure {
using valueType = T;
static valueType operation(const valueType& a, const valueType& b) {
return std::gcd(a, b);
}
};
} // namespace zawa