Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
73453 sh25_shenpy 求阶乘的和 C++ Wrong Answer 0 MS 248 KB 199 2025-11-09 21:01:03

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; }


Judgement Protocol: