太神了【将狼踩尽的题解】
/* Telekinetic Forest Guard */
#include <cstdio>
#include <algorithm>
using namespace std;
typedef long long LL;
const int maxn = 2000001, p = 20100403;
int n, m, fact[maxn];
inline int mul(int a, int b) {
return (LL)a * b % p;
}
inline int qpow(int x, int n) {
int s = 1;
for(int t = x; n; n >>= 1, t = mul(t, t)) if(n & 1) s = mul(s, t);
return s;
}
int main() {
fact[0] = 1;
for(int i = 1; i < maxn; i++) fact[i] = mul(fact[i - 1], i);
scanf("%d%d", &n, &m);
printf("%d\n", (mul(mul(fact[n + m], qpow(fact[n], p - 2)), qpow(fact[m], p - 2)) - mul(mul(fact[n + m], qpow(fact[n + 1], p - 2)), qpow(fact[m - 1], p - 2)) + p) % p);
return 0;
}