Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115823 | 陈铎文 | 函数求和 | C++ | Wrong Answer | 1 MS | 260 KB | 223 | 2025-04-05 08:34:12 |
#include<iostream> using namespace std; int f(int a,int b){ int s=0; for(int i=a;i<=b;i++){ s+=i; } cout<<s<<endl; } int main(){ f(1,10); f(20,30); f(35,40); return 0; }
------Input------
0
------Answer-----
55 275 440
------Your output-----
55 275 225