Skip to content
notebook
Menu
notebook
Overview
Contest
Data structures
Graph
Math
Strings
Dynamic programming
Databases
math
Math
Gold modular snippets.
Modular arithmetic
[gold]
ModFact.h
. Factorials and powers modulo 10^9+7.
ModInv.h
. Modular inverse by binary exponentiation.
3881.cpp
. A worked modular problem.