Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
39725 yihang 迷宫游戏(game)(2024岳阳市赛小学组) C++ 通过 0 MS 336 KB 298 2024-05-05 10:56:44

Tests(12/12):


#include"bits/stdc++.h" using namespace std; long long s[100][100]; long long n,m; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin>>n>>m; s[0][1]=1; for(int i=1;i<=n;i++){ for(int j=1;j<=m;j++){ s[i][j]=s[i-1][j]+s[i][j-1]; } } cout<<s[n][m]; }


测评信息: