Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114552 | 欧阳俊懿 | 函数求和 | C++ | Accepted | 1 MS | 260 KB | 221 | 2025-03-22 16:47:24 |
#include<bits/stdc++.h> using namespace std; int hhh(int n,int m){ int s=0; for(int i=n;i<=m;i++){ s+=i; } return s; } int main() { cout<<hhh(1,10)<<" "<<hhh(20,30)<<" "<<hhh(35,45); return 0; }