Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
12259 A班-袁誉晏 求1!+2!+...+N! C++ 解答错误 0 1 MS 260 KB 201 2025-07-09 16:21:27

Tests(0/1):


#include <bits/stdc++.h> using namespace std; int a(int b) { int cnt=1; for(int i=1;i<=b;i++) { cnt*=i; } return cnt; } int main() { int n; cin>>n; cout<<a(n); return 0; }


测评信息: