| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134497 | 黄芃硕 | 函数求和 | C++ | Accepted | 1 MS | 264 KB | 252 | 2025-10-27 18:26:28 |
#include<iostream> #include<cstring> using namespace std; int qh(int a,int b) { int s=0; for(int i=a;i<=b;i++) { s+=i; } return s; } int main() { cout<<qh(1,10)<<endl; cout<<qh(20,30)<<endl; cout<<qh(35,45); return 0; }