| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 123000 | 王镜铭 | 12奇数和与偶数和 | C++ | Wrong Answer | 1 MS | 272 KB | 189 | 2025-06-22 13:12:47 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; int i=a,s=0,x=0; for(;i<=b;i++){ s=s+i; i++; x=x+i; } cout<<s<<" "<<x; return 0; }
------Input------
5 103
------Answer-----
2646 2700
------Your output-----
2700 2750