compro_library

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

View the Project on GitHub siro53/compro_library

:warning: data-structure/monoid/lcm.hpp

Code

#pragma once

#include <numeric>

template <typename T> struct MonoidLCM {
    using value_type = T;
    inline static T op(const T& l, const T& r) {
        return std::lcm(l, r);
    }
    inline static T e() { return T(1); }
};
#line 2 "data-structure/monoid/lcm.hpp"

#include <numeric>

template <typename T> struct MonoidLCM {
    using value_type = T;
    inline static T op(const T& l, const T& r) {
        return std::lcm(l, r);
    }
    inline static T e() { return T(1); }
};
Back to top page