| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137210 | 顾文博 | 函数求和 | C++ | Accepted | 1 MS | 264 KB | 435 | 2025-11-16 16:20:20 |
#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 a(int x,int y){ int s=0; for(int i=x;i<=y;i++){ s+=i; } cout<<s<<endl; return s; } int main(){ a(1,10); a(20,30); a(35,45); return 0; }