verify/collections/binary_trie_test.nim

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

:heavy_check_mark: verify/collections/binary_trie_test.nim

Depends on

Code

# verification-helper: PROBLEM https://judge.yosupo.jp/problem/set_xor_min
import cplib/collections/binary_trie
import sequtils
proc scanf(formatstr: cstring){.header: "<stdio.h>", varargs.}
proc ii(): int {.inline.} = scanf("%lld\n", addr result)
var Q = ii()
var S = initBineryTrie(30)
for i in 0..<(Q):
    var t,x = ii()
    if t == 0:
        if x notin S:
            S.incl(x)
    elif t == 1:
        if x in S:
            S.excl(x)
    else:
        stdout.writeLine S.get_kth(0,x) xor x
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