Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
106736 付博苏逸 函数求和 C++ Wrong Answer 1 MS 272 KB 231 2025-01-16 15:44:49

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; void sh(int begin,int end){ int sum = 0; for(int i=begin;i<=end;i++){ sum+=i; } cout<<sum<<endl; } int main(){ sh(1,9); sh(15,20); sh(12,43); return 0; }


Run Info:

------Input------
0
------Answer-----
55 275 440
------Your output-----
45 105 880