The following submission 52361614 contains a user-defind C++ class
modulo for () modular arithmetic, where P is a prime number and all numbers are normalized to the interval [0, P - 1]. The modular division operation y / x is performed by means of multiplying the modulo number y times the modular multiplicative inverse of x computed using the modular power operator xp. The class includes another class
modulo::factorial for computing modular factorials n! and modular binomial coefficients m-out-of-n.
The C++ class can be used by Codeforces as any other shared library in the public domain.