byslib-python

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

View the Project on GitHub bayashi-cl/byslib-python

:heavy_check_mark: tests/graph/kruskal.test.py

Depends on

Code

# verification-helper: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/5/GRL/all/GRL_2_A
import sys

from byslib.core.fastio import sinput
from byslib.graph import Edge
from byslib.graph.kruskal import kruskal


def main() -> None:
    v, e = map(int, sinput().split())
    edges = [Edge(*map(int, sinput().split())) for _ in range(e)]
    cost, _ = kruskal(edges, v)
    print(cost)


if __name__ == "__main__":
    sys.setrecursionlimit(10**6)
    main()
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.4/x64/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], 'release': True}).decode()
  File "/opt/hostedtoolcache/Python/3.10.4/x64/lib/python3.10/site-packages/onlinejudge_verify/languages/python.py", line 80, in bundle
    raise NotImplementedError
NotImplementedError
Back to top page