Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134496 黄芃硕 函数求和 C++ Wrong Answer 1 MS 264 KB 273 2025-10-27 18:25:09

Tests(0/1):


Code:

#include<iostream> #include<cstring> using namespace std; int a[1050][1050]; int qh(int a,int b) { int s=0; for(int i=a;i<=b;i++) { s+=i; } return s; } int main() { cout<<qh(10,20)<<endl; cout<<qh(20,30)<<endl; cout<<qh(35,45); return 0; }


Run Info:

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