kyopro-lib

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

View on GitHub

:warning: Check square number
(Mylib/Number/is_square.cpp)

Operations

Requirements

Notes

Problems

References

Code

#pragma once

namespace haar_lib {
  template <typename T>
  constexpr bool is_square(T n) {
    T rt = sqrt(n);
    return rt * rt == n;
  }
}  // namespace haar_lib
#line 2 "Mylib/Number/is_square.cpp"

namespace haar_lib {
  template <typename T>
  constexpr bool is_square(T n) {
    T rt = sqrt(n);
    return rt * rt == n;
  }
}  // namespace haar_lib
Back to top page