那错了??????????

wc048 我话超多我有罪 2025-05-17 14:59:36 25

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

{{ vote && vote.total.up }}

共 2 条回复

wc048 我话超多我有罪

谢谢

root 站长

h = 0