Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97601 王思颜 函数求和 C++ Wrong Answer 0 MS 260 KB 233 2024-11-16 11:31:50

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int he(int a,int b){ int ans = 0; for (int i = a;i <= b;i++){ ans += i; } return ans; } int main(){ cout<<he(1,10); cout<<he(20,30); cout<<he(35,45); return 0; }


Run Info:

------Input------
0
------Answer-----
55 275 440
------Your output-----
55275440