Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
105656 曾煦翔 传球游戏 C++ 运行超时 50 1000 MS 248 KB 246 2023-10-07 13:48:50

Tests(5/10):


#include <iostream> using namespace std; int n , m; int a(int s,int c) { if(c == m) return s == 1 ? 1 : 0; return a(s % n + 1 , c + 1 ) + a(s != 1 ? s - 1 : n , c + 1); } int main() { cin >> n >> m; cout << a(1 , 0); return 0; }


测评信息: