[−][src]Module competitive_hpp::prelude
Macros
input | read input from stdin. |
Structs
BTreeMap | A map based on a B-Tree. |
BTreeSet | A set based on a B-Tree. |
BigInt | A big signed integer type. |
BigUint | A big unsigned integer type. |
Complex | A complex number in Cartesian form. |
Reverse | A helper struct for reverse ordering. |
VecDeque | A double-ended queue implemented with a growable ring buffer. |
Enums
Bytes | Bytes: read a string as array of bytes. |
Chars | Chars: read a string as array of chars. |
Isize1 | Isize1: 1-indexed isize. Output of reading has type isize. |
Usize1 | Usize1: 1-indexed usize. Output of reading has type usize. |
Traits
Itertools | An |
Num | The base trait for numeric types, covering |
Functions
abs | Computes the absolute value. |
clamp | A value bounded by a minimum and a maximum |
gcd | Calculates the Greatest Common Divisor (GCD) of the number and |
lcm | Calculates the Lowest Common Multiple (LCM) of the number and |
max | Compares and returns the maximum of two values. |
min | Compares and returns the minimum of two values. |
Type Definitions
BigRational | Alias for arbitrary precision rationals. |
Rational | Alias for a |
Attribute Macros
memoise | Memoise function by using |