I have seen a lot a people using "Mint" or "mint" or (some other variable names) instead of "int" whenever we need to do operations on 10e9+7 or some other big numbers, so that the value is always within range. Can anyone explain how to use it.
Hope to have some good explanations, thanks.









USACO Guide. You can scroll down for more.
It's a template, tourist has one as well, you can find his here
Mintis a wrapper for operations on integers done under some modulo, so, for example, instead of writing(((a*b)%MOD)*c)%MODover and over again, you can just writea*b*c(with a,b,c beingMints). It makes the code simpler.