rcpl

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub ruthen71/rcpl

:heavy_check_mark: algebra/monoid_s/monoid_gcd.hpp

Verified with

Code

#pragma once
// MS
template <class T> struct MonoidGcd {
    using S = T;
    static constexpr S op(S a, S b) { return std::gcd(a, b); }
    static constexpr S e() { return T(0); }
};
#line 2 "algebra/monoid_s/monoid_gcd.hpp"
// MS
template <class T> struct MonoidGcd {
    using S = T;
    static constexpr S op(S a, S b) { return std::gcd(a, b); }
    static constexpr S e() { return T(0); }
};
Back to top page