Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
335159 李俞家骅 【C2-2】奇数求和 C++ 通过 100 2 MS 240 KB 204 2025-07-22 09:49:46

Tests(3/3):


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


测评信息: