| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 131164 | 晏莞煜 | 函数求和 | C++ | Wrong Answer | 1 MS | 260 KB | 236 | 2025-09-21 11:50:07 |
#include<bits/stdc++.h> using namespace std; int qiu_he(int a,int b,int sum){ for(int i=a;i<=b;i++){ sum+=i; } } int main(){ cout<<qiu_he(1,10,0)<<endl; cout<<qiu_he(20,30,0)<<endl; cout<<qiu_he(35,45,0); return 0; }
------Input------
0
------Answer-----
55 275 440
------Your output-----
0 0 0