AtCoder-Library

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

View the Project on GitHub ryusuke920/AtCoder-Library

:warning: Geometry/RotateReverse.py

Code

def ReverseRotate(l: list) -> list:
    """180°回転させる"""
    h, w = len(l), len(l[0])
    ans = [[None] * w for _ in range(h)]
    for i in range(h):
        for j in range(w):
            ans[h - i - 1][w - j - 1] = l[i][j]

    return ans

sample = [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]]
print(*ReverseRotate(sample), sep="\n")
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.3/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.3/x64/lib/python3.12/site-packages/onlinejudge_verify/languages/python.py", line 96, in bundle
    raise NotImplementedError
NotImplementedError
Back to top page