Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
39728 TheFirstGreen 迷宫游戏(game)(2024岳阳市赛小学组) C++ 解答错误 0 MS 268 KB 285 2024-05-05 11:56:00

Tests(4/12):


#include<bits/stdc++.h> using namespace std; long long n,m,a[15][15]; 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; }