Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
168385 | 李澄 | 组合数的高精度算法 | C++ | 解答错误 | 40 | 26 MS | 8860 KB | 338 | 2024-08-20 10:30:38 |
#include <bits/stdc++.h> using namespace std; unsigned long long a[1050][1050]; int main() { int n, m; cin >> n >> m; for (int i = 1; i <= n; i++) { for (int j = 1; j <= m; j++) { if (i == 1 && j == 1) a[i][j] = 1; else a[i][j] = a[i - 1][j] + a[i][j - 1]; } } cout << a[n][m] << endl; return 0; }