comp-library

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

View the Project on GitHub luzhiled1333/comp-library

:heavy_check_mark: $x^2 (x \in \mathbb{Z})$
(src/geometry/Z2/operation/square.hpp)

square

Z square(Z x)

x を2乗して返す。

オーバーフローに注意。

Required by

Verified with

Code

#pragma once

namespace luz::Z2 {

  template < typename Z >
  Z square(const Z x) {
    return x * x;
  }

} // namespace luz::Z2
#line 2 "src/geometry/Z2/operation/square.hpp"

namespace luz::Z2 {

  template < typename Z >
  Z square(const Z x) {
    return x * x;
  }

} // namespace luz::Z2
Back to top page