Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115263 周荣浩 13求1╳2+2╳3+3╳4+...+10╳11的和 C++ Accepted 0 MS 264 KB 179 2025-03-30 08:52:54

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a=1; int b=2; int sum=0; for(int i=11;b<=i;){ sum+=b*a; a+=1; b+=1; } cout<<sum; return 0; }