mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 16:20:27 +08:00
17 lines
189 B
C++
17 lines
189 B
C++
#include <bits/stdc++.h>
|
|
using namespace std;
|
|
int main(){
|
|
int a;
|
|
int b;
|
|
int c=0;
|
|
cin >>a>>b;
|
|
while(a<=b){
|
|
if(a%2==1){
|
|
c+=a;
|
|
}
|
|
a++;
|
|
}
|
|
cout <<c;
|
|
return 0;
|
|
}
|