Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
335206 李俞家骅 【C2-2】编程求1平方+2平方+...+n平方 C++ 通过 100 2 MS 252 KB 179 2025-07-22 10:33:19

Tests(5/5):


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


测评信息: