m1une's library

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

View on GitHub

:heavy_check_mark: math/affine.hpp

Verified with

Code

#ifndef M1UNE_AFFINE_HPP
#define M1UNE_AFFINE_HPP 1

#include <utility>

namespace m1une {
template <typename T>
T affine(std::pair<T, T> f, T x) {
    return f.first * x + f.second;
}
}  // namespace m1une

#endif  // M1UNE_AFFINE_HPP
#line 1 "math/affine.hpp"



#include <utility>

namespace m1une {
template <typename T>
T affine(std::pair<T, T> f, T x) {
    return f.first * x + f.second;
}
}  // namespace m1une
Back to top page