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