ICPC Notebook

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

View the Project on GitHub hayatroid/ICPC_notebook

:warning: src/template/hash.py

Code

# 使い方: uv run hash.py -> コピペ -> Ctrl + D
# コメント・空白・改行を無視して AST ベースで md5 ハッシュする
import ast, hashlib, sys

tree = ast.parse(sys.stdin.read())
dump = ast.dump(tree)
print(hashlib.md5(dump.encode()).hexdigest()[:6], end="")
Traceback (most recent call last):
  File "/home/runner/work/ICPC_notebook/ICPC_notebook/.venv/lib/pypy3.11/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 "/home/runner/work/ICPC_notebook/ICPC_notebook/.venv/lib/pypy3.11/site-packages/onlinejudge_verify/languages/python.py", line 96, in bundle
    raise NotImplementedError
NotImplementedError
Back to top page