Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- constexpr int MOD = 666013;
- int getFact(int n) {
- int r = 1;
- for (int i = 1; i <= n; i++) {
- r = 1LL * r * i % MOD;
- }
- return r;
- }
- signed main() {
- int n, k;
- cin >> n >> k;
- cout << getFact(n) / getFact(n - k) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement