src/cplib/tmpl/citrus

    Dark Mode
Search:
Group by:
  Source   Edit

Types

double = float64
  Source   Edit

Consts

DDXY = [(1, -1), (1, 0), (1, 1), (0, -1), (0, 1), (-1, -1), (-1, 0), (-1, 1)]
  Source   Edit
DXY = [(0, -1), (0, 1), (-1, 0), (1, 0)]
  Source   Edit
INF32: int32 = 1001000027'i32
  Source   Edit
INF64: int = 3300300300300300491
  Source   Edit
MODINT998244353 = 998244353
  Source   Edit
MODINT1000000007 = 1000000007
  Source   Edit

Procs

proc `%=`(x: var SomeInteger; y: SomeInteger): void
  Source   Edit
proc `%`(x: SomeInteger; y: SomeInteger): int
  Source   Edit
proc `&=`(x: var SomeInteger; y: SomeInteger): void
  Source   Edit
proc `&`(x: SomeInteger; y: SomeInteger): int
  Source   Edit
proc `//=`(x: var SomeInteger; y: SomeInteger): void
  Source   Edit
proc `//`(x: SomeInteger; y: SomeInteger): int
  Source   Edit
proc `<<=`(x: var SomeInteger; y: SomeInteger): void
  Source   Edit
proc `<<`(x: SomeInteger; y: SomeInteger): int
  Source   Edit
proc `>>=`(x: var SomeInteger; y: SomeInteger): void
  Source   Edit
proc `>>`(x: SomeInteger; y: SomeInteger): int
  Source   Edit
proc `[]=`(x: var int; n: int; i: bool) {....raises: [], tags: [].}
  Source   Edit
proc `[]`(x, n: int): bool {....raises: [], tags: [].}
  Source   Edit
proc `^=`(x: var SomeInteger; y: SomeInteger): void
  Source   Edit
proc `^`(x: SomeInteger; y: SomeInteger): int
  Source   Edit
proc `|=`(x: var SomeInteger; y: SomeInteger): void
  Source   Edit
proc `|`(x: SomeInteger; y: SomeInteger): int
  Source   Edit
proc at(x: char; a = '0'): int {....raises: [], tags: [].}
  Source   Edit
proc chmax[T](x: var T; y: T): bool {.discardable.}
  Source   Edit
proc chmin[T](x: var T; y: T): bool {.discardable.}
  Source   Edit
proc fmtprint(x: float or float32 or float64): string
  Source   Edit
proc fmtprint(x: int or string or char or bool): string
  Source   Edit
proc fmtprint[K, V](x: Table[K, V]): string
  Source   Edit
proc fmtprint[T, N](x: array[T, N]): string
  Source   Edit
proc fmtprint[T](x: CountTable[T]): string
  Source   Edit
proc fmtprint[T](x: HeapQueue[T]): string
  Source   Edit
proc fmtprint[T](x: seq[T] or Deque[T] or HashSet[T] or set[T]): string
  Source   Edit
proc input(t: typedesc[char]): char
  Source   Edit
proc input(t: typedesc[float]): float
  Source   Edit
proc input(t: typedesc[int]): int
  Source   Edit
proc input(t: typedesc[string]): string
  Source   Edit
proc isqrt(n: int): int {....raises: [], tags: [].}
  Source   Edit
proc max=[T](x: var T; y: T)
  Source   Edit
proc min=[T](x: var T; y: T)
  Source   Edit
proc No(b: bool = true): void {....raises: [IOError, ValueError],
                                tags: [WriteIOEffect].}
  Source   Edit
proc NO_upper(b: bool = true): void {....raises: [IOError, ValueError],
                                      tags: [WriteIOEffect].}
  Source   Edit
proc pow(a, n: int; m = INF64): int {....raises: [], tags: [].}
  Source   Edit
proc print(args: varargs[string, `fmtprint`]) {....raises: [IOError, ValueError],
    tags: [WriteIOEffect].}
  Source   Edit
proc print(prop: tuple[f: File, sepc: string, endc: string, flush: bool];
           args: varargs[string, `fmtprint`]) {....raises: [IOError, ValueError],
    tags: [WriteIOEffect].}
  Source   Edit
proc Yes(b: bool = true): void {....raises: [IOError, ValueError],
                                 tags: [WriteIOEffect].}
  Source   Edit
proc YES_upper(b: bool = true): void {....raises: [IOError, ValueError],
                                       tags: [WriteIOEffect].}
  Source   Edit

Macros

macro debug(args: varargs[untyped]): untyped
  Source   Edit
macro exit(statement: untyped): untyped
  Source   Edit
macro input(n: int; ts: varargs[auto]): untyped
  Source   Edit
macro input(t: typedesc; n: varargs[int]): untyped
  Source   Edit
macro input(ts: varargs[auto]): untyped
  Source   Edit