kyopro-lib

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

View on GitHub

:warning: Sign function
(Mylib/Number/sign_function.cpp)

Operations

Requirements

Notes

Problems

References

Code

#pragma once

namespace haar_lib {
  template <typename T>
  constexpr int sign(T n) {
    return (n > 0) - (n < 0);
  }
}  // namespace haar_lib
#line 2 "Mylib/Number/sign_function.cpp"

namespace haar_lib {
  template <typename T>
  constexpr int sign(T n) {
    return (n > 0) - (n < 0);
  }
}  // namespace haar_lib
Back to top page