| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158906 | 刘杨国卿 | 函数求和 | C++ | Accepted | 1 MS | 264 KB | 237 | 2026-08-23 12:25:48 |
#include<bits/stdc++.h> using namespace std; int get(int a,int b){ int s=0; for(int i=a;i<=b;i++){ s+=i; } return s; } int main(){ cout<<get(1,10)<<endl; cout<<get(20,30)<<endl; cout<<get(35,45)<<endl; return 0; }