| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83884 | 石晋骁 | 阶乘的和 | C++ | Wrong Answer | 1 MS | 272 KB | 260 | 2024-07-15 09:50:52 |
#include<bits/stdc++.h> using namespace std; int sum(int m){ int a = 1,b = 0; for(int i = 0;i < m;i++){ for(int j = 1;j <= i;j++){ a = a*i; } b = b+a; } cout << b; } int main(){ int n; cin >> n; sum (n); return 0; }
------Input------
4
------Answer-----
33
------Your output-----
114