Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158468 王艺博 13求n加到m的和 C++ Accepted 1 MS 272 KB 169 2026-08-22 10:31:35

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main () { int a,n,m,sum=0; cin>>n>>m; for(a=n;a<=m;a++){ sum=sum+a; } cout<<sum<<' '; return 0; }