MCPcopy Create free account
hub / github.com/E869120/math-algorithm-book / main

Function main

codes/cpp/Code_4_06_6.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27int main() {
28 // �z��̏������ifact[i] �� i �̊K��� 1000000007 �Ŋ������]��j
29 fact[0] = 1;
30 for (int i = 1; i <= 200000; i++) fact[i] = 1LL * i * fact[i - 1] % mod;
31
32 // ���� �� �����̏o��
33 cin >> X >> Y;
34 cout << ncr(X + Y, Y) << endl;
35 return 0;
36}

Callers

nothing calls this directly

Calls 1

ncrFunction · 0.70

Tested by

no test coverage detected