verify/math/fractions_abc226d_test_.nim

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

:warning: verify/math/fractions_abc226d_test_.nim

Depends on

Code

# verification-helper: PROBLEM https://atcoder.jp/contests/abc226/tasks/abc226_d
import sequtils, strutils, sets
import cplib/math/fractions

var n = stdin.readLine.parseInt
var x, y = newSeqWith(n, 0)
for i in 0..<n: (x[i], y[i]) = stdin.readLine.split.map parseInt
var st = initHashSet[Fraction[int]](0)
for i in 0..<n:
    for j in i+1..<n:
        var x = initFraction(x[i] - x[j], y[i] - y[j])
        if x == initFraction(-1, 0): x = initFraction(1, 0)
        st.incl(x)
echo st.len * 2
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