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

Function main

codes/cpp/Code_4_06_5.cpp:22–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22int main() {
23 // ����
24 cin >> X >> Y;
25
26 // �񍀌W���̕��q�ƕ�������߂�i�菇 1.�^�菇 2.�j
27 long long bunshi = 1, bunbo = 1;
28 for (int i = 1; i <= X + Y; i++) { bunshi *= i; bunshi %= mod; }
29 for (int i = 1; i <= X; i++) { bunbo *= i; bunbo %= mod; }
30 for (int i = 1; i <= Y; i++) { bunbo *= i; bunbo %= mod; }
31
32 // ���������߂�i�菇 3.�j
33 cout << Division(bunshi, bunbo, mod) << endl;
34 return 0;
35}

Callers

nothing calls this directly

Calls 1

DivisionFunction · 0.70

Tested by

no test coverage detected