This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub online-judge-tools/verification-helper
#include "examples/monoids.hpp"
#pragma once #include <algorithm> #include <cstdint> struct plus_monoid { typedef int64_t value_type; value_type unit() const { return 0; } value_type mult(value_type a, value_type b) const { return a + b; } }; struct max_monoid { typedef int64_t value_type; value_type unit() const { return INT64_MIN; } value_type mult(value_type a, value_type b) const { return std::max(a, b); } }; struct min_monoid { typedef int64_t value_type; value_type unit() const { return INT64_MAX; } value_type mult(value_type a, value_type b) const { return std::min(a, b); } };
#line 2 "examples/monoids.hpp" #include <algorithm> #include <cstdint> struct plus_monoid { typedef int64_t value_type; value_type unit() const { return 0; } value_type mult(value_type a, value_type b) const { return a + b; } }; struct max_monoid { typedef int64_t value_type; value_type unit() const { return INT64_MIN; } value_type mult(value_type a, value_type b) const { return std::max(a, b); } }; struct min_monoid { typedef int64_t value_type; value_type unit() const { return INT64_MAX; } value_type mult(value_type a, value_type b) const { return std::min(a, b); } };