Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
106738 付博苏逸 函数求和 C++ Accepted 0 MS 260 KB 230 2025-01-16 15:46:27

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; void sh(int begin,int end){ int sum = 0; for(int i=begin;i<=end;i++){ sum+=i; } cout<<sum<<endl; } int main(){ sh(1,10); sh(20,30); sh(35,45); return 0; }