#include<bits/stdc++.h> using namespace std; long long x,y; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin>>x>>y; y-=x; int t=0; while(y>=2){ y-=2; t++; } while(y>0){ y--; t++; } cout<<t; return 0; }
提交记录