Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
42205 Songgy_King 调皮的猫咪 C++ 通过 1 MS 252 KB 281 2024-02-24 12:31:11

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int a[25][25],p; int main(){ a[1][0]=1; int n,m; cin>>n>>m; for(int i=1;i<=n;i++) for(int j=1;j<=m;j++){ cin>>p; if(p){ a[i][j]=a[i-1][j]+a[i][j-1]; } } cout<<a[n][m]<<endl; return 0; }


测评信息: