Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86382 黄睿杰 13求1╳2+2╳3+3╳4+...+10╳11的和 C++ Accepted 0 MS 264 KB 174 2024-07-24 20:05:56

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n=1,m=2,s=0,c=0; for(int i=1;i<=10;i++){ c=m*n; n++; m++; s+=c; } cout<<s; return 0; }