Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
75716 谢润景 走方格-2 C++ 解答错误 70 0 MS 252 KB 332 2026-07-22 12:16:45

Tests(7/10):


#include <bits/stdc++.h> using namespace std; int n,m,c,d; int a(int n){ if(n<2){ return 1; } else{ return n*a(n-1); } } int main(){ cin>>n>>m; if(n%2==0){ c=n/2-1; } else{ c=(n+1)/2-1; } if(m%2==0){ d=m/2-1; } else{ d=(m+1)/2-1; } cout<<(a(c+d)/a(d))/a(c); return 0; }


测评信息: