Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
73452 sh25_shenpy 求阶乘的和 C++ 解答错误 0 MS 240 KB 197 2025-11-09 20:58:00

Tests(0/1):


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


测评信息: