Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
966 王彦皓 13求1╳2+2╳3+3╳4+...+10╳11的和 C++ Accepted 0 MS 256 KB 166 2023-06-10 15:15:33

Tests(1/1):


Code:

#include <iostream> using namespace std; int main(){ int a,b,c; c=b=0; a=1; for (a;a<=10;a++){ b=a*(a+1); c+=b; } cout<<c<<endl; return 0; }