verify/geometry/CGL_2/cross_point_cgl2c_test.nim

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

:heavy_check_mark: verify/geometry/CGL_2/cross_point_cgl2c_test.nim

Depends on

Code

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

var q = ii()
proc get(): Point[float] = initPoint(float(ii()), float(ii()))
for _ in 0..<q:
    var l1, l2 = initLine(get(), get())
    var p = cross_point(l1, l2)
    echo &"{p.x:.10f} {p.y:.10f}"
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