Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
104283 | 顾文博 | 13求1╳2+2╳3+3╳4+...+10╳11的和 | C++ | Accepted | 0 MS | 256 KB | 386 | 2025-01-04 17:48:26 |
#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 n=1,m=2,a=0; for(int i=n;i<=10;i++){ a=n*m+a; n++; m++; } cout<<a; return 0; }