Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
39729 | TheFirstGreen | 迷宫游戏(game)(2024岳阳市赛小学组) | C++ | 通过 | 0 MS | 292 KB | 285 | 2024-05-05 11:57:10 |
#include<bits/stdc++.h> using namespace std; long long n,m,a[55][55]; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin>>n>>m; a[1][1]=1; for(int i=1;i<=n;i++){ for(int j=1;j<=m;j++)a[i][j]+=a[i-1][j]+a[i][j-1]; } cout<<a[n][m]; return 0; }