verify/geometry/CGL_1/ccw_float_cgl1c_test.nim

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

:heavy_check_mark: verify/geometry/CGL_1/ccw_float_cgl1c_test.nim

Depends on

Code

# verification-helper: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/4/CGL/1/CGL_1_C
include cplib/geometry/ccw
proc scanf(formatstr: cstring){.header: "<stdio.h>", varargs.}
proc ii(): int {.inline.} = scanf("%lld\n", addr result)

proc get(): Point[float] = initPoint(float(ii()), float(ii()))
var p1 = get()
var p2 = get()
var s = initLine(p1, p2)
var q = ii()

for i in 0..<q:
    var p3 = get()
    var c = ccw(s, p3)
    if c == COUNTER_CLOCKWISE: echo "COUNTER_CLOCKWISE"
    elif c == CLOCKWISE: echo "CLOCKWISE"
    elif c == ONLINE_BACK: echo "ONLINE_BACK"
    elif c == ONLINE_FRONT: echo "ONLINE_FRONT"
    else: echo "ON_SEGMENT"
Traceback (most recent call last):
  File "/home/runner/.local/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 "/home/runner/.local/lib/python3.12/site-packages/onlinejudge_verify/languages/nim.py", line 86, in bundle
    raise NotImplementedError
NotImplementedError
Back to top page