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