// 活动地址: 牛客春招刷题训练营 - 编程打卡活动
#include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#define int long long
using namespace std;
int a[1010][1002];
void solve(){
int ans=0;
int l ,r;
// 输入
cin>>l>>r;
// 从头开始遍历
for(int i=l;i<=r;i++){
// 判断是否为偶数,并记录
if(i%2==0)ans++;
}//输出个数
cout<<ans;
}
signed main(){
int T=1;
ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
// cin>>T;
while(T--){
solve();
}
return 0;
}
// 活动地址: 牛客春招刷题训练营 - 编程打卡活动

京公网安备 11010502036488号