Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159429 张晓冉 函数求和 C++ Accepted 1 MS 268 KB 224 2026-08-30 19:32:47

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int m(int v,int s){ int d = 0; for(int i = v;i <= s;i++){ d += i; } return d; } int main(){ cout<<m(1,10)<<endl<<m(20,30)<<endl<<m(35,45)<<endl; }