Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
126611 蒋沛霖 计算数列和 C++ 通过 100 0 MS 252 KB 204 2024-01-24 16:46:48

Tests(4/4):


#include<iostream> #include<bits/stdc++.h> using namespace std; int main(void) { int n; unsigned long long sum=0; cin>>n; while(n) { sum+=pow(n,2); n--; } cout<<sum; return 0; }


测评信息: