| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 10803 | 海瑧 | 奇数求和 | C++ | Accepted | 0 MS | 244 KB | 192 | 2023-03-01 22:49:07 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n,a=0; cin>>m>>n; for(int i=m;i<=n;i++){ if (i%2==1){ a+=i; } } cout<<a; return 0; }