Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7571 | 赖梓乐 | 13求1╳2+2╳3+3╳4+...+10╳11的和 | C++ | Accepted | 0 MS | 248 KB | 352 | 2025-05-03 20:04:08 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int i,k=0; for(i=1;i<=10;i++){ k=i*(i+1)+k; } cout<<k; return 0; }