cpp-library

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

View the Project on GitHub 9tc/cpp-library

:x: 最小公倍数
(math/lcm.hpp)

Depends on

Verified with

Code

#include "../math/gcd.hpp"

#pragma once
template <class T>
inline T LCM(T a, T b){
  return a / GCD(a, b) * b;
}
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat
    bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode()
  File "/usr/local/lib/python3.10/site-packages/onlinejudge_verify/languages/cplusplus.py", line 187, in bundle
    bundler.update(path)
  File "/usr/local/lib/python3.10/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py", line 312, in update
    raise BundleErrorAt(path, i + 1, "#pragma once found in a non-first line")
onlinejudge_verify.languages.cplusplus_bundle.BundleErrorAt: math/lcm.hpp: line 3: #pragma once found in a non-first line
Back to top page