| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 326260 | 沈心 | 【C2-5】奇数求和 | C++ | Accepted | 100 | 3 MS | 248 KB | 182 | 2025-06-12 16:31:02 |
#include<iostream> using namespace std; int main(){ int m,n,s=0; cin>>m>>n; for(int i=m;i<=n;i++){ if(i%2==1){ s=s+i; } } cout<<s; return 0; } //Online Judge