提交时间:2024-11-15 19:27:01
运行 ID: 56761
#include<bits/stdc++.h> using namespace std; int main(){ int m,n,result=0; cin>>m>>n; while(m<=n){ if(m%2==1){ result+=m; } m+=1; } cout<<result; return 0; }