This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub shibh308/library
auto ncr = [&fact, &inv](int n, int r){ if(n < 0 || r < 0 || n < r) return mint(0); return fact[n] * inv[r] * inv[n - r]; };
#line 1 "lib/functions/ncr.cpp" auto ncr = [&fact, &inv](int n, int r){ if(n < 0 || r < 0 || n < r) return mint(0); return fact[n] * inv[r] * inv[n - r]; };