verify/collections/defaultdict/defaultdict_abc278c_test_.nim

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

:warning: verify/collections/defaultdict/defaultdict_abc278c_test_.nim

Depends on

Code

# verification-helper: PROBLEM https://atcoder.jp/contests/abc278/tasks/abc278_c
import cplib/collections/defaultdict
import strutils, sequtils, sets
var n, q, t, a, b: int
(n, q) = stdin.readLine.split.map parseInt
var d = initDefaultDict[int, Hashset[int]](initHashSet[int](0))
for _ in 0..<q:
    (t, a, b) = stdin.readLine.split.map parseInt
    a -= 1; b -= 1
    if t == 1: d[a].incl(b)
    elif t == 2: d[a].excl(b)
    else: echo(if b in d[a] and a in d[b]: "Yes" else: "No")
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