verify/math/nearest_equiv_test_.nim

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

:warning: verify/math/nearest_equiv_test_.nim

Depends on

Code

# verification-helper: PROBLEM https://atcoder.jp/contests/abc334/tasks/abc334_b
import strutils, sequtils
import cplib/math/nearest_equiv

var a, m, l, r: int
(a, m, l, r) = stdin.readLine.split.map(parseInt)
var s = nearest_equiv(a, l, m)
var t = nearest_equiv(a, r+1, m)
echo max(0, (t - s) div m)
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