Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77562 sh25_zhangjiajia 奇数求和 C++ 通过 1 MS 240 KB 227 2025-12-26 14:27:13

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main() { int n,m; cin >> m>>n; int tot=0; for(int i = m;i<=n;i++) { if(i%2==1) { tot+=i; } } cout <<tot<<endl; return 0; }


测评信息: