This documentation is automatically generated by online-judge-tools/verification-helper
# verification-helper: PROBLEM http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=NTL_1_C
import sys
input = sys.stdin.buffer.readline
from NumberTheory.Basic.gcd_lcm import lcm, all_lcm_int, all_lcm_dict
def main():
n = int(input())
a = list(map(int, input().split()))
lcm0 = 1
for val in a:
lcm0 = lcm(lcm0, val)
lcm1 = all_lcm_int(a)
factors = all_lcm_dict(a)
lcm2 = 1
for val in factors:
lcm2 *= val ** factors[val]
assert(lcm0 == lcm1 and lcm1 == lcm2)
print(lcm0)
if __name__ == '__main__':
main()
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/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 "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/onlinejudge_verify/languages/python.py", line 96, in bundle
raise NotImplementedError
NotImplementedError