Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96790 | 廖宸睿 | 函数求和 | C++ | Wrong Answer | 0 MS | 268 KB | 342 | 2024-11-09 14:45:53 |
#include <iostream> #include <cstdio> using namespace std; int x(int a,int b){ int z=0; for(int i=a;i<b;i++){ z+=i; }return z; } int main() { cout<<x(1,10)<<endl; cout<<x(20,30)<<endl; cout<<x(35,45)<<endl; return 0; }
------Input------
0
------Answer-----
55 275 440
------Your output-----
45 245 395